一時的に日本語のみに

This commit is contained in:
syuilo 2018-04-14 05:16:15 +09:00
parent 0debbf9e64
commit a42b860624

View file

@ -31,10 +31,11 @@
// Detect the user language // Detect the user language
// Note: The default language is Japanese // Note: The default language is Japanese
let lang = navigator.language.split('-')[0]; //let lang = navigator.language.split('-')[0];
if (!/^(en|ja)$/.test(lang)) lang = 'ja'; //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';
const lang = 'ja';
// Detect the user agent // Detect the user agent
const ua = navigator.userAgent.toLowerCase(); const ua = navigator.userAgent.toLowerCase();