mirror of https://github.com/zulip/zulip.git
lint: Ban trailing spaces in Handlebars translation tags.
This commit is contained in:
parent
aa5f57fda9
commit
3a4c6f83fc
|
@ -397,6 +397,10 @@ 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': '{{t ("|\') ',
|
{'pattern': '{{t ("|\') ',
|
||||||
'description': 'Translatable strings should not have leading spaces.'},
|
'description': 'Translatable strings should not have leading spaces.'},
|
||||||
|
{'pattern': "{{t '[^']+ ' }}",
|
||||||
|
'description': 'Translatable strings should not have trailing spaces.'},
|
||||||
|
{'pattern': '{{t "[^"]+ " }}',
|
||||||
|
'description': 'Translatable strings should not have trailing spaces.'},
|
||||||
]
|
]
|
||||||
jinja2_rules = html_rules + [
|
jinja2_rules = html_rules + [
|
||||||
{'pattern': "{% endtrans %}[\.\?!]",
|
{'pattern': "{% endtrans %}[\.\?!]",
|
||||||
|
|
Loading…
Reference in New Issue