Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
custom_check: Exclude billing pages from translation check.
Aman Agrawal073d9bf3c98a
diff --git a/tools/linter_lib/custom_check.py b/tools/linter_lib/custom_check.pyindex 1fc8d30d369..efbd0e23502 100644--- a/tools/linter_lib/custom_check.py+++ b/tools/linter_lib/custom_check.py@@ -153,7 +153,10 @@ js_rules = RuleList({"pattern": r"""[.]text\(["'][a-zA-Z]""","description": "Strings passed to $().text should be wrapped in $t() for internationalization",- "exclude": {"web/tests/"},+ "exclude": {+ "web/tests/",+ "web/src/billing/",+ },},{"pattern": r"""report.success\(["']""",@@ -549,6 +552,7 @@ html_rules: List["Rule"] = ["exclude": {"templates/analytics/support.html","templates/analytics/remote_server_support.html",+ "templates/corporate",# We have URL template and Pygments language name as placeholders# in the below template which we don't want to be translatable."web/templates/settings/playground_settings_admin.hbs",@@ -579,6 +583,9 @@ html_rules: List["Rule"] = ['<input class="stream-list-filter" type="text" placeholder="{{ _(\'Filter streams\') }}" />'],"bad_lines": ["<input placeholder='foo'>"],+ "exclude": {+ "templates/corporate",+ },},{"pattern": "aria-label='[^{]",