1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-11 13:18:54 +09:00

set ja as default

This commit is contained in:
syuilo 2018-04-14 01:56:10 +09:00
parent ec6300f5ae
commit 79475f6856

View File

@ -30,9 +30,9 @@
//#endregion
// Detect the user language
// Note: The default language is English
// Note: The default language is Japanese
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 (ENV != 'production') lang = 'ja';