mirror of https://github.com/zulip/zulip.git
custom_check: Exclude billing pages from translation check.
This commit is contained in:
parent
b5fd5f2f5e
commit
073d9bf3c9
|
@ -153,7 +153,10 @@ js_rules = RuleList(
|
||||||
{
|
{
|
||||||
"pattern": r"""[.]text\(["'][a-zA-Z]""",
|
"pattern": r"""[.]text\(["'][a-zA-Z]""",
|
||||||
"description": "Strings passed to $().text should be wrapped in $t() for internationalization",
|
"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\(["']""",
|
"pattern": r"""report.success\(["']""",
|
||||||
|
@ -549,6 +552,7 @@ html_rules: List["Rule"] = [
|
||||||
"exclude": {
|
"exclude": {
|
||||||
"templates/analytics/support.html",
|
"templates/analytics/support.html",
|
||||||
"templates/analytics/remote_server_support.html",
|
"templates/analytics/remote_server_support.html",
|
||||||
|
"templates/corporate",
|
||||||
# We have URL template and Pygments language name as placeholders
|
# We have URL template and Pygments language name as placeholders
|
||||||
# in the below template which we don't want to be translatable.
|
# in the below template which we don't want to be translatable.
|
||||||
"web/templates/settings/playground_settings_admin.hbs",
|
"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\') }}" />'
|
'<input class="stream-list-filter" type="text" placeholder="{{ _(\'Filter streams\') }}" />'
|
||||||
],
|
],
|
||||||
"bad_lines": ["<input placeholder='foo'>"],
|
"bad_lines": ["<input placeholder='foo'>"],
|
||||||
|
"exclude": {
|
||||||
|
"templates/corporate",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"pattern": "aria-label='[^{]",
|
"pattern": "aria-label='[^{]",
|
||||||
|
|
Loading…
Reference in New Issue