@snack-uikit/locale 0.11.0 → 0.11.1-preview-985e2518.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 +1 -1
- package/dist/cjs/locales/en_GB.d.ts +8 -1
- package/dist/cjs/locales/en_GB.js +9 -2
- package/dist/cjs/locales/index.d.ts +16 -2
- package/dist/cjs/locales/ru_RU.js +9 -2
- package/dist/esm/locales/en_GB.d.ts +8 -1
- package/dist/esm/locales/en_GB.js +8 -1
- package/dist/esm/locales/index.d.ts +16 -2
- package/dist/esm/locales/ru_RU.js +8 -1
- package/package.json +2 -2
- package/src/locales/en_GB.ts +8 -1
- package/src/locales/ru_RU.ts +8 -1
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; }; ... 6 more ...; Toolbar: { ...; }; }>>` | - | |
|
|
58
58
|
## useLocale
|
|
59
59
|
`helper`
|
|
60
60
|
|
|
@@ -31,10 +31,13 @@ export declare const en_GB: {
|
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
33
|
Chips: {
|
|
34
|
-
clearAllButton: string;
|
|
35
34
|
allLabel: string;
|
|
36
35
|
apply: string;
|
|
37
36
|
cancel: string;
|
|
37
|
+
add: string;
|
|
38
|
+
clear: string;
|
|
39
|
+
resetFilter: string;
|
|
40
|
+
addButtonDisabledTip: string;
|
|
38
41
|
};
|
|
39
42
|
Fields: {
|
|
40
43
|
limitTooltip: {
|
|
@@ -53,4 +56,8 @@ export declare const en_GB: {
|
|
|
53
56
|
current: string;
|
|
54
57
|
time: string;
|
|
55
58
|
};
|
|
59
|
+
Toolbar: {
|
|
60
|
+
hideFilters: string;
|
|
61
|
+
showFilters: string;
|
|
62
|
+
};
|
|
56
63
|
};
|
|
@@ -37,10 +37,13 @@ exports.en_GB = {
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
Chips: {
|
|
40
|
-
clearAllButton: 'Clear all',
|
|
41
40
|
allLabel: 'All',
|
|
42
41
|
apply: 'Apply',
|
|
43
|
-
cancel: 'Cancel'
|
|
42
|
+
cancel: 'Cancel',
|
|
43
|
+
add: 'Add',
|
|
44
|
+
clear: 'Clear',
|
|
45
|
+
resetFilter: 'Reset filter value',
|
|
46
|
+
addButtonDisabledTip: 'No more filters to add'
|
|
44
47
|
},
|
|
45
48
|
Fields: {
|
|
46
49
|
limitTooltip: {
|
|
@@ -58,5 +61,9 @@ exports.en_GB = {
|
|
|
58
61
|
Calendar: {
|
|
59
62
|
current: 'Current',
|
|
60
63
|
time: 'Time'
|
|
64
|
+
},
|
|
65
|
+
Toolbar: {
|
|
66
|
+
hideFilters: 'Hide filters',
|
|
67
|
+
showFilters: 'Show filters'
|
|
61
68
|
}
|
|
62
69
|
};
|
|
@@ -32,10 +32,13 @@ export declare const LOCALES: {
|
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
Chips: {
|
|
35
|
-
clearAllButton: string;
|
|
36
35
|
allLabel: string;
|
|
37
36
|
apply: string;
|
|
38
37
|
cancel: string;
|
|
38
|
+
add: string;
|
|
39
|
+
clear: string;
|
|
40
|
+
resetFilter: string;
|
|
41
|
+
addButtonDisabledTip: string;
|
|
39
42
|
};
|
|
40
43
|
Fields: {
|
|
41
44
|
limitTooltip: {
|
|
@@ -54,6 +57,10 @@ export declare const LOCALES: {
|
|
|
54
57
|
current: string;
|
|
55
58
|
time: string;
|
|
56
59
|
};
|
|
60
|
+
Toolbar: {
|
|
61
|
+
hideFilters: string;
|
|
62
|
+
showFilters: string;
|
|
63
|
+
};
|
|
57
64
|
};
|
|
58
65
|
readonly ru_RU: {
|
|
59
66
|
Table: {
|
|
@@ -88,10 +95,13 @@ export declare const LOCALES: {
|
|
|
88
95
|
};
|
|
89
96
|
};
|
|
90
97
|
Chips: {
|
|
91
|
-
clearAllButton: string;
|
|
92
98
|
allLabel: string;
|
|
93
99
|
apply: string;
|
|
94
100
|
cancel: string;
|
|
101
|
+
add: string;
|
|
102
|
+
clear: string;
|
|
103
|
+
resetFilter: string;
|
|
104
|
+
addButtonDisabledTip: string;
|
|
95
105
|
};
|
|
96
106
|
Fields: {
|
|
97
107
|
limitTooltip: {
|
|
@@ -110,5 +120,9 @@ export declare const LOCALES: {
|
|
|
110
120
|
current: string;
|
|
111
121
|
time: string;
|
|
112
122
|
};
|
|
123
|
+
Toolbar: {
|
|
124
|
+
hideFilters: string;
|
|
125
|
+
showFilters: string;
|
|
126
|
+
};
|
|
113
127
|
};
|
|
114
128
|
};
|
|
@@ -22,10 +22,13 @@ exports.ru_RU = {
|
|
|
22
22
|
export: 'Экспортировать в '
|
|
23
23
|
},
|
|
24
24
|
Chips: {
|
|
25
|
-
clearAllButton: 'Удалить все',
|
|
26
25
|
allLabel: 'Все',
|
|
27
26
|
apply: 'Применить',
|
|
28
|
-
cancel: 'Отменить'
|
|
27
|
+
cancel: 'Отменить',
|
|
28
|
+
add: 'Добавить',
|
|
29
|
+
clear: 'Очистить',
|
|
30
|
+
resetFilter: 'Сбросить значение фильтра',
|
|
31
|
+
addButtonDisabledTip: 'Нет фильтров для добавления'
|
|
29
32
|
},
|
|
30
33
|
List: {
|
|
31
34
|
noData: {
|
|
@@ -58,5 +61,9 @@ exports.ru_RU = {
|
|
|
58
61
|
Calendar: {
|
|
59
62
|
current: 'Сейчас',
|
|
60
63
|
time: 'Время'
|
|
64
|
+
},
|
|
65
|
+
Toolbar: {
|
|
66
|
+
hideFilters: 'Скрыть фильтры',
|
|
67
|
+
showFilters: 'Показать фильтры'
|
|
61
68
|
}
|
|
62
69
|
};
|
|
@@ -31,10 +31,13 @@ export declare const en_GB: {
|
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
33
|
Chips: {
|
|
34
|
-
clearAllButton: string;
|
|
35
34
|
allLabel: string;
|
|
36
35
|
apply: string;
|
|
37
36
|
cancel: string;
|
|
37
|
+
add: string;
|
|
38
|
+
clear: string;
|
|
39
|
+
resetFilter: string;
|
|
40
|
+
addButtonDisabledTip: string;
|
|
38
41
|
};
|
|
39
42
|
Fields: {
|
|
40
43
|
limitTooltip: {
|
|
@@ -53,4 +56,8 @@ export declare const en_GB: {
|
|
|
53
56
|
current: string;
|
|
54
57
|
time: string;
|
|
55
58
|
};
|
|
59
|
+
Toolbar: {
|
|
60
|
+
hideFilters: string;
|
|
61
|
+
showFilters: string;
|
|
62
|
+
};
|
|
56
63
|
};
|
|
@@ -31,10 +31,13 @@ export const en_GB = {
|
|
|
31
31
|
},
|
|
32
32
|
},
|
|
33
33
|
Chips: {
|
|
34
|
-
clearAllButton: 'Clear all',
|
|
35
34
|
allLabel: 'All',
|
|
36
35
|
apply: 'Apply',
|
|
37
36
|
cancel: 'Cancel',
|
|
37
|
+
add: 'Add',
|
|
38
|
+
clear: 'Clear',
|
|
39
|
+
resetFilter: 'Reset filter value',
|
|
40
|
+
addButtonDisabledTip: 'No more filters to add',
|
|
38
41
|
},
|
|
39
42
|
Fields: {
|
|
40
43
|
limitTooltip: {
|
|
@@ -53,4 +56,8 @@ export const en_GB = {
|
|
|
53
56
|
current: 'Current',
|
|
54
57
|
time: 'Time',
|
|
55
58
|
},
|
|
59
|
+
Toolbar: {
|
|
60
|
+
hideFilters: 'Hide filters',
|
|
61
|
+
showFilters: 'Show filters',
|
|
62
|
+
},
|
|
56
63
|
};
|
|
@@ -32,10 +32,13 @@ export declare const LOCALES: {
|
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
Chips: {
|
|
35
|
-
clearAllButton: string;
|
|
36
35
|
allLabel: string;
|
|
37
36
|
apply: string;
|
|
38
37
|
cancel: string;
|
|
38
|
+
add: string;
|
|
39
|
+
clear: string;
|
|
40
|
+
resetFilter: string;
|
|
41
|
+
addButtonDisabledTip: string;
|
|
39
42
|
};
|
|
40
43
|
Fields: {
|
|
41
44
|
limitTooltip: {
|
|
@@ -54,6 +57,10 @@ export declare const LOCALES: {
|
|
|
54
57
|
current: string;
|
|
55
58
|
time: string;
|
|
56
59
|
};
|
|
60
|
+
Toolbar: {
|
|
61
|
+
hideFilters: string;
|
|
62
|
+
showFilters: string;
|
|
63
|
+
};
|
|
57
64
|
};
|
|
58
65
|
readonly ru_RU: {
|
|
59
66
|
Table: {
|
|
@@ -88,10 +95,13 @@ export declare const LOCALES: {
|
|
|
88
95
|
};
|
|
89
96
|
};
|
|
90
97
|
Chips: {
|
|
91
|
-
clearAllButton: string;
|
|
92
98
|
allLabel: string;
|
|
93
99
|
apply: string;
|
|
94
100
|
cancel: string;
|
|
101
|
+
add: string;
|
|
102
|
+
clear: string;
|
|
103
|
+
resetFilter: string;
|
|
104
|
+
addButtonDisabledTip: string;
|
|
95
105
|
};
|
|
96
106
|
Fields: {
|
|
97
107
|
limitTooltip: {
|
|
@@ -110,5 +120,9 @@ export declare const LOCALES: {
|
|
|
110
120
|
current: string;
|
|
111
121
|
time: string;
|
|
112
122
|
};
|
|
123
|
+
Toolbar: {
|
|
124
|
+
hideFilters: string;
|
|
125
|
+
showFilters: string;
|
|
126
|
+
};
|
|
113
127
|
};
|
|
114
128
|
};
|
|
@@ -16,10 +16,13 @@ export const ru_RU = {
|
|
|
16
16
|
export: 'Экспортировать в ',
|
|
17
17
|
},
|
|
18
18
|
Chips: {
|
|
19
|
-
clearAllButton: 'Удалить все',
|
|
20
19
|
allLabel: 'Все',
|
|
21
20
|
apply: 'Применить',
|
|
22
21
|
cancel: 'Отменить',
|
|
22
|
+
add: 'Добавить',
|
|
23
|
+
clear: 'Очистить',
|
|
24
|
+
resetFilter: 'Сбросить значение фильтра',
|
|
25
|
+
addButtonDisabledTip: 'Нет фильтров для добавления',
|
|
23
26
|
},
|
|
24
27
|
List: {
|
|
25
28
|
noData: {
|
|
@@ -53,4 +56,8 @@ export const ru_RU = {
|
|
|
53
56
|
current: 'Сейчас',
|
|
54
57
|
time: 'Время',
|
|
55
58
|
},
|
|
59
|
+
Toolbar: {
|
|
60
|
+
hideFilters: 'Скрыть фильтры',
|
|
61
|
+
showFilters: 'Показать фильтры',
|
|
62
|
+
},
|
|
56
63
|
};
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"title": "Locale",
|
|
7
|
-
"version": "0.11.0",
|
|
7
|
+
"version": "0.11.1-preview-985e2518.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": "a09c8f36ad95bbe977dd1eeadd594b40b3458bdc"
|
|
45
45
|
}
|
package/src/locales/en_GB.ts
CHANGED
|
@@ -31,10 +31,13 @@ export const en_GB = {
|
|
|
31
31
|
},
|
|
32
32
|
},
|
|
33
33
|
Chips: {
|
|
34
|
-
clearAllButton: 'Clear all',
|
|
35
34
|
allLabel: 'All',
|
|
36
35
|
apply: 'Apply',
|
|
37
36
|
cancel: 'Cancel',
|
|
37
|
+
add: 'Add',
|
|
38
|
+
clear: 'Clear',
|
|
39
|
+
resetFilter: 'Reset filter value',
|
|
40
|
+
addButtonDisabledTip: 'No more filters to add',
|
|
38
41
|
},
|
|
39
42
|
Fields: {
|
|
40
43
|
limitTooltip: {
|
|
@@ -53,4 +56,8 @@ export const en_GB = {
|
|
|
53
56
|
current: 'Current',
|
|
54
57
|
time: 'Time',
|
|
55
58
|
},
|
|
59
|
+
Toolbar: {
|
|
60
|
+
hideFilters: 'Hide filters',
|
|
61
|
+
showFilters: 'Show filters',
|
|
62
|
+
},
|
|
56
63
|
};
|
package/src/locales/ru_RU.ts
CHANGED
|
@@ -18,10 +18,13 @@ export const ru_RU: typeof en_GB = {
|
|
|
18
18
|
export: 'Экспортировать в ',
|
|
19
19
|
},
|
|
20
20
|
Chips: {
|
|
21
|
-
clearAllButton: 'Удалить все',
|
|
22
21
|
allLabel: 'Все',
|
|
23
22
|
apply: 'Применить',
|
|
24
23
|
cancel: 'Отменить',
|
|
24
|
+
add: 'Добавить',
|
|
25
|
+
clear: 'Очистить',
|
|
26
|
+
resetFilter: 'Сбросить значение фильтра',
|
|
27
|
+
addButtonDisabledTip: 'Нет фильтров для добавления',
|
|
25
28
|
},
|
|
26
29
|
List: {
|
|
27
30
|
noData: {
|
|
@@ -55,4 +58,8 @@ export const ru_RU: typeof en_GB = {
|
|
|
55
58
|
current: 'Сейчас',
|
|
56
59
|
time: 'Время',
|
|
57
60
|
},
|
|
61
|
+
Toolbar: {
|
|
62
|
+
hideFilters: 'Скрыть фильтры',
|
|
63
|
+
showFilters: 'Показать фильтры',
|
|
64
|
+
},
|
|
58
65
|
};
|