forked from open-webui/open-webui
		
	feat: Get available languages from json file
This commit is contained in:
		
							parent
							
								
									41378748b8
								
							
						
					
					
						commit
						f4a1885298
					
				
					 8 changed files with 30 additions and 6 deletions
				
			
		|  | @ -50,13 +50,16 @@ i18next | |||
| 			lookupQuerystring: 'lang', | ||||
| 			lookupLocalStorage: 'locale' | ||||
| 		}, | ||||
| 		fallbackLng: 'en', | ||||
| 		ns: 'common', | ||||
| 		fallbackLng: { | ||||
| 			default: ['en-US'] | ||||
| 		}, | ||||
| 		ns: 'translation', | ||||
| 		interpolation: { | ||||
| 			escapeValue: false // not needed for svelte as it escapes by default
 | ||||
| 		} | ||||
| 	}); | ||||
| 
 | ||||
| export const languages = (await import(`./locales/languages.json`)).default; | ||||
| const i18n = createI18nStore(i18next); | ||||
| const isLoadingStore = createIsLoadingStore(i18next); | ||||
| export default i18n; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Ased Mammad
						Ased Mammad