@xizs/nuxt-antui 0.0.40 → 0.0.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -34,26 +34,28 @@ const state = reactive({
|
|
|
34
34
|
preOpenKeys: ['sub1'],
|
|
35
35
|
});
|
|
36
36
|
|
|
37
|
+
const { $t } = useI18n()
|
|
38
|
+
|
|
37
39
|
const items = computed(()=>{
|
|
38
40
|
let a = props.items.map((item) => {
|
|
39
41
|
const { icon, title, path, children } = item;
|
|
40
42
|
let newItem = {
|
|
41
43
|
key: path,
|
|
42
44
|
icon: icon,
|
|
43
|
-
label: title,
|
|
45
|
+
label: $t(title),
|
|
44
46
|
|
|
45
47
|
};
|
|
46
48
|
if(children){
|
|
47
49
|
newItem.children=children?.map((child) =>{
|
|
48
50
|
let c = {
|
|
49
51
|
key: child.path,
|
|
50
|
-
label: child.title,
|
|
52
|
+
label: $t(child.title),
|
|
51
53
|
}
|
|
52
54
|
if(child.children){
|
|
53
55
|
c.children=child.children?.map((subChild) =>{
|
|
54
56
|
return {
|
|
55
57
|
key: subChild.path,
|
|
56
|
-
label: subChild.title,
|
|
58
|
+
label: $t(subChild.title),
|
|
57
59
|
}
|
|
58
60
|
})
|
|
59
61
|
}
|
package/i18n/locales/en_US.json
CHANGED
|
@@ -14,8 +14,9 @@
|
|
|
14
14
|
"确认删除该条数据吗?":"Are you sure you want to delete this data?",
|
|
15
15
|
"确定":"Confirm",
|
|
16
16
|
"取消":"Cancel",
|
|
17
|
-
"请输入{label}开始":"
|
|
18
|
-
"请输入{label}结束":"
|
|
17
|
+
"请输入{label}开始":"Please enter {label} to start",
|
|
18
|
+
"请输入{label}结束":"Please enter {label} to end",
|
|
19
|
+
"共{a}页,{b}条数据":"Total {a} pages, {b} records",
|
|
19
20
|
|
|
20
21
|
"":""
|
|
21
22
|
}
|
package/i18n/locales/id_ID.json
CHANGED
package/i18n/locales/ms_MY.json
CHANGED
package/i18n/locales/vi_VN.json
CHANGED
package/i18n/locales/zh_CN.json
CHANGED
package/i18n/locales/zh_TW.json
CHANGED