nanka iroior

This commit is contained in:
syuilo 2018-03-03 09:49:47 +09:00
parent 25c25233e2
commit 41c9426929
9 changed files with 41 additions and 19 deletions

View file

@ -35,6 +35,7 @@
// Note: The default language is English
let lang = navigator.language.split('-')[0];
if (!/^(en|ja)$/.test(lang)) lang = 'en';
if (localStorage.getItem('lang')) lang = localStorage.getItem('lang');
// Detect the user agent
const ua = navigator.userAgent.toLowerCase();