@cloudtower/parrot 0.17.10 → 0.17.12

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.
@@ -1,27 +0,0 @@
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
- }
@@ -1,15 +0,0 @@
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
- "unknow_error": "Unknown error",
14
- "to": "to"
15
- }
@@ -1,5 +0,0 @@
1
- {
2
- "current": "Current value",
3
- "empty": "No data in this time range",
4
- "max": "Max"
5
- }
@@ -1,27 +0,0 @@
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
- }
@@ -1,15 +0,0 @@
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
- "unknow_error": "未知错误",
14
- "to": "至"
15
- }
@@ -1,5 +0,0 @@
1
- {
2
- "current": "当前值",
3
- "empty": "该时间范围内没有数据",
4
- "max": "最大值"
5
- }
package/src/parrotI18n.ts DELETED
@@ -1,36 +0,0 @@
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
- };