@snack-uikit/locale 0.3.1-preview-bd4095bc.0 → 0.5.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 CHANGED
@@ -3,6 +3,34 @@
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.5.0 (2024-02-23)
7
+
8
+
9
+ ### Features
10
+
11
+ * **FF-4218:** Field slider ([7a853bf](https://github.com/cloud-ru-tech/snack-uikit/commit/7a853bf8807ae595b2a8a635d754825305c07d6a))
12
+ * **FF-4221:** add translations for List ([dcb7b70](https://github.com/cloud-ru-tech/snack-uikit/commit/dcb7b70851e274bd948a01c103e3464037d27e27))
13
+
14
+
15
+
16
+
17
+
18
+ # 0.4.0 (2024-02-12)
19
+
20
+
21
+ ### Bug Fixes
22
+
23
+ * **FF-4205:** add typing to ru locale to match texts ([fd4a435](https://github.com/cloud-ru-tech/snack-uikit/commit/fd4a43532bb8a349d8e1f765285491ae65c00882))
24
+
25
+
26
+ ### Features
27
+
28
+ * **FF-4205:** changed api of useLocale hook ([5c19647](https://github.com/cloud-ru-tech/snack-uikit/commit/5c19647f21d072e92c48c4b9588ed9df86c0ae86))
29
+
30
+
31
+
32
+
33
+
6
34
  # 0.3.0 (2024-02-09)
7
35
 
8
36
 
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, { firstLevelTrans: string; Table: { searchPlaceholder: string; noData: { title: string; }; noResults: { title: string; description: string; }; errorData: { title: string; description: string; }; rowsOptionsLabel: string; export: string; }; Chips: { ...; }; Fields: { ...; }; }>>` | - | |
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
 
@@ -15,6 +15,17 @@ 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;
20
31
  };
@@ -15,6 +15,17 @@ 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',
20
31
  },
@@ -16,6 +16,17 @@ 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;
21
32
  };
@@ -43,6 +54,17 @@ export declare const LOCALES: {
43
54
  rowsOptionsLabel: string;
44
55
  export: string;
45
56
  };
57
+ List: {
58
+ noData: {
59
+ description: string;
60
+ };
61
+ noResults: {
62
+ description: string;
63
+ };
64
+ errorData: {
65
+ description: string;
66
+ };
67
+ };
46
68
  Chips: {
47
69
  clearAllButton: string;
48
70
  };
@@ -18,6 +18,17 @@ export const ru_RU = {
18
18
  Chips: {
19
19
  clearAllButton: 'Удалить все',
20
20
  },
21
+ List: {
22
+ noData: {
23
+ description: 'Нет данных',
24
+ },
25
+ noResults: {
26
+ description: 'Не найдено',
27
+ },
28
+ errorData: {
29
+ description: 'Ошибка загрузки данных',
30
+ },
31
+ },
21
32
  Fields: {
22
33
  limitTooltip: {
23
34
  max: 'Значение должно быть меньше либо равно ',
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "title": "Locale",
7
- "version": "0.3.1-preview-bd4095bc.0",
7
+ "version": "0.5.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": "53065276382788f1cae880a1303f6f5a47cdd750"
40
+ "gitHead": "ee199e2cdca1d24db821533512263dfe06365159"
41
41
  }
@@ -15,6 +15,17 @@ 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',
20
31
  },
@@ -20,6 +20,17 @@ export const ru_RU: typeof en_GB = {
20
20
  Chips: {
21
21
  clearAllButton: 'Удалить все',
22
22
  },
23
+ List: {
24
+ noData: {
25
+ description: 'Нет данных',
26
+ },
27
+ noResults: {
28
+ description: 'Не найдено',
29
+ },
30
+ errorData: {
31
+ description: 'Ошибка загрузки данных',
32
+ },
33
+ },
23
34
  Fields: {
24
35
  limitTooltip: {
25
36
  max: 'Значение должно быть меньше либо равно ',