@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/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 EN from 'src/locales/en-US';
4
- import ZH from 'src/locales/zh-CN';
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,
@@ -1,5 +1,5 @@
1
1
  export declare const dovetailRefineI18n: import("i18next").i18n;
2
- export * as D2Locales from './locales';
2
+ export { D2Locales } from './locales';
3
3
  export * from './providers';
4
4
  export * from './hooks';
5
5
  export * from './components';
package/lib/src/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import i18n from './i18n';
2
2
  export const dovetailRefineI18n = i18n;
3
- export * as D2Locales from './locales';
3
+ export { D2Locales } from './locales';
4
4
  export * from './providers';
5
5
  export * from './hooks';
6
6
  export * from './components';
@@ -1,2 +1,115 @@
1
- import './en-US';
2
- import './zh-CN';
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
+ };
@@ -1,2 +1,6 @@
1
- import './en-US';
2
- import './zh-CN';
1
+ import D2LocalesEN from './en-US';
2
+ import D2LocalesZH from './zh-CN';
3
+ export const D2Locales = {
4
+ 'en-US': D2LocalesEN,
5
+ 'zh-CN': D2LocalesZH,
6
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dovetail-v2/refine",
3
- "version": "0.0.27",
3
+ "version": "0.0.28",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",