mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	custom_check: Exclude billing pages from translation check.
This commit is contained in:
		@@ -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='[^{]",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user