@cloudtower/parrot 0.17.12 → 0.17.13
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.
- package/dist/locales/en-US/components.json +1 -0
- package/dist/locales/en-US/index.d.ts +1 -0
- package/dist/locales/index.d.ts +2 -0
- package/dist/locales/zh-CN/components.json +1 -0
- package/dist/locales/zh-CN/index.d.ts +1 -0
- package/package.json +3 -2
- package/src/index.ts +3 -0
- package/src/locales/en-US/common.json +27 -0
- package/src/locales/en-US/components.json +16 -0
- package/src/locales/en-US/index.ts +11 -0
- package/src/locales/en-US/metric.json +5 -0
- package/src/locales/index.ts +9 -0
- package/src/locales/zh-CN/common.json +27 -0
- package/src/locales/zh-CN/components.json +16 -0
- package/src/locales/zh-CN/index.ts +11 -0
- package/src/locales/zh-CN/metric.json +5 -0
- package/src/parrotI18n.ts +36 -0
- package/.turbo/turbo-typings.log +0 -3
package/dist/locales/index.d.ts
CHANGED
@@ -39,6 +39,7 @@ declare const locales: {
|
|
39
39
|
push_to: string;
|
40
40
|
pagination_range: string;
|
41
41
|
pagination_total: string;
|
42
|
+
pagination_lots_total: string;
|
42
43
|
unknow_error: string;
|
43
44
|
to: string;
|
44
45
|
};
|
@@ -88,6 +89,7 @@ declare const locales: {
|
|
88
89
|
push_to: string;
|
89
90
|
pagination_range: string;
|
90
91
|
pagination_total: string;
|
92
|
+
pagination_lots_total: string;
|
91
93
|
unknow_error: string;
|
92
94
|
to: string;
|
93
95
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@cloudtower/parrot",
|
3
|
-
"version": "0.17.
|
3
|
+
"version": "0.17.13",
|
4
4
|
"description": "i18n modules for cloudtower sparrow and eagle",
|
5
5
|
"keywords": [
|
6
6
|
"i18n",
|
@@ -27,5 +27,6 @@
|
|
27
27
|
"ejs": "^3.1.8",
|
28
28
|
"i18next": "^21.10.0",
|
29
29
|
"typescript": "^4.8.4"
|
30
|
-
}
|
30
|
+
},
|
31
|
+
"gitHead": "21a21359b804ef980ed22ba46d7813456f1de3c7"
|
31
32
|
}
|
package/src/index.ts
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
{
|
2
|
+
"_action_": "Action",
|
3
|
+
"action": "Action",
|
4
|
+
"all": "All",
|
5
|
+
"cancel": "Cancel",
|
6
|
+
"clear_query": "Clear the filter criteria",
|
7
|
+
"close": "Close",
|
8
|
+
"contains": "Contains",
|
9
|
+
"confirm": "Confirm",
|
10
|
+
"empty": "No ",
|
11
|
+
"enable": "Enable",
|
12
|
+
"error": "Error",
|
13
|
+
"next_step": "Next",
|
14
|
+
"not_contains": "Not Contains",
|
15
|
+
"not_enable": "Not enabled",
|
16
|
+
"prev_step": "Previous",
|
17
|
+
"io": "Total I/O",
|
18
|
+
"load_failed": "Failed to load",
|
19
|
+
"param": "Parameter",
|
20
|
+
"no": "No",
|
21
|
+
"message": "Message",
|
22
|
+
"architecture": "CPU Architecture",
|
23
|
+
"calculation": "Computing",
|
24
|
+
"on": "On",
|
25
|
+
"error_message": "Error Message",
|
26
|
+
"retry": "Retry"
|
27
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
{
|
2
|
+
"contains": "Contains",
|
3
|
+
"custom_column": "Customize Columns & Order",
|
4
|
+
"in": "belongs to",
|
5
|
+
"not": "Not",
|
6
|
+
"not_contains": "Not Contains",
|
7
|
+
"or": "or",
|
8
|
+
"previous_items": "Previous {size} items",
|
9
|
+
"next_items": "Next {size} items",
|
10
|
+
"push_to": "Jump to",
|
11
|
+
"pagination_range": "Item {range1} – {range2}",
|
12
|
+
"pagination_total": "Item {range1} – {range2}, {total} in total",
|
13
|
+
"pagination_lots_total": "{total} items in total",
|
14
|
+
"unknow_error": "Unknown error",
|
15
|
+
"to": "to"
|
16
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
{
|
2
|
+
"_action_": "操作",
|
3
|
+
"action": "操作",
|
4
|
+
"all": "全部",
|
5
|
+
"cancel": "取消",
|
6
|
+
"clear_query": "清空筛选条件",
|
7
|
+
"close": "关闭",
|
8
|
+
"contains": "包含",
|
9
|
+
"confirm": "确定",
|
10
|
+
"empty": "无",
|
11
|
+
"enable": "启用",
|
12
|
+
"error": "错误",
|
13
|
+
"next_step": "下一步",
|
14
|
+
"not_contains": "不包含",
|
15
|
+
"not_enable": "不启用",
|
16
|
+
"prev_step": "上一步",
|
17
|
+
"io": "I/O 总数",
|
18
|
+
"load_failed": "加载失败",
|
19
|
+
"param": "参数",
|
20
|
+
"no": "否",
|
21
|
+
"message": "信息",
|
22
|
+
"architecture": "CPU 架构",
|
23
|
+
"calculation": "计算中",
|
24
|
+
"on": "开启",
|
25
|
+
"error_message": "错误信息",
|
26
|
+
"retry": "重试"
|
27
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
{
|
2
|
+
"contains": "包含",
|
3
|
+
"custom_column": "自定义列的展示和顺序",
|
4
|
+
"in": "属于",
|
5
|
+
"not": "不为",
|
6
|
+
"not_contains": "不包含",
|
7
|
+
"or": "或",
|
8
|
+
"previous_items": "前 {size} 项",
|
9
|
+
"next_items": "后 {size} 项",
|
10
|
+
"push_to": "跳转至",
|
11
|
+
"pagination_range": "第 {range1} – {range2} 项",
|
12
|
+
"pagination_total": "第 {range1} – {range2} 项,共 {total} 项",
|
13
|
+
"pagination_lots_total": "共 {total} 项",
|
14
|
+
"unknow_error": "未知错误",
|
15
|
+
"to": "至"
|
16
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
import i18next, { Callback, InitOptions } from "i18next";
|
2
|
+
import merge from "lodash.merge";
|
3
|
+
|
4
|
+
import locales from "./locales";
|
5
|
+
|
6
|
+
const defaultOptions = {
|
7
|
+
lng: "zh-CN",
|
8
|
+
fallbackLng: "en-US",
|
9
|
+
interpolation: {
|
10
|
+
prefix: "{",
|
11
|
+
suffix: "}",
|
12
|
+
},
|
13
|
+
resources: {
|
14
|
+
"en-US": {
|
15
|
+
translation: {
|
16
|
+
...locales["en-US"],
|
17
|
+
},
|
18
|
+
},
|
19
|
+
"zh-CN": {
|
20
|
+
translation: {
|
21
|
+
...locales["zh-CN"],
|
22
|
+
},
|
23
|
+
},
|
24
|
+
},
|
25
|
+
};
|
26
|
+
|
27
|
+
const parrotI18n = i18next.createInstance(defaultOptions);
|
28
|
+
|
29
|
+
export default parrotI18n;
|
30
|
+
|
31
|
+
export const initParrotI18n = (
|
32
|
+
options?: InitOptions,
|
33
|
+
callback?: Callback | undefined
|
34
|
+
) => {
|
35
|
+
parrotI18n.init(merge(defaultOptions, options), callback);
|
36
|
+
};
|
package/.turbo/turbo-typings.log
DELETED