Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
lint: Add template check for invalid translation tag.
Tim Abbott26deac790464
diff --git a/tools/linter_lib/custom_check.py b/tools/linter_lib/custom_check.pyindex ca35feebb04..56cab9026e4 100644--- a/tools/linter_lib/custom_check.py+++ b/tools/linter_lib/custom_check.py@@ -457,6 +457,10 @@ html_rules: List["Rule"] = whitespace_rules + prose_style_rules + ['description': "Likely missing quoting in HTML attribute",'good_lines': ['<a href="{{variable}}">'],'bad_lines': ['<a href={{variable}}>']},+ {'pattern': " '}}",+ 'description': "Likely misplaced quoting in translation tags",+ 'good_lines': ["{{t 'translateable string' }}"],+ 'bad_lines': ["{{t 'translateable string '}}"]},{'pattern': "placeholder='[^{]",'description': "`placeholder` value should be translatable.",'good_lines': ['<input class="stream-list-filter" type="text" placeholder="{{ _(\'Search streams\') }}" />'],