@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
  }
@@ -14,8 +14,9 @@
14
14
  "确认删除该条数据吗?":"Are you sure you want to delete this data?",
15
15
  "确定":"Confirm",
16
16
  "取消":"Cancel",
17
- "请输入{label}开始":"请输入{label}开始",
18
- "请输入{label}结束":"请输入{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
  }
@@ -14,6 +14,9 @@
14
14
  "确认删除该条数据吗?":"确认删除该条数据吗?",
15
15
  "确定":"确定",
16
16
  "取消":"取消",
17
+ "请输入{label}开始":"Silakan masukkan {label} untuk memulai",
18
+ "请输入{label}结束":"Silakan masukkan {label} untuk mengakhiri",
19
+ "共{a}页,{b}条数据":"Total {a} halaman, {b} rekaman",
17
20
 
18
21
  "":""
19
22
  }
@@ -14,6 +14,9 @@
14
14
  "确认删除该条数据吗?":"确认删除该条数据吗?",
15
15
  "确定":"确定",
16
16
  "取消":"取消",
17
+ "请输入{label}开始":"Sila masukkan {label} untuk bermula",
18
+ "请输入{label}结束":"Sila masukkan {label} untuk tamat",
19
+ "共{a}页,{b}条数据":"Jumlah {a} halaman, {b} rekod",
17
20
 
18
21
  "":""
19
22
  }
@@ -14,6 +14,9 @@
14
14
  "确认删除该条数据吗?":"确认删除该条数据吗?",
15
15
  "确定":"确定",
16
16
  "取消":"取消",
17
+ "请输入{label}开始":"Vui lòng nhập {label} để bắt đầu",
18
+ "请输入{label}结束":"Vui lòng nhập {label} để kết thúc",
19
+ "共{a}页,{b}条数据":"Tổng cộng {a} trang, {b} bản ghi",
17
20
 
18
21
  "":""
19
22
  }
@@ -16,6 +16,7 @@
16
16
  "取消":"取消",
17
17
  "请输入{label}开始":"请输入{label}开始",
18
18
  "请输入{label}结束":"请输入{label}结束",
19
+ "共{a}页,{b}条数据":"共{a}页,{b}条数据",
19
20
 
20
21
  "":""
21
22
  }
@@ -14,6 +14,9 @@
14
14
  "确认删除该条数据吗?":"确认删除该条数据吗?",
15
15
  "确定":"确定",
16
16
  "取消":"取消",
17
+ "请输入{label}开始":"請輸入{label}開始",
18
+ "请输入{label}结束":"請輸入{label}結束",
19
+ "共{a}页,{b}条数据":"共{a}頁,{b}條數據",
17
20
 
18
21
  "":""
19
22
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xizs/nuxt-antui",
3
3
  "type": "module",
4
- "version": "0.0.40",
4
+ "version": "0.0.42",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground",