fix locale handling

This commit is contained in:
syuilo 2020-12-26 15:27:39 +09:00
parent e1fa803eb1
commit 82204be544
2 changed files with 4 additions and 1 deletions

View file

@ -145,6 +145,7 @@ export default defineComponent({
watch: {
lang() {
localStorage.setItem('lang', this.lang);
localStorage.removeItem('locale');
location.reload();
},

View file

@ -1,3 +1,5 @@
import { I18n } from '@/i18n';
export const i18n = new I18n(_LOCALE_);
export const i18n = new I18n({
// TODO
});