diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-01-22 16:52:15 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-01-22 16:52:15 +0900 |
| commit | 9dacf11702dc9f71447bc15f1b98ab5532e46f27 (patch) | |
| tree | 0125ef9cb4e0a32f7d596e75e8d1296a924d2703 /packages/frontend/src/i18n.ts | |
| parent | add achievement (diff) | |
| download | misskey-9dacf11702dc9f71447bc15f1b98ab5532e46f27.tar.gz misskey-9dacf11702dc9f71447bc15f1b98ab5532e46f27.tar.bz2 misskey-9dacf11702dc9f71447bc15f1b98ab5532e46f27.zip | |
fix(client): ローカリゼーション更新時にリロードが繰り返されることがあるのを修正
Diffstat (limited to 'packages/frontend/src/i18n.ts')
| -rw-r--r-- | packages/frontend/src/i18n.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/frontend/src/i18n.ts b/packages/frontend/src/i18n.ts index 31e066960d..220c6210c0 100644 --- a/packages/frontend/src/i18n.ts +++ b/packages/frontend/src/i18n.ts @@ -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; +} |