diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2020-12-26 15:27:39 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2020-12-26 15:27:39 +0900 |
| commit | c6cfc3f9083c88d4f5c722cf0972ad5aaa1d3fda (patch) | |
| tree | c6efd8784a305bcc46a55d5549edf7b174fd89db /src | |
| parent | 翻訳ファイルをランタイムで読み込み (diff) | |
| download | sharkey-c6cfc3f9083c88d4f5c722cf0972ad5aaa1d3fda.tar.gz sharkey-c6cfc3f9083c88d4f5c722cf0972ad5aaa1d3fda.tar.bz2 sharkey-c6cfc3f9083c88d4f5c722cf0972ad5aaa1d3fda.zip | |
fix locale handling
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/pages/settings/general.vue | 1 | ||||
| -rw-r--r-- | src/client/sw/i18n.ts | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/client/pages/settings/general.vue b/src/client/pages/settings/general.vue index 8869644ce7..5d79b693f9 100644 --- a/src/client/pages/settings/general.vue +++ b/src/client/pages/settings/general.vue @@ -145,6 +145,7 @@ export default defineComponent({ watch: { lang() { localStorage.setItem('lang', this.lang); + localStorage.removeItem('locale'); location.reload(); }, diff --git a/src/client/sw/i18n.ts b/src/client/sw/i18n.ts index 524a205b2f..9b3e3b2f4d 100644 --- a/src/client/sw/i18n.ts +++ b/src/client/sw/i18n.ts @@ -1,3 +1,5 @@ import { I18n } from '@/i18n'; -export const i18n = new I18n(_LOCALE_); +export const i18n = new I18n({ + // TODO +}); |