mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	lint: Add rule for spacing inside Handlebars translation tags.
This commit also includes the fixes to make all Handlebars templates compliant with the new rule.
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							3a4c6f83fc
						
					
				
				
					commit
					7d5d8ac61e
				
			@@ -389,6 +389,8 @@ def build_custom_checkers(by_lang):
 | 
			
		||||
    handlebars_rules = html_rules + [
 | 
			
		||||
        {'pattern': "[<]script",
 | 
			
		||||
         'description': "Do not use inline <script> tags here; put JavaScript in static/js instead."},
 | 
			
		||||
        {'pattern': '{{ t ("|\')',
 | 
			
		||||
         'description': 'There should be no spaces before the "t" in a translation tag.'},
 | 
			
		||||
        {'pattern': "{{t '.*' }}[\.\?!]",
 | 
			
		||||
         'description': "Period should be part of the translatable string."},
 | 
			
		||||
        {'pattern': '{{t ".*" }}[\.\?!]',
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user