mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-03-21 03:30:42 +00:00
fix(frontend): ロード時の言語判定結果が保存されない問題を修正 (#16956)
* fix(frontend): ロード時の言語判定結果が保存されない問題を修正 * Update Changelog
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user