@snack-uikit/locale 0.1.1 → 0.2.1

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,28 @@
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
+
17
+ # 0.2.0 (2024-02-08)
18
+
19
+
20
+ ### Features
21
+
22
+ * **FF-4211:** add fields locales ([e1311d7](https://github.com/cloud-ru-tech/snack-uikit/commit/e1311d783215016d105f290362ca779f8e5c777f))
23
+
24
+
25
+
26
+
27
+
6
28
  ## 0.1.1 (2024-02-07)
7
29
 
8
30
 
@@ -14,4 +14,10 @@ export declare const en_GB: {
14
14
  Chips: {
15
15
  clearAllButton: string;
16
16
  };
17
+ Fields: {
18
+ limitTooltip: {
19
+ max: string;
20
+ min: string;
21
+ };
22
+ };
17
23
  };
@@ -14,4 +14,10 @@ export const en_GB = {
14
14
  Chips: {
15
15
  clearAllButton: 'Clear all',
16
16
  },
17
+ Fields: {
18
+ limitTooltip: {
19
+ max: 'Value should be less or equal ',
20
+ min: 'Value should be greater or equal ',
21
+ },
22
+ },
17
23
  };
@@ -15,6 +15,12 @@ export declare const LOCALES: {
15
15
  Chips: {
16
16
  clearAllButton: string;
17
17
  };
18
+ Fields: {
19
+ limitTooltip: {
20
+ max: string;
21
+ min: string;
22
+ };
23
+ };
18
24
  };
19
25
  readonly ru_RU: {
20
26
  Table: {
@@ -32,5 +38,11 @@ export declare const LOCALES: {
32
38
  Chips: {
33
39
  clearAllButton: string;
34
40
  };
41
+ Fields: {
42
+ limitTooltip: {
43
+ max: string;
44
+ min: string;
45
+ };
46
+ };
35
47
  };
36
48
  };
@@ -14,4 +14,10 @@ export declare const ru_RU: {
14
14
  Chips: {
15
15
  clearAllButton: string;
16
16
  };
17
+ Fields: {
18
+ limitTooltip: {
19
+ max: string;
20
+ min: string;
21
+ };
22
+ };
17
23
  };
@@ -14,4 +14,10 @@ export const ru_RU = {
14
14
  Chips: {
15
15
  clearAllButton: 'Удалить все',
16
16
  },
17
+ Fields: {
18
+ limitTooltip: {
19
+ max: 'Значение должно быть меньше либо равно ',
20
+ min: 'Значение должно быть больше либо равно ',
21
+ },
22
+ },
17
23
  };
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.1.1",
7
+ "version": "0.2.1",
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": "0e3f0ca15d2f0903a25bfa72bd95da9a414bddc2"
40
+ "gitHead": "70242f33831d873cf3b4a99a7285923f6c934906"
41
41
  }
@@ -14,4 +14,10 @@ export const en_GB = {
14
14
  Chips: {
15
15
  clearAllButton: 'Clear all',
16
16
  },
17
+ Fields: {
18
+ limitTooltip: {
19
+ max: 'Value should be less or equal ',
20
+ min: 'Value should be greater or equal ',
21
+ },
22
+ },
17
23
  };
@@ -14,4 +14,10 @@ export const ru_RU = {
14
14
  Chips: {
15
15
  clearAllButton: 'Удалить все',
16
16
  },
17
+ Fields: {
18
+ limitTooltip: {
19
+ max: 'Значение должно быть меньше либо равно ',
20
+ min: 'Значение должно быть больше либо равно ',
21
+ },
22
+ },
17
23
  };
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>;