fix(frontend): ロード時の言語判定結果が保存されない問題を修正 (#16956)
* fix(frontend): ロード時の言語判定結果が保存されない問題を修正 * Update Changelog
This commit is contained in:
parent
da3b3af984
commit
73cc30f50f
|
|
@ -4,7 +4,7 @@
|
||||||
-
|
-
|
||||||
|
|
||||||
### Client
|
### Client
|
||||||
-
|
- Fix: 初回読み込み時などに、言語設定で不整合が発生することがある問題を修正
|
||||||
|
|
||||||
### Server
|
### Server
|
||||||
-
|
-
|
||||||
|
|
|
||||||
|
|
@ -70,6 +70,8 @@
|
||||||
importAppScript();
|
importAppScript();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
localStorage.setItem('lang', lang);
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
async function addStyle(styleText) {
|
async function addStyle(styleText) {
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,8 @@
|
||||||
console.error('invalid lang value detected!!!', typeof lang, lang);
|
console.error('invalid lang value detected!!!', typeof lang, lang);
|
||||||
lang = 'en-US';
|
lang = 'en-US';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
localStorage.setItem('lang', lang);
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//#region Script
|
//#region Script
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue