forked from FoundKeyGang/FoundKey
set ja as default
This commit is contained in:
parent
ec6300f5ae
commit
79475f6856
1 changed files with 2 additions and 2 deletions
|
@ -30,9 +30,9 @@
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
// Detect the user language
|
// Detect the user language
|
||||||
// Note: The default language is English
|
// Note: The default language is Japanese
|
||||||
let lang = navigator.language.split('-')[0];
|
let lang = navigator.language.split('-')[0];
|
||||||
if (!/^(en|ja)$/.test(lang)) lang = 'en';
|
if (!/^(en|ja)$/.test(lang)) lang = 'ja';
|
||||||
if (localStorage.getItem('lang')) lang = localStorage.getItem('lang');
|
if (localStorage.getItem('lang')) lang = localStorage.getItem('lang');
|
||||||
if (ENV != 'production') lang = 'ja';
|
if (ENV != 'production') lang = 'ja';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue