@snack-uikit/locale 0.4.0 → 0.6.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 +23 -0
- package/README.md +1 -1
- package/dist/locales/en_GB.d.ts +12 -0
- package/dist/locales/en_GB.js +12 -0
- package/dist/locales/index.d.ts +24 -0
- package/dist/locales/ru_RU.js +12 -0
- package/package.json +2 -2
- package/src/locales/en_GB.ts +12 -0
- package/src/locales/ru_RU.ts +12 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,29 @@
|
|
|
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.6.0 (2024-02-26)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **FF-4324:** add translations Chips allLabel ([d2c296e](https://github.com/cloud-ru-tech/snack-uikit/commit/d2c296e0bdcc677ea50b11ed920720ab27d83760))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# 0.5.0 (2024-02-23)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **FF-4218:** Field slider ([7a853bf](https://github.com/cloud-ru-tech/snack-uikit/commit/7a853bf8807ae595b2a8a635d754825305c07d6a))
|
|
23
|
+
* **FF-4221:** add translations for List ([dcb7b70](https://github.com/cloud-ru-tech/snack-uikit/commit/dcb7b70851e274bd948a01c103e3464037d27e27))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
6
29
|
# 0.4.0 (2024-02-12)
|
|
7
30
|
|
|
8
31
|
|
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, {
|
|
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; }; List: { ...; }; Chips: { ...; }; Fields: { ...; }; }>>` | - | |
|
|
58
58
|
## useLocale
|
|
59
59
|
`helper`
|
|
60
60
|
|
package/dist/locales/en_GB.d.ts
CHANGED
|
@@ -15,8 +15,20 @@ export declare const en_GB: {
|
|
|
15
15
|
rowsOptionsLabel: string;
|
|
16
16
|
export: string;
|
|
17
17
|
};
|
|
18
|
+
List: {
|
|
19
|
+
noData: {
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
noResults: {
|
|
23
|
+
description: string;
|
|
24
|
+
};
|
|
25
|
+
errorData: {
|
|
26
|
+
description: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
18
29
|
Chips: {
|
|
19
30
|
clearAllButton: string;
|
|
31
|
+
allLabel: string;
|
|
20
32
|
};
|
|
21
33
|
Fields: {
|
|
22
34
|
limitTooltip: {
|
package/dist/locales/en_GB.js
CHANGED
|
@@ -15,8 +15,20 @@ export const en_GB = {
|
|
|
15
15
|
rowsOptionsLabel: 'Rows volume: ',
|
|
16
16
|
export: 'Export to ',
|
|
17
17
|
},
|
|
18
|
+
List: {
|
|
19
|
+
noData: {
|
|
20
|
+
description: 'No data',
|
|
21
|
+
},
|
|
22
|
+
noResults: {
|
|
23
|
+
description: 'Nothing found',
|
|
24
|
+
},
|
|
25
|
+
errorData: {
|
|
26
|
+
description: 'Error loading data',
|
|
27
|
+
},
|
|
28
|
+
},
|
|
18
29
|
Chips: {
|
|
19
30
|
clearAllButton: 'Clear all',
|
|
31
|
+
allLabel: 'All',
|
|
20
32
|
},
|
|
21
33
|
Fields: {
|
|
22
34
|
limitTooltip: {
|
package/dist/locales/index.d.ts
CHANGED
|
@@ -16,8 +16,20 @@ export declare const LOCALES: {
|
|
|
16
16
|
rowsOptionsLabel: string;
|
|
17
17
|
export: string;
|
|
18
18
|
};
|
|
19
|
+
List: {
|
|
20
|
+
noData: {
|
|
21
|
+
description: string;
|
|
22
|
+
};
|
|
23
|
+
noResults: {
|
|
24
|
+
description: string;
|
|
25
|
+
};
|
|
26
|
+
errorData: {
|
|
27
|
+
description: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
19
30
|
Chips: {
|
|
20
31
|
clearAllButton: string;
|
|
32
|
+
allLabel: string;
|
|
21
33
|
};
|
|
22
34
|
Fields: {
|
|
23
35
|
limitTooltip: {
|
|
@@ -43,8 +55,20 @@ export declare const LOCALES: {
|
|
|
43
55
|
rowsOptionsLabel: string;
|
|
44
56
|
export: string;
|
|
45
57
|
};
|
|
58
|
+
List: {
|
|
59
|
+
noData: {
|
|
60
|
+
description: string;
|
|
61
|
+
};
|
|
62
|
+
noResults: {
|
|
63
|
+
description: string;
|
|
64
|
+
};
|
|
65
|
+
errorData: {
|
|
66
|
+
description: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
46
69
|
Chips: {
|
|
47
70
|
clearAllButton: string;
|
|
71
|
+
allLabel: string;
|
|
48
72
|
};
|
|
49
73
|
Fields: {
|
|
50
74
|
limitTooltip: {
|
package/dist/locales/ru_RU.js
CHANGED
|
@@ -17,6 +17,18 @@ export const ru_RU = {
|
|
|
17
17
|
},
|
|
18
18
|
Chips: {
|
|
19
19
|
clearAllButton: 'Удалить все',
|
|
20
|
+
allLabel: 'Все',
|
|
21
|
+
},
|
|
22
|
+
List: {
|
|
23
|
+
noData: {
|
|
24
|
+
description: 'Нет данных',
|
|
25
|
+
},
|
|
26
|
+
noResults: {
|
|
27
|
+
description: 'Не найдено',
|
|
28
|
+
},
|
|
29
|
+
errorData: {
|
|
30
|
+
description: 'Ошибка загрузки данных',
|
|
31
|
+
},
|
|
20
32
|
},
|
|
21
33
|
Fields: {
|
|
22
34
|
limitTooltip: {
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"title": "Locale",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.6.0",
|
|
8
8
|
"sideEffects": [
|
|
9
9
|
"*.css",
|
|
10
10
|
"*.woff",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/lodash.merge": "4.6.9"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "eca9622fe5915bb18e60c4eb7a195ebc04f19f9c"
|
|
41
41
|
}
|
package/src/locales/en_GB.ts
CHANGED
|
@@ -15,8 +15,20 @@ export const en_GB = {
|
|
|
15
15
|
rowsOptionsLabel: 'Rows volume: ',
|
|
16
16
|
export: 'Export to ',
|
|
17
17
|
},
|
|
18
|
+
List: {
|
|
19
|
+
noData: {
|
|
20
|
+
description: 'No data',
|
|
21
|
+
},
|
|
22
|
+
noResults: {
|
|
23
|
+
description: 'Nothing found',
|
|
24
|
+
},
|
|
25
|
+
errorData: {
|
|
26
|
+
description: 'Error loading data',
|
|
27
|
+
},
|
|
28
|
+
},
|
|
18
29
|
Chips: {
|
|
19
30
|
clearAllButton: 'Clear all',
|
|
31
|
+
allLabel: 'All',
|
|
20
32
|
},
|
|
21
33
|
Fields: {
|
|
22
34
|
limitTooltip: {
|
package/src/locales/ru_RU.ts
CHANGED
|
@@ -19,6 +19,18 @@ export const ru_RU: typeof en_GB = {
|
|
|
19
19
|
},
|
|
20
20
|
Chips: {
|
|
21
21
|
clearAllButton: 'Удалить все',
|
|
22
|
+
allLabel: 'Все',
|
|
23
|
+
},
|
|
24
|
+
List: {
|
|
25
|
+
noData: {
|
|
26
|
+
description: 'Нет данных',
|
|
27
|
+
},
|
|
28
|
+
noResults: {
|
|
29
|
+
description: 'Не найдено',
|
|
30
|
+
},
|
|
31
|
+
errorData: {
|
|
32
|
+
description: 'Ошибка загрузки данных',
|
|
33
|
+
},
|
|
22
34
|
},
|
|
23
35
|
Fields: {
|
|
24
36
|
limitTooltip: {
|