@snack-uikit/locale 0.9.0 → 0.10.1-preview-582e3b50.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/CHANGELOG.md +11 -0
- package/README.md +1 -1
- package/dist/cjs/locales/en_GB.d.ts +6 -0
- package/dist/cjs/locales/en_GB.js +7 -1
- package/dist/cjs/locales/index.d.ts +12 -0
- package/dist/cjs/locales/ru_RU.js +7 -1
- package/dist/esm/locales/en_GB.d.ts +6 -0
- package/dist/esm/locales/en_GB.js +6 -0
- package/dist/esm/locales/index.d.ts +12 -0
- package/dist/esm/locales/ru_RU.js +6 -0
- package/package.json +2 -2
- package/src/locales/en_GB.ts +6 -0
- package/src/locales/ru_RU.ts +6 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# 0.10.0 (2024-10-31)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **PDS-438:** add calendar translations ([a51b79d](https://github.com/cloud-ru-tech/snack-uikit/commit/a51b79d13cf041f3ded2ba99cb250f009fec1a1b))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# 0.9.0 (2024-10-28)
|
|
7
18
|
|
|
8
19
|
|
package/README.md
CHANGED
|
@@ -54,7 +54,7 @@ const lang = 'en_GB'; // or 'ru_RU' or 'custom_LANG'
|
|
|
54
54
|
| name | type | default value | description |
|
|
55
55
|
|------|------|---------------|-------------|
|
|
56
56
|
| lang* | `string` | - | |
|
|
57
|
-
| locales | `PartialObjectDeep<Record<string, { Table: { searchPlaceholder: string; noData: { title: string; }; noResults: { title: string; description: string; }; errorData: { title: string; description: string; }; rowsOptionsLabel: string; export: string; }; ...
|
|
57
|
+
| locales | `PartialObjectDeep<Record<string, { Table: { searchPlaceholder: string; noData: { title: string; }; noResults: { title: string; description: string; }; errorData: { title: string; description: string; }; rowsOptionsLabel: string; export: string; }; ... 5 more ...; Calendar: { ...; }; }>>` | - | |
|
|
58
58
|
## useLocale
|
|
59
59
|
`helper`
|
|
60
60
|
|
|
@@ -33,6 +33,8 @@ export declare const en_GB: {
|
|
|
33
33
|
Chips: {
|
|
34
34
|
clearAllButton: string;
|
|
35
35
|
allLabel: string;
|
|
36
|
+
apply: string;
|
|
37
|
+
cancel: string;
|
|
36
38
|
};
|
|
37
39
|
Fields: {
|
|
38
40
|
limitTooltip: {
|
|
@@ -47,4 +49,8 @@ export declare const en_GB: {
|
|
|
47
49
|
apply: string;
|
|
48
50
|
cancel: string;
|
|
49
51
|
};
|
|
52
|
+
Calendar: {
|
|
53
|
+
current: string;
|
|
54
|
+
time: string;
|
|
55
|
+
};
|
|
50
56
|
};
|
|
@@ -38,7 +38,9 @@ exports.en_GB = {
|
|
|
38
38
|
},
|
|
39
39
|
Chips: {
|
|
40
40
|
clearAllButton: 'Clear all',
|
|
41
|
-
allLabel: 'All'
|
|
41
|
+
allLabel: 'All',
|
|
42
|
+
apply: 'Apply',
|
|
43
|
+
cancel: 'Cancel'
|
|
42
44
|
},
|
|
43
45
|
Fields: {
|
|
44
46
|
limitTooltip: {
|
|
@@ -52,5 +54,9 @@ exports.en_GB = {
|
|
|
52
54
|
ColorPicker: {
|
|
53
55
|
apply: 'Apply',
|
|
54
56
|
cancel: 'Cancel'
|
|
57
|
+
},
|
|
58
|
+
Calendar: {
|
|
59
|
+
current: 'Current',
|
|
60
|
+
time: 'Time'
|
|
55
61
|
}
|
|
56
62
|
};
|
|
@@ -34,6 +34,8 @@ export declare const LOCALES: {
|
|
|
34
34
|
Chips: {
|
|
35
35
|
clearAllButton: string;
|
|
36
36
|
allLabel: string;
|
|
37
|
+
apply: string;
|
|
38
|
+
cancel: string;
|
|
37
39
|
};
|
|
38
40
|
Fields: {
|
|
39
41
|
limitTooltip: {
|
|
@@ -48,6 +50,10 @@ export declare const LOCALES: {
|
|
|
48
50
|
apply: string;
|
|
49
51
|
cancel: string;
|
|
50
52
|
};
|
|
53
|
+
Calendar: {
|
|
54
|
+
current: string;
|
|
55
|
+
time: string;
|
|
56
|
+
};
|
|
51
57
|
};
|
|
52
58
|
readonly ru_RU: {
|
|
53
59
|
Table: {
|
|
@@ -84,6 +90,8 @@ export declare const LOCALES: {
|
|
|
84
90
|
Chips: {
|
|
85
91
|
clearAllButton: string;
|
|
86
92
|
allLabel: string;
|
|
93
|
+
apply: string;
|
|
94
|
+
cancel: string;
|
|
87
95
|
};
|
|
88
96
|
Fields: {
|
|
89
97
|
limitTooltip: {
|
|
@@ -98,5 +106,9 @@ export declare const LOCALES: {
|
|
|
98
106
|
apply: string;
|
|
99
107
|
cancel: string;
|
|
100
108
|
};
|
|
109
|
+
Calendar: {
|
|
110
|
+
current: string;
|
|
111
|
+
time: string;
|
|
112
|
+
};
|
|
101
113
|
};
|
|
102
114
|
};
|
|
@@ -23,7 +23,9 @@ exports.ru_RU = {
|
|
|
23
23
|
},
|
|
24
24
|
Chips: {
|
|
25
25
|
clearAllButton: 'Удалить все',
|
|
26
|
-
allLabel: 'Все'
|
|
26
|
+
allLabel: 'Все',
|
|
27
|
+
apply: 'Применить',
|
|
28
|
+
cancel: 'Отменить'
|
|
27
29
|
},
|
|
28
30
|
List: {
|
|
29
31
|
noData: {
|
|
@@ -52,5 +54,9 @@ exports.ru_RU = {
|
|
|
52
54
|
ColorPicker: {
|
|
53
55
|
apply: 'Применить',
|
|
54
56
|
cancel: 'Отменить'
|
|
57
|
+
},
|
|
58
|
+
Calendar: {
|
|
59
|
+
current: 'Сейчас',
|
|
60
|
+
time: 'Время'
|
|
55
61
|
}
|
|
56
62
|
};
|
|
@@ -33,6 +33,8 @@ export declare const en_GB: {
|
|
|
33
33
|
Chips: {
|
|
34
34
|
clearAllButton: string;
|
|
35
35
|
allLabel: string;
|
|
36
|
+
apply: string;
|
|
37
|
+
cancel: string;
|
|
36
38
|
};
|
|
37
39
|
Fields: {
|
|
38
40
|
limitTooltip: {
|
|
@@ -47,4 +49,8 @@ export declare const en_GB: {
|
|
|
47
49
|
apply: string;
|
|
48
50
|
cancel: string;
|
|
49
51
|
};
|
|
52
|
+
Calendar: {
|
|
53
|
+
current: string;
|
|
54
|
+
time: string;
|
|
55
|
+
};
|
|
50
56
|
};
|
|
@@ -33,6 +33,8 @@ export const en_GB = {
|
|
|
33
33
|
Chips: {
|
|
34
34
|
clearAllButton: 'Clear all',
|
|
35
35
|
allLabel: 'All',
|
|
36
|
+
apply: 'Apply',
|
|
37
|
+
cancel: 'Cancel',
|
|
36
38
|
},
|
|
37
39
|
Fields: {
|
|
38
40
|
limitTooltip: {
|
|
@@ -47,4 +49,8 @@ export const en_GB = {
|
|
|
47
49
|
apply: 'Apply',
|
|
48
50
|
cancel: 'Cancel',
|
|
49
51
|
},
|
|
52
|
+
Calendar: {
|
|
53
|
+
current: 'Current',
|
|
54
|
+
time: 'Time',
|
|
55
|
+
},
|
|
50
56
|
};
|
|
@@ -34,6 +34,8 @@ export declare const LOCALES: {
|
|
|
34
34
|
Chips: {
|
|
35
35
|
clearAllButton: string;
|
|
36
36
|
allLabel: string;
|
|
37
|
+
apply: string;
|
|
38
|
+
cancel: string;
|
|
37
39
|
};
|
|
38
40
|
Fields: {
|
|
39
41
|
limitTooltip: {
|
|
@@ -48,6 +50,10 @@ export declare const LOCALES: {
|
|
|
48
50
|
apply: string;
|
|
49
51
|
cancel: string;
|
|
50
52
|
};
|
|
53
|
+
Calendar: {
|
|
54
|
+
current: string;
|
|
55
|
+
time: string;
|
|
56
|
+
};
|
|
51
57
|
};
|
|
52
58
|
readonly ru_RU: {
|
|
53
59
|
Table: {
|
|
@@ -84,6 +90,8 @@ export declare const LOCALES: {
|
|
|
84
90
|
Chips: {
|
|
85
91
|
clearAllButton: string;
|
|
86
92
|
allLabel: string;
|
|
93
|
+
apply: string;
|
|
94
|
+
cancel: string;
|
|
87
95
|
};
|
|
88
96
|
Fields: {
|
|
89
97
|
limitTooltip: {
|
|
@@ -98,5 +106,9 @@ export declare const LOCALES: {
|
|
|
98
106
|
apply: string;
|
|
99
107
|
cancel: string;
|
|
100
108
|
};
|
|
109
|
+
Calendar: {
|
|
110
|
+
current: string;
|
|
111
|
+
time: string;
|
|
112
|
+
};
|
|
101
113
|
};
|
|
102
114
|
};
|
|
@@ -18,6 +18,8 @@ export const ru_RU = {
|
|
|
18
18
|
Chips: {
|
|
19
19
|
clearAllButton: 'Удалить все',
|
|
20
20
|
allLabel: 'Все',
|
|
21
|
+
apply: 'Применить',
|
|
22
|
+
cancel: 'Отменить',
|
|
21
23
|
},
|
|
22
24
|
List: {
|
|
23
25
|
noData: {
|
|
@@ -47,4 +49,8 @@ export const ru_RU = {
|
|
|
47
49
|
apply: 'Применить',
|
|
48
50
|
cancel: 'Отменить',
|
|
49
51
|
},
|
|
52
|
+
Calendar: {
|
|
53
|
+
current: 'Сейчас',
|
|
54
|
+
time: 'Время',
|
|
55
|
+
},
|
|
50
56
|
};
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"title": "Locale",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.10.1-preview-582e3b50.0",
|
|
8
8
|
"sideEffects": [
|
|
9
9
|
"*.css",
|
|
10
10
|
"*.woff",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/lodash.merge": "4.6.9"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "87f4b3ee5244cf75de558bc1e2a8ac718f25f00f"
|
|
45
45
|
}
|
package/src/locales/en_GB.ts
CHANGED
|
@@ -33,6 +33,8 @@ export const en_GB = {
|
|
|
33
33
|
Chips: {
|
|
34
34
|
clearAllButton: 'Clear all',
|
|
35
35
|
allLabel: 'All',
|
|
36
|
+
apply: 'Apply',
|
|
37
|
+
cancel: 'Cancel',
|
|
36
38
|
},
|
|
37
39
|
Fields: {
|
|
38
40
|
limitTooltip: {
|
|
@@ -47,4 +49,8 @@ export const en_GB = {
|
|
|
47
49
|
apply: 'Apply',
|
|
48
50
|
cancel: 'Cancel',
|
|
49
51
|
},
|
|
52
|
+
Calendar: {
|
|
53
|
+
current: 'Current',
|
|
54
|
+
time: 'Time',
|
|
55
|
+
},
|
|
50
56
|
};
|
package/src/locales/ru_RU.ts
CHANGED
|
@@ -20,6 +20,8 @@ export const ru_RU: typeof en_GB = {
|
|
|
20
20
|
Chips: {
|
|
21
21
|
clearAllButton: 'Удалить все',
|
|
22
22
|
allLabel: 'Все',
|
|
23
|
+
apply: 'Применить',
|
|
24
|
+
cancel: 'Отменить',
|
|
23
25
|
},
|
|
24
26
|
List: {
|
|
25
27
|
noData: {
|
|
@@ -49,4 +51,8 @@ export const ru_RU: typeof en_GB = {
|
|
|
49
51
|
apply: 'Применить',
|
|
50
52
|
cancel: 'Отменить',
|
|
51
53
|
},
|
|
54
|
+
Calendar: {
|
|
55
|
+
current: 'Сейчас',
|
|
56
|
+
time: 'Время',
|
|
57
|
+
},
|
|
52
58
|
};
|