提交 f4d2c588 编写于 作者: D dolymood

fix doc

上级 d6bce473
......@@ -19,6 +19,13 @@
"name": "Basic",
"subList": {
"button": "Button",
"loading": "Loading",
"tip": "Tip"
}
},
"form": {
"name": "Form",
"subList": {
"checkbox": "Checkbox",
"checkbox-group": "CheckboxGroup",
"radio": "Radio",
......@@ -28,8 +35,7 @@
"switch": "Switch",
"rate": "Rate",
"validator": "Validator",
"loading": "Loading",
"tip": "Tip",
"upload": "Upload",
"form": "Form"
}
},
......@@ -54,12 +60,6 @@
"index-list": "IndexList",
"swipe": "Swipe"
}
},
"advanced": {
"name": "Advanced",
"subList": {
"upload": "Upload"
}
}
}
},
......@@ -93,6 +93,13 @@
"name": "基础",
"subList": {
"button": "Button",
"loading": "Loading",
"tip": "Tip"
}
},
"form": {
"name": "表单",
"subList": {
"checkbox": "Checkbox",
"checkbox-group": "CheckboxGroup",
"radio": "Radio",
......@@ -102,8 +109,7 @@
"switch": "Switch",
"rate": "Rate",
"validator": "Validator",
"loading": "Loading",
"tip": "Tip",
"upload": "Upload",
"form": "Form"
}
},
......@@ -130,12 +136,6 @@
"index-list": "IndexList",
"swipe": "Swipe"
}
},
"advanced": {
"name": "高级",
"subList": {
"upload": "Upload"
}
}
}
},
......
......@@ -22,7 +22,7 @@ export function getItem(k) {
export function getCurrentLang() {
const itemKey = 'CUBE_LANGUAGE'
const hash = window.location.hash
const hashZhLang = hash ? hash.indexOf('/zh-') >= 0 ? 'zh-CN' : 'en-US' : ''
const hashZhLang = hash.indexOf('/zh-') >= 0 ? 'zh-CN' : hash.indexOf('/en-') >= 0 ? 'en-US' : ''
const lang = hashZhLang || getItem(itemKey) || window.navigator.language || 'en-US'
let defaultLang = 'en-US'
if (lang.indexOf('zh-') >= 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册