1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-03 11:26:14 +02:00

fix(client): ローカリゼーション更新時にリロードが繰り返されることがあるのを修正

This commit is contained in:
syuilo
2023-01-22 16:52:15 +09:00
parent 26ae2dfc0f
commit 9dacf11702
3 changed files with 16 additions and 5 deletions

View File

@@ -3,3 +3,7 @@ import { locale } from '@/config';
import { I18n } from '@/scripts/i18n';
export const i18n = markRaw(new I18n(locale));
export function updateI18n(newLocale) {
i18n.ts = newLocale;
}