custom_check: Exclude billing pages from translation check.

This commit is contained in:
Aman Agrawal 2023-11-04 03:09:52 +00:00 committed by Tim Abbott
parent b5fd5f2f5e
commit 073d9bf3c9
1 changed files with 8 additions and 1 deletions

View File

@ -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='[^{]",