Commit a322d39e authored by HJISTC's avatar HJISTC

Fix Browser Bug

parent 00e577fd
......@@ -6,7 +6,7 @@ import localeData from '../i18n.json'
addLocaleData([...en, ...zh])
const language = localStorage.getItem('language') || (navigator.languages && navigator.languages[0]) || navigator.userLanguage;
const language = localStorage.getItem('language') || navigator.language || (navigator.languages && navigator.languages[0]) || navigator.userLanguage || navigator.browserLanguage || 'zh-CN' ;
const languageWithoutRegionCode = language.toLowerCase().split(/[_-]+/)[0];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment