@cloudtower/parrot 0.0.0-testid-rc-0

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/README.md ADDED
@@ -0,0 +1,11 @@
1
+ # Parrot
2
+
3
+ Parrot 是 `@cloudtower/eagle` 的 i18n 库
4
+
5
+ ## 如何生成 Reexport
6
+
7
+ 使用命令
8
+
9
+ ```
10
+ yarn generate:reexport
11
+ ```
@@ -0,0 +1,336 @@
1
+ import i18next from 'i18next';
2
+ import merge from 'lodash.merge';
3
+
4
+ var _action_$1 = "Action";
5
+ var action$1 = "Action";
6
+ var all$1 = "All";
7
+ var cancel$1 = "Cancel";
8
+ var clear_query$1 = "Clear the filter criteria";
9
+ var close$1 = "Close";
10
+ var contains$3 = "Contains";
11
+ var confirm$1 = "Confirm";
12
+ var empty$3 = "No ";
13
+ var enable$1 = "Enable";
14
+ var error$1 = "Error";
15
+ var next_step$1 = "Next";
16
+ var not_contains$3 = "Not Contains";
17
+ var not_enable$1 = "Not enabled";
18
+ var prev_step$1 = "Previous";
19
+ var io$1 = "Total I/O";
20
+ var load_failed$1 = "Failed to load";
21
+ var param$1 = "Parameter";
22
+ var no$1 = "No";
23
+ var message$1 = "Message";
24
+ var architecture$1 = "CPU Architecture";
25
+ var calculation$1 = "Computing";
26
+ var on$1 = "On";
27
+ var error_message$1 = "Error Message";
28
+ var retry$1 = "Retry";
29
+ var week_abbreviation$1 = "week";
30
+ var day_abbreviation$1 = "day";
31
+ var hour_abbreviation$1 = "h";
32
+ var minute_abbreviation$1 = "min";
33
+ var second_abbreviation$1 = "sec";
34
+ var week$1 = "Week";
35
+ var day$1 = "Day";
36
+ var hour$1 = "Hour";
37
+ var minute$1 = "Minute";
38
+ var second$1 = "Second";
39
+ var common$1 = {
40
+ _action_: _action_$1,
41
+ action: action$1,
42
+ all: all$1,
43
+ cancel: cancel$1,
44
+ clear_query: clear_query$1,
45
+ close: close$1,
46
+ contains: contains$3,
47
+ confirm: confirm$1,
48
+ empty: empty$3,
49
+ enable: enable$1,
50
+ error: error$1,
51
+ next_step: next_step$1,
52
+ not_contains: not_contains$3,
53
+ not_enable: not_enable$1,
54
+ prev_step: prev_step$1,
55
+ io: io$1,
56
+ load_failed: load_failed$1,
57
+ param: param$1,
58
+ no: no$1,
59
+ message: message$1,
60
+ architecture: architecture$1,
61
+ calculation: calculation$1,
62
+ on: on$1,
63
+ error_message: error_message$1,
64
+ retry: retry$1,
65
+ week_abbreviation: week_abbreviation$1,
66
+ day_abbreviation: day_abbreviation$1,
67
+ hour_abbreviation: hour_abbreviation$1,
68
+ minute_abbreviation: minute_abbreviation$1,
69
+ second_abbreviation: second_abbreviation$1,
70
+ week: week$1,
71
+ day: day$1,
72
+ hour: hour$1,
73
+ minute: minute$1,
74
+ second: second$1
75
+ };
76
+
77
+ var contains$2 = "Contains";
78
+ var custom_column$1 = "Customize Columns & Order";
79
+ var not$1 = "Not";
80
+ var not_contains$2 = "Not Contains";
81
+ var or$1 = "or";
82
+ var previous_items$1 = "Previous {size} items";
83
+ var next_items$1 = "Next {size} items";
84
+ var push_to$1 = "Jump to";
85
+ var pagination_range$1 = "Item {range1} – {range2}";
86
+ var pagination_total$1 = "Item {range1} – {range2}, {total} in total";
87
+ var pagination_lots_total$1 = "{total} items in total";
88
+ var unknow_error$1 = "Unknown error";
89
+ var to$1 = "to";
90
+ var time_zone_select_placeholder$1 = "Enter city or time zone";
91
+ var browser_time_zone$1 = "Browser Time Zone";
92
+ var coorddinated_universal_time$1 = "Coorddinated Universal Time";
93
+ var Architecture_AARCH64$1 = "AArch64";
94
+ var Architecture_X86_64$1 = "x86_64";
95
+ var maximum_row_count_desc$1 = "At most {count} items.";
96
+ var remove$1 = "Remove";
97
+ var add$1 = "Add";
98
+ var prefix$1 = "Prefix";
99
+ var suffix$1 = "Suffix";
100
+ var components$1 = {
101
+ contains: contains$2,
102
+ custom_column: custom_column$1,
103
+ "in": "belongs to",
104
+ not: not$1,
105
+ not_contains: not_contains$2,
106
+ or: or$1,
107
+ previous_items: previous_items$1,
108
+ next_items: next_items$1,
109
+ push_to: push_to$1,
110
+ pagination_range: pagination_range$1,
111
+ pagination_total: pagination_total$1,
112
+ pagination_lots_total: pagination_lots_total$1,
113
+ unknow_error: unknow_error$1,
114
+ to: to$1,
115
+ time_zone_select_placeholder: time_zone_select_placeholder$1,
116
+ browser_time_zone: browser_time_zone$1,
117
+ coorddinated_universal_time: coorddinated_universal_time$1,
118
+ Architecture_AARCH64: Architecture_AARCH64$1,
119
+ Architecture_X86_64: Architecture_X86_64$1,
120
+ maximum_row_count_desc: maximum_row_count_desc$1,
121
+ remove: remove$1,
122
+ add: add$1,
123
+ prefix: prefix$1,
124
+ suffix: suffix$1
125
+ };
126
+
127
+ var current$1 = "Current value";
128
+ var empty$2 = "No data in this time range";
129
+ var max$1 = "Max";
130
+ var metric$1 = {
131
+ current: current$1,
132
+ empty: empty$2,
133
+ max: max$1
134
+ };
135
+
136
+ const locale$1 = {
137
+ common: common$1,
138
+ components: components$1,
139
+ metric: metric$1
140
+ };
141
+
142
+ var _action_ = "操作";
143
+ var action = "操作";
144
+ var all = "全部";
145
+ var cancel = "取消";
146
+ var clear_query = "清空筛选条件";
147
+ var close = "关闭";
148
+ var contains$1 = "包含";
149
+ var confirm = "确定";
150
+ var empty$1 = "无";
151
+ var enable = "启用";
152
+ var error = "错误";
153
+ var next_step = "下一步";
154
+ var not_contains$1 = "不包含";
155
+ var not_enable = "不启用";
156
+ var prev_step = "上一步";
157
+ var io = "I/O 总数";
158
+ var load_failed = "加载失败";
159
+ var param = "参数";
160
+ var no = "否";
161
+ var message = "信息";
162
+ var architecture = "CPU 架构";
163
+ var calculation = "计算中";
164
+ var on = "开启";
165
+ var error_message = "错误信息";
166
+ var retry = "重试";
167
+ var week_abbreviation = "周";
168
+ var day_abbreviation = "天";
169
+ var hour_abbreviation = "小时";
170
+ var minute_abbreviation = "分钟";
171
+ var second_abbreviation = "秒";
172
+ var week = "周";
173
+ var day = "天";
174
+ var hour = "小时";
175
+ var minute = "分钟";
176
+ var second = "秒";
177
+ var common = {
178
+ _action_: _action_,
179
+ action: action,
180
+ all: all,
181
+ cancel: cancel,
182
+ clear_query: clear_query,
183
+ close: close,
184
+ contains: contains$1,
185
+ confirm: confirm,
186
+ empty: empty$1,
187
+ enable: enable,
188
+ error: error,
189
+ next_step: next_step,
190
+ not_contains: not_contains$1,
191
+ not_enable: not_enable,
192
+ prev_step: prev_step,
193
+ io: io,
194
+ load_failed: load_failed,
195
+ param: param,
196
+ no: no,
197
+ message: message,
198
+ architecture: architecture,
199
+ calculation: calculation,
200
+ on: on,
201
+ error_message: error_message,
202
+ retry: retry,
203
+ week_abbreviation: week_abbreviation,
204
+ day_abbreviation: day_abbreviation,
205
+ hour_abbreviation: hour_abbreviation,
206
+ minute_abbreviation: minute_abbreviation,
207
+ second_abbreviation: second_abbreviation,
208
+ week: week,
209
+ day: day,
210
+ hour: hour,
211
+ minute: minute,
212
+ second: second
213
+ };
214
+
215
+ var contains = "包含";
216
+ var custom_column = "自定义列的展示和顺序";
217
+ var not = "不为";
218
+ var not_contains = "不包含";
219
+ var or = "或";
220
+ var previous_items = "前 {size} 项";
221
+ var next_items = "后 {size} 项";
222
+ var push_to = "跳转至";
223
+ var pagination_range = "第 {range1} – {range2} 项";
224
+ var pagination_total = "第 {range1} – {range2} 项,共 {total} 项";
225
+ var pagination_lots_total = "共 {total} 项";
226
+ var unknow_error = "未知错误";
227
+ var to = "至";
228
+ var time_zone_select_placeholder = "输入城市、时区";
229
+ var browser_time_zone = "浏览器时区";
230
+ var coorddinated_universal_time = "协调世界时";
231
+ var Architecture_AARCH64 = "AArch64";
232
+ var Architecture_X86_64 = "x86_64";
233
+ var maximum_row_count_desc = "最多添加 {count} 项。";
234
+ var remove = "移除";
235
+ var add = "添加";
236
+ var prefix = "前缀";
237
+ var suffix = "后缀";
238
+ var components = {
239
+ contains: contains,
240
+ custom_column: custom_column,
241
+ "in": "属于",
242
+ not: not,
243
+ not_contains: not_contains,
244
+ or: or,
245
+ previous_items: previous_items,
246
+ next_items: next_items,
247
+ push_to: push_to,
248
+ pagination_range: pagination_range,
249
+ pagination_total: pagination_total,
250
+ pagination_lots_total: pagination_lots_total,
251
+ unknow_error: unknow_error,
252
+ to: to,
253
+ time_zone_select_placeholder: time_zone_select_placeholder,
254
+ browser_time_zone: browser_time_zone,
255
+ coorddinated_universal_time: coorddinated_universal_time,
256
+ Architecture_AARCH64: Architecture_AARCH64,
257
+ Architecture_X86_64: Architecture_X86_64,
258
+ maximum_row_count_desc: maximum_row_count_desc,
259
+ remove: remove,
260
+ add: add,
261
+ prefix: prefix,
262
+ suffix: suffix
263
+ };
264
+
265
+ var current = "当前值";
266
+ var empty = "该时间范围内没有数据";
267
+ var max = "最大值";
268
+ var metric = {
269
+ current: current,
270
+ empty: empty,
271
+ max: max
272
+ };
273
+
274
+ const locale = {
275
+ common,
276
+ components,
277
+ metric
278
+ };
279
+
280
+ const locales = {
281
+ "en-US": locale$1,
282
+ "zh-CN": locale
283
+ };
284
+
285
+ var __defProp = Object.defineProperty;
286
+ var __defProps = Object.defineProperties;
287
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
288
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
289
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
290
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
291
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
292
+ var __spreadValues = (a, b) => {
293
+ for (var prop in b || (b = {}))
294
+ if (__hasOwnProp.call(b, prop))
295
+ __defNormalProp(a, prop, b[prop]);
296
+ if (__getOwnPropSymbols)
297
+ for (var prop of __getOwnPropSymbols(b)) {
298
+ if (__propIsEnum.call(b, prop))
299
+ __defNormalProp(a, prop, b[prop]);
300
+ }
301
+ return a;
302
+ };
303
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
304
+ const defaultOptions = {
305
+ lng: "zh-CN" /* zh */,
306
+ fallbackLng: ["zh-CN" /* zh */, "en-US" /* en */],
307
+ interpolation: {
308
+ prefix: "{",
309
+ suffix: "}"
310
+ },
311
+ resources: {
312
+ ["en-US" /* en */]: locales["en-US"],
313
+ ["zh-CN" /* zh */]: locales["zh-CN"]
314
+ },
315
+ nsSeparator: ".",
316
+ ns: Object.keys(locales["zh-CN"]),
317
+ react: {
318
+ useSuspense: false
319
+ }
320
+ };
321
+ const parrotI18n = i18next.createInstance(defaultOptions);
322
+ const initParrotI18n = (options, callback) => {
323
+ const finalResources = merge(defaultOptions.resources, options == null ? void 0 : options.resources) || {};
324
+ const finalNameSpaces = Object.keys(finalResources["zh-CN" /* zh */]);
325
+ if (!parrotI18n.isInitialized) {
326
+ parrotI18n.init(
327
+ __spreadProps(__spreadValues({}, merge(defaultOptions, options)), {
328
+ resources: finalResources,
329
+ ns: finalNameSpaces
330
+ }),
331
+ callback
332
+ );
333
+ }
334
+ };
335
+
336
+ export { initParrotI18n, locales, parrotI18n };