Merge pull request #35 from ccoenen/enhancement/translation-churn
specifying the locale jsons to be in the exact style of poeditor
This commit is contained in:
		
						commit
						0d3e065e34
					
				@ -17,3 +17,9 @@ trim_trailing_whitespace = false
 | 
				
			|||||||
[{.travis.yml,npm-shrinkwrap.json,package.json}]
 | 
					[{.travis.yml,npm-shrinkwrap.json,package.json}]
 | 
				
			||||||
indent_style = space
 | 
					indent_style = space
 | 
				
			||||||
indent_size = 2
 | 
					indent_size = 2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[locales/*.json]
 | 
				
			||||||
 | 
					# this is the exact style poeditor.com exports, so this should prevent churn.
 | 
				
			||||||
 | 
					insert_final_newline = false
 | 
				
			||||||
 | 
					indent_style = space
 | 
				
			||||||
 | 
					indent_size = 4
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										1
									
								
								app.js
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								app.js
									
									
									
									
									
								
							@ -115,6 +115,7 @@ if (config.csp.enable) {
 | 
				
			|||||||
i18n.configure({
 | 
					i18n.configure({
 | 
				
			||||||
  locales: ['en', 'zh-CN', 'zh-TW', 'fr', 'de', 'ja', 'es', 'ca', 'el', 'pt', 'it', 'tr', 'ru', 'nl', 'hr', 'pl', 'uk', 'hi', 'sv', 'eo', 'da', 'ko', 'id', 'sr'],
 | 
					  locales: ['en', 'zh-CN', 'zh-TW', 'fr', 'de', 'ja', 'es', 'ca', 'el', 'pt', 'it', 'tr', 'ru', 'nl', 'hr', 'pl', 'uk', 'hi', 'sv', 'eo', 'da', 'ko', 'id', 'sr'],
 | 
				
			||||||
  cookie: 'locale',
 | 
					  cookie: 'locale',
 | 
				
			||||||
 | 
					  indent: '    ', // this is the style poeditor.com exports it, this creates less churn
 | 
				
			||||||
  directory: path.join(__dirname, '/locales'),
 | 
					  directory: path.join(__dirname, '/locales'),
 | 
				
			||||||
  updateFiles: config.updateI18nFiles
 | 
					  updateFiles: config.updateI18nFiles
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user