@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.
@@ -10,6 +10,7 @@
10
10
  "push_to": "Jump to",
11
11
  "pagination_range": "Item {range1} – {range2}",
12
12
  "pagination_total": "Item {range1} – {range2}, {total} in total",
13
+ "pagination_lots_total": "{total} items in total",
13
14
  "unknow_error": "Unknown error",
14
15
  "to": "to"
15
16
  }
@@ -38,6 +38,7 @@ declare const locale: {
38
38
  push_to: string;
39
39
  pagination_range: string;
40
40
  pagination_total: string;
41
+ pagination_lots_total: string;
41
42
  unknow_error: string;
42
43
  to: string;
43
44
  };
@@ -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
  };
@@ -10,6 +10,7 @@
10
10
  "push_to": "跳转至",
11
11
  "pagination_range": "第 {range1} – {range2} 项",
12
12
  "pagination_total": "第 {range1} – {range2} 项,共 {total} 项",
13
+ "pagination_lots_total": "共 {total} 项",
13
14
  "unknow_error": "未知错误",
14
15
  "to": "至"
15
16
  }
@@ -38,6 +38,7 @@ declare const locale: {
38
38
  push_to: string;
39
39
  pagination_range: string;
40
40
  pagination_total: string;
41
+ pagination_lots_total: string;
41
42
  unknow_error: string;
42
43
  to: string;
43
44
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudtower/parrot",
3
- "version": "0.17.12",
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,3 @@
1
+ export { default as locales } from "./locales";
2
+ export { default as parrotI18n } from "./parrotI18n";
3
+ export * from "./parrotI18n";
@@ -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,11 @@
1
+ import common from "./common.json";
2
+ import components from "./components.json";
3
+ import metric from "./metric.json";
4
+
5
+ const locale = {
6
+ common: common,
7
+ components: components,
8
+ metric: metric,
9
+ };
10
+
11
+ export default locale;
@@ -0,0 +1,5 @@
1
+ {
2
+ "current": "Current value",
3
+ "empty": "No data in this time range",
4
+ "max": "Max"
5
+ }
@@ -0,0 +1,9 @@
1
+ import enUS from "./en-US";
2
+ import zhCN from "./zh-CN";
3
+
4
+ const locales = {
5
+ "en-US": enUS,
6
+ "zh-CN": zhCN,
7
+ };
8
+
9
+ export default locales;
@@ -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,11 @@
1
+ import common from "./common.json";
2
+ import components from "./components.json";
3
+ import metric from "./metric.json";
4
+
5
+ const locale = {
6
+ common: common,
7
+ components: components,
8
+ metric: metric,
9
+ };
10
+
11
+ export default locale;
@@ -0,0 +1,5 @@
1
+ {
2
+ "current": "当前值",
3
+ "empty": "该时间范围内没有数据",
4
+ "max": "最大值"
5
+ }
@@ -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
+ };
@@ -1,3 +0,0 @@
1
- warning package.json: No license field
2
- $ tsc -v && tsc --emitDeclarationOnly
3
- Version 4.8.4