mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 17:03:49 +01:00
set ja as default
This commit is contained in:
parent
19b74481b5
commit
adb37a27f1
@ -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';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user