@dovetail-v2/refine 0.0.27 → 0.0.28
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/{MonacoYamlDiffEditor-b06840cc.js → MonacoYamlDiffEditor-b459d49b.js} +1 -1
- package/dist/{index-56189b86.js → index-432360ef.js} +417 -419
- package/dist/refine.js +4 -4
- package/dist/refine.umd.cjs +414 -416
- package/lib/src/App.js +2 -0
- package/lib/src/i18n.js +2 -6
- package/lib/src/index.d.ts +1 -1
- package/lib/src/index.js +1 -1
- package/lib/src/locales/index.d.ts +115 -2
- package/lib/src/locales/index.js +6 -2
- package/package.json +1 -1
package/lib/src/App.js
CHANGED
|
@@ -21,6 +21,8 @@ import { ServicesConfig } from './pages/services';
|
|
|
21
21
|
import { StatefulSetShow, StatefulSetList, StatefulSetForm } from './pages/statefulsets';
|
|
22
22
|
import { ProviderPlugins } from './plugins';
|
|
23
23
|
import { RESOURCE_GROUP, FormType } from './types';
|
|
24
|
+
import * as resources from './locales';
|
|
25
|
+
console.log('resources', resources);
|
|
24
26
|
function App() {
|
|
25
27
|
const histroy = createBrowserHistory();
|
|
26
28
|
const resourcesConfig = useMemo(() => {
|
package/lib/src/i18n.js
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import i18n from 'i18next';
|
|
2
2
|
import { initReactI18next } from 'react-i18next';
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
export const resources = {
|
|
6
|
-
'en-US': EN,
|
|
7
|
-
'zh-CN': ZH,
|
|
8
|
-
};
|
|
3
|
+
import { D2Locales } from 'src/locales';
|
|
4
|
+
export const resources = D2Locales;
|
|
9
5
|
i18n.use(initReactI18next).init({
|
|
10
6
|
supportedLngs: ['en-US', 'zh-CN'],
|
|
11
7
|
resources,
|
package/lib/src/index.d.ts
CHANGED
package/lib/src/index.js
CHANGED
|
@@ -1,2 +1,115 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare const D2Locales: {
|
|
2
|
+
'en-US': {
|
|
3
|
+
dovetail: {
|
|
4
|
+
copy: string;
|
|
5
|
+
reset_arguments: string;
|
|
6
|
+
view_changes: string;
|
|
7
|
+
back_to_edit: string;
|
|
8
|
+
configure_file: string;
|
|
9
|
+
yaml_format_wrong: string;
|
|
10
|
+
yaml_value_wrong: string;
|
|
11
|
+
edit_yaml: string;
|
|
12
|
+
copied: string;
|
|
13
|
+
already_reset: string;
|
|
14
|
+
fetch_schema_fail: string;
|
|
15
|
+
obtain_data_error: string;
|
|
16
|
+
retry: string;
|
|
17
|
+
create_resource: string;
|
|
18
|
+
edit_resource: string;
|
|
19
|
+
status: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
'zh-CN': {
|
|
23
|
+
dovetail: {
|
|
24
|
+
copy: string;
|
|
25
|
+
reset_arguments: string;
|
|
26
|
+
view_changes: string;
|
|
27
|
+
back_to_edit: string;
|
|
28
|
+
configure_file: string;
|
|
29
|
+
yaml_format_wrong: string;
|
|
30
|
+
yaml_value_wrong: string;
|
|
31
|
+
edit_yaml: string;
|
|
32
|
+
copied: string;
|
|
33
|
+
already_reset: string;
|
|
34
|
+
cancel: string;
|
|
35
|
+
delete: string;
|
|
36
|
+
create: string;
|
|
37
|
+
confirm_delete_text: string;
|
|
38
|
+
edit: string;
|
|
39
|
+
namespace: string;
|
|
40
|
+
name: string;
|
|
41
|
+
state: string;
|
|
42
|
+
status: string;
|
|
43
|
+
phase: string;
|
|
44
|
+
image: string;
|
|
45
|
+
replicas: string;
|
|
46
|
+
created_time: string;
|
|
47
|
+
label: string;
|
|
48
|
+
annotation: string;
|
|
49
|
+
type: string;
|
|
50
|
+
event: string;
|
|
51
|
+
reason: string;
|
|
52
|
+
object: string;
|
|
53
|
+
note: string;
|
|
54
|
+
condition: string;
|
|
55
|
+
download_yaml: string;
|
|
56
|
+
detail: string;
|
|
57
|
+
node_name: string;
|
|
58
|
+
restarts: string;
|
|
59
|
+
updated_time: string;
|
|
60
|
+
message: string;
|
|
61
|
+
save: string;
|
|
62
|
+
more: string;
|
|
63
|
+
workload: string;
|
|
64
|
+
all_namespaces: string;
|
|
65
|
+
empty: string;
|
|
66
|
+
schedule: string;
|
|
67
|
+
lastScheduleTime: string;
|
|
68
|
+
duration: string;
|
|
69
|
+
completions: string;
|
|
70
|
+
started: string;
|
|
71
|
+
init_container: string;
|
|
72
|
+
container: string;
|
|
73
|
+
redeploy: string;
|
|
74
|
+
data: string;
|
|
75
|
+
suspend: string;
|
|
76
|
+
resume: string;
|
|
77
|
+
cluster: string;
|
|
78
|
+
storage: string;
|
|
79
|
+
network: string;
|
|
80
|
+
clusterIp: string;
|
|
81
|
+
sessionAffinity: string;
|
|
82
|
+
log: string;
|
|
83
|
+
select_container: string;
|
|
84
|
+
wrap: string;
|
|
85
|
+
resume_log: string;
|
|
86
|
+
log_new_lines: string;
|
|
87
|
+
fetch_schema_fail: string;
|
|
88
|
+
obtain_data_error: string;
|
|
89
|
+
retry: string;
|
|
90
|
+
ready: string;
|
|
91
|
+
updating: string;
|
|
92
|
+
completed: string;
|
|
93
|
+
failed: string;
|
|
94
|
+
suspended: string;
|
|
95
|
+
running: string;
|
|
96
|
+
terminating: string;
|
|
97
|
+
succeeded: string;
|
|
98
|
+
unknown: string;
|
|
99
|
+
pending: string;
|
|
100
|
+
waiting: string;
|
|
101
|
+
create_resource: string;
|
|
102
|
+
edit_resource: string;
|
|
103
|
+
sec: string;
|
|
104
|
+
min: string;
|
|
105
|
+
hr: string;
|
|
106
|
+
day: string;
|
|
107
|
+
expand: string;
|
|
108
|
+
fold: string;
|
|
109
|
+
rule: string;
|
|
110
|
+
default_backend: string;
|
|
111
|
+
ingress_rule_type: string;
|
|
112
|
+
port: string;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
};
|
package/lib/src/locales/index.js
CHANGED