mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
lint: Ban leading spaces in Handlebars translation tags.
This commit is contained in:
committed by
Tim Abbott
parent
1ad3671801
commit
aa5f57fda9
@@ -395,6 +395,8 @@ def build_custom_checkers(by_lang):
|
|||||||
'description': "Period should be part of the translatable string."},
|
'description': "Period should be part of the translatable string."},
|
||||||
{'pattern': "{{/tr}}[\.\?!]",
|
{'pattern': "{{/tr}}[\.\?!]",
|
||||||
'description': "Period should be part of the translatable string."},
|
'description': "Period should be part of the translatable string."},
|
||||||
|
{'pattern': '{{t ("|\') ',
|
||||||
|
'description': 'Translatable strings should not have leading spaces.'},
|
||||||
]
|
]
|
||||||
jinja2_rules = html_rules + [
|
jinja2_rules = html_rules + [
|
||||||
{'pattern': "{% endtrans %}[\.\?!]",
|
{'pattern': "{% endtrans %}[\.\?!]",
|
||||||
|
|||||||
Reference in New Issue
Block a user