@snack-uikit/locale 0.12.2-preview-9cd1b89a.0 → 0.12.2
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 +1 -9
- package/dist/cjs/locales/en_GB.js +2 -10
- package/dist/cjs/locales/index.d.ts +2 -18
- package/dist/cjs/locales/ru_RU.js +2 -10
- package/dist/esm/locales/en_GB.d.ts +1 -9
- package/dist/esm/locales/en_GB.js +1 -9
- package/dist/esm/locales/index.d.ts +2 -18
- package/dist/esm/locales/ru_RU.js +1 -9
- package/package.json +2 -2
- package/src/locales/en_GB.ts +1 -9
- package/src/locales/ru_RU.ts +1 -9
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.12.2 (2025-03-07)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **PDS-1483:** locale translation improvements for table ([78798db](https://github.com/cloud-ru-tech/snack-uikit/commit/78798dba545d9b6bf327b8f693fb0ca6348a8abc))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## 0.12.1 (2025-03-06)
|
|
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; groupSelectButton: { ...; }; }; ...
|
|
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; groupSelectButton: { ...; }; settingsHeaderLabel: string; }; ... 6 more ...` | - | |
|
|
58
58
|
## useLocale
|
|
59
59
|
`helper`
|
|
60
60
|
|
|
@@ -18,6 +18,7 @@ export declare const en_GB: {
|
|
|
18
18
|
hide: string;
|
|
19
19
|
show: string;
|
|
20
20
|
};
|
|
21
|
+
settingsHeaderLabel: string;
|
|
21
22
|
};
|
|
22
23
|
List: {
|
|
23
24
|
noData: {
|
|
@@ -64,13 +65,4 @@ export declare const en_GB: {
|
|
|
64
65
|
hideFilters: string;
|
|
65
66
|
showFilters: string;
|
|
66
67
|
};
|
|
67
|
-
ToastUpload: {
|
|
68
|
-
title: {
|
|
69
|
-
loading: string;
|
|
70
|
-
error: string;
|
|
71
|
-
pause: string;
|
|
72
|
-
errorUploaded: string;
|
|
73
|
-
uploaded: string;
|
|
74
|
-
};
|
|
75
|
-
};
|
|
76
68
|
};
|
|
@@ -23,7 +23,8 @@ exports.en_GB = {
|
|
|
23
23
|
groupSelectButton: {
|
|
24
24
|
hide: 'Hide all',
|
|
25
25
|
show: 'Show all'
|
|
26
|
-
}
|
|
26
|
+
},
|
|
27
|
+
settingsHeaderLabel: 'Display settings'
|
|
27
28
|
},
|
|
28
29
|
List: {
|
|
29
30
|
noData: {
|
|
@@ -69,14 +70,5 @@ exports.en_GB = {
|
|
|
69
70
|
Toolbar: {
|
|
70
71
|
hideFilters: 'Hide filters',
|
|
71
72
|
showFilters: 'Show filters'
|
|
72
|
-
},
|
|
73
|
-
ToastUpload: {
|
|
74
|
-
title: {
|
|
75
|
-
loading: 'Loading...',
|
|
76
|
-
error: 'Error loading...',
|
|
77
|
-
pause: 'Paused loading',
|
|
78
|
-
errorUploaded: 'Error uploaded',
|
|
79
|
-
uploaded: 'Uploaded'
|
|
80
|
-
}
|
|
81
73
|
}
|
|
82
74
|
};
|
|
@@ -19,6 +19,7 @@ export declare const LOCALES: {
|
|
|
19
19
|
hide: string;
|
|
20
20
|
show: string;
|
|
21
21
|
};
|
|
22
|
+
settingsHeaderLabel: string;
|
|
22
23
|
};
|
|
23
24
|
List: {
|
|
24
25
|
noData: {
|
|
@@ -65,15 +66,6 @@ export declare const LOCALES: {
|
|
|
65
66
|
hideFilters: string;
|
|
66
67
|
showFilters: string;
|
|
67
68
|
};
|
|
68
|
-
ToastUpload: {
|
|
69
|
-
title: {
|
|
70
|
-
loading: string;
|
|
71
|
-
error: string;
|
|
72
|
-
pause: string;
|
|
73
|
-
errorUploaded: string;
|
|
74
|
-
uploaded: string;
|
|
75
|
-
};
|
|
76
|
-
};
|
|
77
69
|
};
|
|
78
70
|
readonly ru_RU: {
|
|
79
71
|
Table: {
|
|
@@ -95,6 +87,7 @@ export declare const LOCALES: {
|
|
|
95
87
|
hide: string;
|
|
96
88
|
show: string;
|
|
97
89
|
};
|
|
90
|
+
settingsHeaderLabel: string;
|
|
98
91
|
};
|
|
99
92
|
List: {
|
|
100
93
|
noData: {
|
|
@@ -141,14 +134,5 @@ export declare const LOCALES: {
|
|
|
141
134
|
hideFilters: string;
|
|
142
135
|
showFilters: string;
|
|
143
136
|
};
|
|
144
|
-
ToastUpload: {
|
|
145
|
-
title: {
|
|
146
|
-
loading: string;
|
|
147
|
-
error: string;
|
|
148
|
-
pause: string;
|
|
149
|
-
errorUploaded: string;
|
|
150
|
-
uploaded: string;
|
|
151
|
-
};
|
|
152
|
-
};
|
|
153
137
|
};
|
|
154
138
|
};
|
|
@@ -23,7 +23,8 @@ exports.ru_RU = {
|
|
|
23
23
|
groupSelectButton: {
|
|
24
24
|
hide: 'Скрыть все',
|
|
25
25
|
show: 'Показать все'
|
|
26
|
-
}
|
|
26
|
+
},
|
|
27
|
+
settingsHeaderLabel: 'Настройки отображения'
|
|
27
28
|
},
|
|
28
29
|
Chips: {
|
|
29
30
|
allLabel: 'Все',
|
|
@@ -69,14 +70,5 @@ exports.ru_RU = {
|
|
|
69
70
|
Toolbar: {
|
|
70
71
|
hideFilters: 'Скрыть фильтры',
|
|
71
72
|
showFilters: 'Показать фильтры'
|
|
72
|
-
},
|
|
73
|
-
ToastUpload: {
|
|
74
|
-
title: {
|
|
75
|
-
loading: 'Загрузка...',
|
|
76
|
-
error: 'Ошибка загрузки...',
|
|
77
|
-
pause: 'Загрузка приостановлена',
|
|
78
|
-
errorUploaded: 'Ошибка при загрузке',
|
|
79
|
-
uploaded: 'Загружено'
|
|
80
|
-
}
|
|
81
73
|
}
|
|
82
74
|
};
|
|
@@ -18,6 +18,7 @@ export declare const en_GB: {
|
|
|
18
18
|
hide: string;
|
|
19
19
|
show: string;
|
|
20
20
|
};
|
|
21
|
+
settingsHeaderLabel: string;
|
|
21
22
|
};
|
|
22
23
|
List: {
|
|
23
24
|
noData: {
|
|
@@ -64,13 +65,4 @@ export declare const en_GB: {
|
|
|
64
65
|
hideFilters: string;
|
|
65
66
|
showFilters: string;
|
|
66
67
|
};
|
|
67
|
-
ToastUpload: {
|
|
68
|
-
title: {
|
|
69
|
-
loading: string;
|
|
70
|
-
error: string;
|
|
71
|
-
pause: string;
|
|
72
|
-
errorUploaded: string;
|
|
73
|
-
uploaded: string;
|
|
74
|
-
};
|
|
75
|
-
};
|
|
76
68
|
};
|
|
@@ -18,6 +18,7 @@ export const en_GB = {
|
|
|
18
18
|
hide: 'Hide all',
|
|
19
19
|
show: 'Show all',
|
|
20
20
|
},
|
|
21
|
+
settingsHeaderLabel: 'Display settings',
|
|
21
22
|
},
|
|
22
23
|
List: {
|
|
23
24
|
noData: {
|
|
@@ -64,13 +65,4 @@ export const en_GB = {
|
|
|
64
65
|
hideFilters: 'Hide filters',
|
|
65
66
|
showFilters: 'Show filters',
|
|
66
67
|
},
|
|
67
|
-
ToastUpload: {
|
|
68
|
-
title: {
|
|
69
|
-
loading: 'Loading...',
|
|
70
|
-
error: 'Error loading...',
|
|
71
|
-
pause: 'Paused loading',
|
|
72
|
-
errorUploaded: 'Error uploaded',
|
|
73
|
-
uploaded: 'Uploaded',
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
68
|
};
|
|
@@ -19,6 +19,7 @@ export declare const LOCALES: {
|
|
|
19
19
|
hide: string;
|
|
20
20
|
show: string;
|
|
21
21
|
};
|
|
22
|
+
settingsHeaderLabel: string;
|
|
22
23
|
};
|
|
23
24
|
List: {
|
|
24
25
|
noData: {
|
|
@@ -65,15 +66,6 @@ export declare const LOCALES: {
|
|
|
65
66
|
hideFilters: string;
|
|
66
67
|
showFilters: string;
|
|
67
68
|
};
|
|
68
|
-
ToastUpload: {
|
|
69
|
-
title: {
|
|
70
|
-
loading: string;
|
|
71
|
-
error: string;
|
|
72
|
-
pause: string;
|
|
73
|
-
errorUploaded: string;
|
|
74
|
-
uploaded: string;
|
|
75
|
-
};
|
|
76
|
-
};
|
|
77
69
|
};
|
|
78
70
|
readonly ru_RU: {
|
|
79
71
|
Table: {
|
|
@@ -95,6 +87,7 @@ export declare const LOCALES: {
|
|
|
95
87
|
hide: string;
|
|
96
88
|
show: string;
|
|
97
89
|
};
|
|
90
|
+
settingsHeaderLabel: string;
|
|
98
91
|
};
|
|
99
92
|
List: {
|
|
100
93
|
noData: {
|
|
@@ -141,14 +134,5 @@ export declare const LOCALES: {
|
|
|
141
134
|
hideFilters: string;
|
|
142
135
|
showFilters: string;
|
|
143
136
|
};
|
|
144
|
-
ToastUpload: {
|
|
145
|
-
title: {
|
|
146
|
-
loading: string;
|
|
147
|
-
error: string;
|
|
148
|
-
pause: string;
|
|
149
|
-
errorUploaded: string;
|
|
150
|
-
uploaded: string;
|
|
151
|
-
};
|
|
152
|
-
};
|
|
153
137
|
};
|
|
154
138
|
};
|
|
@@ -18,6 +18,7 @@ export const ru_RU = {
|
|
|
18
18
|
hide: 'Скрыть все',
|
|
19
19
|
show: 'Показать все',
|
|
20
20
|
},
|
|
21
|
+
settingsHeaderLabel: 'Настройки отображения',
|
|
21
22
|
},
|
|
22
23
|
Chips: {
|
|
23
24
|
allLabel: 'Все',
|
|
@@ -64,13 +65,4 @@ export const ru_RU = {
|
|
|
64
65
|
hideFilters: 'Скрыть фильтры',
|
|
65
66
|
showFilters: 'Показать фильтры',
|
|
66
67
|
},
|
|
67
|
-
ToastUpload: {
|
|
68
|
-
title: {
|
|
69
|
-
loading: 'Загрузка...',
|
|
70
|
-
error: 'Ошибка загрузки...',
|
|
71
|
-
pause: 'Загрузка приостановлена',
|
|
72
|
-
errorUploaded: 'Ошибка при загрузке',
|
|
73
|
-
uploaded: 'Загружено',
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
68
|
};
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"title": "Locale",
|
|
7
|
-
"version": "0.12.2
|
|
7
|
+
"version": "0.12.2",
|
|
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": "d2606dfcde2dbcc674adc2d7765c3f1eee55aa7a"
|
|
45
45
|
}
|
package/src/locales/en_GB.ts
CHANGED
|
@@ -18,6 +18,7 @@ export const en_GB = {
|
|
|
18
18
|
hide: 'Hide all',
|
|
19
19
|
show: 'Show all',
|
|
20
20
|
},
|
|
21
|
+
settingsHeaderLabel: 'Display settings',
|
|
21
22
|
},
|
|
22
23
|
List: {
|
|
23
24
|
noData: {
|
|
@@ -64,13 +65,4 @@ export const en_GB = {
|
|
|
64
65
|
hideFilters: 'Hide filters',
|
|
65
66
|
showFilters: 'Show filters',
|
|
66
67
|
},
|
|
67
|
-
ToastUpload: {
|
|
68
|
-
title: {
|
|
69
|
-
loading: 'Loading...',
|
|
70
|
-
error: 'Error loading...',
|
|
71
|
-
pause: 'Paused loading',
|
|
72
|
-
errorUploaded: 'Error uploaded',
|
|
73
|
-
uploaded: 'Uploaded',
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
68
|
};
|
package/src/locales/ru_RU.ts
CHANGED
|
@@ -20,6 +20,7 @@ export const ru_RU: typeof en_GB = {
|
|
|
20
20
|
hide: 'Скрыть все',
|
|
21
21
|
show: 'Показать все',
|
|
22
22
|
},
|
|
23
|
+
settingsHeaderLabel: 'Настройки отображения',
|
|
23
24
|
},
|
|
24
25
|
Chips: {
|
|
25
26
|
allLabel: 'Все',
|
|
@@ -66,13 +67,4 @@ export const ru_RU: typeof en_GB = {
|
|
|
66
67
|
hideFilters: 'Скрыть фильтры',
|
|
67
68
|
showFilters: 'Показать фильтры',
|
|
68
69
|
},
|
|
69
|
-
ToastUpload: {
|
|
70
|
-
title: {
|
|
71
|
-
loading: 'Загрузка...',
|
|
72
|
-
error: 'Ошибка загрузки...',
|
|
73
|
-
pause: 'Загрузка приостановлена',
|
|
74
|
-
errorUploaded: 'Ошибка при загрузке',
|
|
75
|
-
uploaded: 'Загружено',
|
|
76
|
-
},
|
|
77
|
-
},
|
|
78
70
|
};
|