@snack-uikit/locale 0.2.0 → 0.2.2-preview-3e45f5dd.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,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.2.1 (2024-02-09)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **FF-4166:** typings for OverrideLocales ([042d349](https://github.com/cloud-ru-tech/snack-uikit/commit/042d3499d24e291cc6b2bd06d69971c105c73d51))
12
+
13
+
14
+
15
+
16
+
6
17
  # 0.2.0 (2024-02-08)
7
18
 
8
19
 
@@ -3,13 +3,17 @@ export declare const en_GB: {
3
3
  searchPlaceholder: string;
4
4
  noData: {
5
5
  title: string;
6
- description: string;
7
6
  };
8
7
  noResults: {
9
8
  title: string;
10
9
  description: string;
11
10
  };
11
+ errorData: {
12
+ title: string;
13
+ description: string;
14
+ };
12
15
  rowsOptionsLabel: string;
16
+ export: string;
13
17
  };
14
18
  Chips: {
15
19
  clearAllButton: string;
@@ -2,14 +2,18 @@ export const en_GB = {
2
2
  Table: {
3
3
  searchPlaceholder: 'Search',
4
4
  noData: {
5
- title: 'Data collection error',
6
- description: 'Try refreshing the page',
5
+ title: 'No data',
7
6
  },
8
7
  noResults: {
9
8
  title: 'Nothing found',
10
9
  description: 'Try entering another query',
11
10
  },
11
+ errorData: {
12
+ title: 'Error loading data',
13
+ description: 'Try refreshing the page',
14
+ },
12
15
  rowsOptionsLabel: 'Rows volume: ',
16
+ export: 'Export to ',
13
17
  },
14
18
  Chips: {
15
19
  clearAllButton: 'Clear all',
@@ -4,13 +4,17 @@ export declare const LOCALES: {
4
4
  searchPlaceholder: string;
5
5
  noData: {
6
6
  title: string;
7
- description: string;
8
7
  };
9
8
  noResults: {
10
9
  title: string;
11
10
  description: string;
12
11
  };
12
+ errorData: {
13
+ title: string;
14
+ description: string;
15
+ };
13
16
  rowsOptionsLabel: string;
17
+ export: string;
14
18
  };
15
19
  Chips: {
16
20
  clearAllButton: string;
@@ -27,13 +31,17 @@ export declare const LOCALES: {
27
31
  searchPlaceholder: string;
28
32
  noData: {
29
33
  title: string;
30
- description: string;
31
34
  };
32
35
  noResults: {
33
36
  title: string;
34
37
  description: string;
35
38
  };
39
+ errorData: {
40
+ title: string;
41
+ description: string;
42
+ };
36
43
  rowsOptionsLabel: string;
44
+ export: string;
37
45
  };
38
46
  Chips: {
39
47
  clearAllButton: string;
@@ -3,13 +3,17 @@ export declare const ru_RU: {
3
3
  searchPlaceholder: string;
4
4
  noData: {
5
5
  title: string;
6
- description: string;
7
6
  };
8
7
  noResults: {
9
8
  title: string;
10
9
  description: string;
11
10
  };
11
+ errorData: {
12
+ title: string;
13
+ description: string;
14
+ };
12
15
  rowsOptionsLabel: string;
16
+ export: string;
13
17
  };
14
18
  Chips: {
15
19
  clearAllButton: string;
@@ -2,14 +2,18 @@ export const ru_RU = {
2
2
  Table: {
3
3
  searchPlaceholder: 'Поиск',
4
4
  noData: {
5
- title: 'Данные не найдены',
6
- description: 'Попробуйте перезагрузить страницу',
5
+ title: 'Нет данных',
7
6
  },
8
7
  noResults: {
9
8
  title: 'Не найдено',
10
9
  description: 'Попробуйте изменить параметры фильтрации',
11
10
  },
11
+ errorData: {
12
+ title: 'Ошибка загрузки данных',
13
+ description: 'Попробуйте обновить страницу',
14
+ },
12
15
  rowsOptionsLabel: 'Кол-во строк: ',
16
+ export: 'Экспортировать в ',
13
17
  },
14
18
  Chips: {
15
19
  clearAllButton: 'Удалить все',
package/dist/types.d.ts CHANGED
@@ -3,4 +3,4 @@ import { PartialDeep } from './typeUtils';
3
3
  export type KnownLocaleLang = keyof typeof LOCALES;
4
4
  export type LocaleLang = KnownLocaleLang | string;
5
5
  export type LocaleDictionary = typeof LOCALES.en_GB;
6
- export type OverrideLocales = PartialDeep<Record<KnownLocaleLang, LocaleDictionary>> | Record<string, LocaleDictionary>;
6
+ export type OverrideLocales = PartialDeep<Record<KnownLocaleLang, LocaleDictionary>> & Record<string, LocaleDictionary>;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "title": "Locale",
7
- "version": "0.2.0",
7
+ "version": "0.2.2-preview-3e45f5dd.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": "eb20092ecd05743f00831dfa51a3f5db2416be8f"
40
+ "gitHead": "6326b8595759eed4819ad48fc4ca02ce1dabd7c3"
41
41
  }
@@ -2,14 +2,18 @@ export const en_GB = {
2
2
  Table: {
3
3
  searchPlaceholder: 'Search',
4
4
  noData: {
5
- title: 'Data collection error',
6
- description: 'Try refreshing the page',
5
+ title: 'No data',
7
6
  },
8
7
  noResults: {
9
8
  title: 'Nothing found',
10
9
  description: 'Try entering another query',
11
10
  },
11
+ errorData: {
12
+ title: 'Error loading data',
13
+ description: 'Try refreshing the page',
14
+ },
12
15
  rowsOptionsLabel: 'Rows volume: ',
16
+ export: 'Export to ',
13
17
  },
14
18
  Chips: {
15
19
  clearAllButton: 'Clear all',
@@ -2,14 +2,18 @@ export const ru_RU = {
2
2
  Table: {
3
3
  searchPlaceholder: 'Поиск',
4
4
  noData: {
5
- title: 'Данные не найдены',
6
- description: 'Попробуйте перезагрузить страницу',
5
+ title: 'Нет данных',
7
6
  },
8
7
  noResults: {
9
8
  title: 'Не найдено',
10
9
  description: 'Попробуйте изменить параметры фильтрации',
11
10
  },
11
+ errorData: {
12
+ title: 'Ошибка загрузки данных',
13
+ description: 'Попробуйте обновить страницу',
14
+ },
12
15
  rowsOptionsLabel: 'Кол-во строк: ',
16
+ export: 'Экспортировать в ',
13
17
  },
14
18
  Chips: {
15
19
  clearAllButton: 'Удалить все',
package/src/types.ts CHANGED
@@ -7,4 +7,4 @@ export type LocaleLang = KnownLocaleLang | string;
7
7
 
8
8
  export type LocaleDictionary = typeof LOCALES.en_GB;
9
9
 
10
- export type OverrideLocales = PartialDeep<Record<KnownLocaleLang, LocaleDictionary>> | Record<string, LocaleDictionary>;
10
+ export type OverrideLocales = PartialDeep<Record<KnownLocaleLang, LocaleDictionary>> & Record<string, LocaleDictionary>;