@sweetui/sweet
Advanced tools
Comparing version
{ | ||
"name": "@sweetui/sweet", | ||
"version": "2.0.13-fix", | ||
"version": "2.0.13-hotfix", | ||
"description": "Sweet Core", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
const browserLang = | ||
window.navigator.language || window.navigator.browserLanguage; | ||
window.navigator.language || window.navigator.browserLanguage, | ||
browserLangReal = browserLang.match(/\S*(?=-)/) ? browserLang.match(/\S*(?=-)/)[0] : browserLang; | ||
const language = | ||
window.localStorage.getItem('userLang') || | ||
(browserLang.match(/\S*(?=-)/)[0] === 'zh' ? 'zh-CN' : 'en'); | ||
(browserLangReal === 'zh' ? 'zh-CN' : 'en'); | ||
@@ -7,0 +8,0 @@ export default { |
16497
0.56%375
0.27%