mirror of
				https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
				synced 2025-11-04 16:23:41 +08:00 
			
		
		
		
	
		
			
				
	
	
	
		
			491 B
		
	
	
	
	
	
	
	
			
		
		
	
	
			491 B
		
	
	
	
	
	
	
	
How to add a new translation?
Assume that we are adding a new translation for new.
- copy 
app/locales/en.tstoapp/locales/new.ts; - edit 
new.ts, changeconst en: LocaleType =toconst new: PartialLocaleType, andexport default new;; - edit 
app/locales/index.ts: import new from './new.ts';- add 
newtoALL_LANGS; - add 
new: "new lang"toALL_LANG_OPTIONS; - translate the strings in 
new.ts; - submit a pull request, and the author will merge it.