feature: Supports reading language from environment variables, which makes it easy to modify the language after packaging into a Docker image
This commit is contained in:
		
							parent
							
								
									76a19d218d
								
							
						
					
					
						commit
						a1022a947d
					
				| @ -5,7 +5,7 @@ import { createI18n } from 'vue-i18n'; | ||||
| 
 | ||||
| const i18n = createI18n({ | ||||
|   legacy: false, | ||||
|   locale: 'en', | ||||
|   locale: import.meta.env.VITE_LANGUAGE || 'en', | ||||
|   messages, | ||||
| }); | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user