mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-10-26 19:14:12 +00:00 
			
		
		
		
	fix locale handling
This commit is contained in:
		
							parent
							
								
									84b488a912
								
							
						
					
					
						commit
						c6cfc3f908
					
				
					 2 changed files with 4 additions and 1 deletions
				
			
		|  | @ -145,6 +145,7 @@ export default defineComponent({ | |||
| 	watch: { | ||||
| 		lang() { | ||||
| 			localStorage.setItem('lang', this.lang); | ||||
| 			localStorage.removeItem('locale'); | ||||
| 			location.reload(); | ||||
| 		}, | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,3 +1,5 @@ | |||
| import { I18n } from '@/i18n'; | ||||
| 
 | ||||
| export const i18n = new I18n(_LOCALE_); | ||||
| export const i18n = new I18n({ | ||||
| 	// TODO
 | ||||
| }); | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue