mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-28 14:58:09 +09:00
fix locale handling
This commit is contained in:
parent
e1fa803eb1
commit
82204be544
@ -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…
Reference in New Issue
Block a user