@aidc-toolkit/utility 0.9.21-beta → 1.0.23-beta

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.
@@ -1,4 +1,4 @@
1
- export declare const localeStrings: {
1
+ declare const _default: {
2
2
  readonly Transformer: {
3
3
  readonly domainMustBeGreaterThanZero: "Domain {{domain, number}} must be greater than 0";
4
4
  readonly tweakMustBeGreaterThanOrEqualToZero: "Tweak {{tweak, number}} must be greater than or equal to 0";
@@ -29,4 +29,5 @@ export declare const localeStrings: {
29
29
  readonly typeNameKeyNotFound: "{{typeName}} \"{{key}}\" not found";
30
30
  };
31
31
  };
32
- //# sourceMappingURL=locale-strings.d.ts.map
32
+ export default _default;
33
+ //# sourceMappingURL=locale-resources.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"locale-resources.d.ts","sourceRoot":"","sources":["../../../src/locale/en/locale-resources.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBA8BW"}
@@ -1,4 +1,4 @@
1
- export const localeStrings = {
1
+ export default {
2
2
  Transformer: {
3
3
  domainMustBeGreaterThanZero: "Domain {{domain, number}} must be greater than 0",
4
4
  tweakMustBeGreaterThanOrEqualToZero: "Tweak {{tweak, number}} must be greater than or equal to 0",
@@ -29,4 +29,4 @@ export const localeStrings = {
29
29
  typeNameKeyNotFound: "{{typeName}} \"{{key}}\" not found"
30
30
  }
31
31
  };
32
- //# sourceMappingURL=locale-strings.js.map
32
+ //# sourceMappingURL=locale-resources.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"locale-resources.js","sourceRoot":"","sources":["../../../src/locale/en/locale-resources.ts"],"names":[],"mappings":"AAAA,eAAe;IACX,WAAW,EAAE;QACT,2BAA2B,EAAE,kDAAkD;QAC/E,mCAAmC,EAAE,4DAA4D;QACjG,mCAAmC,EAAE,4DAA4D;QACjG,mBAAmB,EAAE,8DAA8D;QACnF,0CAA0C,EAAE,2EAA2E;QACvH,0BAA0B,EAAE,6EAA6E;KAC5G;IACD,eAAe,EAAE;QACb,yBAAyB,EAAE,qCAAqC;KACnE;IACD,qBAAqB,EAAE;QACnB,uBAAuB,EAAE,oDAAoD;QAC7E,8BAA8B,EAAE,+DAA+D;QAC/F,yBAAyB,EAAE,gCAAgC;QAC3D,gCAAgC,EAAE,sFAAsF;QACxH,6BAA6B,EAAE,mFAAmF;QAClH,mBAAmB,EAAE,oEAAoE;QACzF,2CAA2C,EAAE,uGAAuG;QACpJ,wCAAwC,EAAE,oGAAoG;QAC9I,8BAA8B,EAAE,qFAAqF;QACrH,0BAA0B,EAAE,4DAA4D;QACxF,qCAAqC,EAAE,6EAA6E;QACpH,qBAAqB,EAAE,2DAA2D;QAClF,uCAAuC,EAAE,4FAA4F;KACxI;IACD,eAAe,EAAE;QACb,mBAAmB,EAAE,oCAAoC;KAC5D;CACK,CAAC"}
@@ -1,4 +1,4 @@
1
- export declare const localeStrings: {
1
+ declare const _default: {
2
2
  readonly Transformer: {
3
3
  readonly domainMustBeGreaterThanZero: "Le domaine {{domain, number}} doit être supérieur à 0";
4
4
  readonly tweakMustBeGreaterThanOrEqualToZero: "Le réglage {{tweak, number}} doit être supérieur ou égal à 0";
@@ -29,4 +29,5 @@ export declare const localeStrings: {
29
29
  readonly typeNameKeyNotFound: "{{typeName}} \"{{key}}\" introuvable";
30
30
  };
31
31
  };
32
- //# sourceMappingURL=locale-strings.d.ts.map
32
+ export default _default;
33
+ //# sourceMappingURL=locale-resources.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"locale-resources.d.ts","sourceRoot":"","sources":["../../../src/locale/fr/locale-resources.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBA8BW"}
@@ -1,4 +1,4 @@
1
- export const localeStrings = {
1
+ export default {
2
2
  Transformer: {
3
3
  domainMustBeGreaterThanZero: "Le domaine {{domain, number}} doit être supérieur à 0",
4
4
  tweakMustBeGreaterThanOrEqualToZero: "Le réglage {{tweak, number}} doit être supérieur ou égal à 0",
@@ -29,4 +29,4 @@ export const localeStrings = {
29
29
  typeNameKeyNotFound: "{{typeName}} \"{{key}}\" introuvable"
30
30
  }
31
31
  };
32
- //# sourceMappingURL=locale-strings.js.map
32
+ //# sourceMappingURL=locale-resources.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"locale-resources.js","sourceRoot":"","sources":["../../../src/locale/fr/locale-resources.ts"],"names":[],"mappings":"AAAA,eAAe;IACX,WAAW,EAAE;QACT,2BAA2B,EAAE,uDAAuD;QACpF,mCAAmC,EAAE,8DAA8D;QACnG,mCAAmC,EAAE,+DAA+D;QACpG,mBAAmB,EAAE,uEAAuE;QAC5F,0CAA0C,EAAE,+EAA+E;QAC3H,0BAA0B,EAAE,uFAAuF;KACtH;IACD,eAAe,EAAE;QACb,yBAAyB,EAAE,6CAA6C;KAC3E;IACD,qBAAqB,EAAE;QACnB,uBAAuB,EAAE,0EAA0E;QACnG,8BAA8B,EAAE,wFAAwF;QACxH,yBAAyB,EAAE,kDAAkD;QAC7E,gCAAgC,EAAE,0FAA0F;QAC5H,6BAA6B,EAAE,0FAA0F;QACzH,mBAAmB,EAAE,0EAA0E;QAC/F,2CAA2C,EAAE,2GAA2G;QACxJ,wCAAwC,EAAE,2GAA2G;QACrJ,8BAA8B,EAAE,2FAA2F;QAC3H,0BAA0B,EAAE,iEAAiE;QAC7F,qCAAqC,EAAE,kFAAkF;QACzH,qBAAqB,EAAE,0EAA0E;QACjG,uCAAuC,EAAE,yHAAyH;KACrK;IACD,eAAe,EAAE;QACb,mBAAmB,EAAE,sCAAsC;KAC9D;CACK,CAAC"}
@@ -1,11 +1,11 @@
1
1
  import { type I18nEnvironment } from "@aidc-toolkit/core";
2
2
  import { type i18n, type Resource } from "i18next";
3
- import { localeStrings as enLocaleStrings } from "./en/locale-strings.js";
3
+ import enLocaleResources from "./en/locale-resources.js";
4
4
  export declare const utilityNS = "aidct_utility";
5
5
  /**
6
6
  * Locale strings type is extracted from the English locale strings object.
7
7
  */
8
- export type UtilityLocaleStrings = typeof enLocaleStrings;
8
+ export type UtilityLocaleResources = typeof enLocaleResources;
9
9
  /**
10
10
  * Utility resources.
11
11
  */
@@ -1 +1 @@
1
- {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../src/locale/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0C,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAClG,OAAgB,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC5D,OAAO,EAAE,aAAa,IAAI,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAG1E,eAAO,MAAM,SAAS,kBAAkB,CAAC;AAEzC;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,OAAO,eAAe,CAAC;AAI1D;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,QAO9B,CAAC;AAGF,eAAO,MAAM,cAAc,EAAE,IAA+B,CAAC;AAE7D;;;;;;;;;;;GAWG;AACH,wBAAsB,eAAe,CAAC,WAAW,EAAE,eAAe,EAAE,KAAK,UAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CAEhG"}
1
+ {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../src/locale/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0C,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAClG,OAAgB,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC5D,OAAO,iBAAiB,MAAM,0BAA0B,CAAC;AAGzD,eAAO,MAAM,SAAS,kBAAkB,CAAC;AAEzC;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,OAAO,iBAAiB,CAAC;AAI9D;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,QAO9B,CAAC;AAGF,eAAO,MAAM,cAAc,EAAE,IAA+B,CAAC;AAE7D;;;;;;;;;;;GAWG;AACH,wBAAsB,eAAe,CAAC,WAAW,EAAE,eAAe,EAAE,KAAK,UAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CAEhG"}
@@ -1,18 +1,18 @@
1
1
  import { i18nAssertValidResources, i18nCoreInit } from "@aidc-toolkit/core";
2
2
  import i18next from "i18next";
3
- import { localeStrings as enLocaleStrings } from "./en/locale-strings.js";
4
- import { localeStrings as frLocaleStrings } from "./fr/locale-strings.js";
3
+ import enLocaleResources from "./en/locale-resources.js";
4
+ import frLocaleResources from "./fr/locale-resources.js";
5
5
  export const utilityNS = "aidct_utility";
6
- i18nAssertValidResources(enLocaleStrings, "fr", frLocaleStrings);
6
+ i18nAssertValidResources(enLocaleResources, "fr", frLocaleResources);
7
7
  /**
8
8
  * Utility resources.
9
9
  */
10
10
  export const utilityResources = {
11
11
  en: {
12
- aidct_utility: enLocaleStrings
12
+ aidct_utility: enLocaleResources
13
13
  },
14
14
  fr: {
15
- aidct_utility: frLocaleStrings
15
+ aidct_utility: frLocaleResources
16
16
  }
17
17
  };
18
18
  // Explicit type is necessary to work around bug in type discovery with linked packages.
@@ -1 +1 @@
1
- {"version":3,"file":"i18n.js","sourceRoot":"","sources":["../../src/locale/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,YAAY,EAAwB,MAAM,oBAAoB,CAAC;AAClG,OAAO,OAAqC,MAAM,SAAS,CAAC;AAC5D,OAAO,EAAE,aAAa,IAAI,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,EAAE,aAAa,IAAI,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAE1E,MAAM,CAAC,MAAM,SAAS,GAAG,eAAe,CAAC;AAOzC,wBAAwB,CAAC,eAAe,EAAE,IAAI,EAAE,eAAe,CAAC,CAAC;AAEjE;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAa;IACtC,EAAE,EAAE;QACA,aAAa,EAAE,eAAe;KACjC;IACD,EAAE,EAAE;QACA,aAAa,EAAE,eAAe;KACjC;CACJ,CAAC;AAEF,wFAAwF;AACxF,MAAM,CAAC,MAAM,cAAc,GAAS,OAAO,CAAC,cAAc,EAAE,CAAC;AAE7D;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,WAA4B,EAAE,KAAK,GAAG,KAAK;IAC7E,MAAM,YAAY,CAAC,cAAc,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,gBAAgB,CAAC,CAAC;AACxF,CAAC"}
1
+ {"version":3,"file":"i18n.js","sourceRoot":"","sources":["../../src/locale/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,YAAY,EAAwB,MAAM,oBAAoB,CAAC;AAClG,OAAO,OAAqC,MAAM,SAAS,CAAC;AAC5D,OAAO,iBAAiB,MAAM,0BAA0B,CAAC;AACzD,OAAO,iBAAiB,MAAM,0BAA0B,CAAC;AAEzD,MAAM,CAAC,MAAM,SAAS,GAAG,eAAe,CAAC;AAOzC,wBAAwB,CAAC,iBAAiB,EAAE,IAAI,EAAE,iBAAiB,CAAC,CAAC;AAErE;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAa;IACtC,EAAE,EAAE;QACA,aAAa,EAAE,iBAAiB;KACnC;IACD,EAAE,EAAE;QACA,aAAa,EAAE,iBAAiB;KACnC;CACJ,CAAC;AAEF,wFAAwF;AACxF,MAAM,CAAC,MAAM,cAAc,GAAS,OAAO,CAAC,cAAc,EAAE,CAAC;AAE7D;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,WAA4B,EAAE,KAAK,GAAG,KAAK;IAC7E,MAAM,YAAY,CAAC,cAAc,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,gBAAgB,CAAC,CAAC;AACxF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aidc-toolkit/utility",
3
- "version": "0.9.21-beta",
3
+ "version": "1.0.23-beta",
4
4
  "description": "Foundational utilities for AIDC Toolkit",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,4 +1,4 @@
1
- export const localeStrings = {
1
+ export default {
2
2
  Transformer: {
3
3
  domainMustBeGreaterThanZero: "Domain {{domain, number}} must be greater than 0",
4
4
  tweakMustBeGreaterThanOrEqualToZero: "Tweak {{tweak, number}} must be greater than or equal to 0",
@@ -1,4 +1,4 @@
1
- export const localeStrings = {
1
+ export default {
2
2
  Transformer: {
3
3
  domainMustBeGreaterThanZero: "Le domaine {{domain, number}} doit être supérieur à 0",
4
4
  tweakMustBeGreaterThanOrEqualToZero: "Le réglage {{tweak, number}} doit être supérieur ou égal à 0",
@@ -1,26 +1,26 @@
1
1
  import { i18nAssertValidResources, i18nCoreInit, type I18nEnvironment } from "@aidc-toolkit/core";
2
2
  import i18next, { type i18n, type Resource } from "i18next";
3
- import { localeStrings as enLocaleStrings } from "./en/locale-strings.js";
4
- import { localeStrings as frLocaleStrings } from "./fr/locale-strings.js";
3
+ import enLocaleResources from "./en/locale-resources.js";
4
+ import frLocaleResources from "./fr/locale-resources.js";
5
5
 
6
6
  export const utilityNS = "aidct_utility";
7
7
 
8
8
  /**
9
9
  * Locale strings type is extracted from the English locale strings object.
10
10
  */
11
- export type UtilityLocaleStrings = typeof enLocaleStrings;
11
+ export type UtilityLocaleResources = typeof enLocaleResources;
12
12
 
13
- i18nAssertValidResources(enLocaleStrings, "fr", frLocaleStrings);
13
+ i18nAssertValidResources(enLocaleResources, "fr", frLocaleResources);
14
14
 
15
15
  /**
16
16
  * Utility resources.
17
17
  */
18
18
  export const utilityResources: Resource = {
19
19
  en: {
20
- aidct_utility: enLocaleStrings
20
+ aidct_utility: enLocaleResources
21
21
  },
22
22
  fr: {
23
- aidct_utility: frLocaleStrings
23
+ aidct_utility: frLocaleResources
24
24
  }
25
25
  };
26
26
 
@@ -1,4 +1,4 @@
1
- import type { UtilityLocaleStrings } from "./i18n.js";
1
+ import type { UtilityLocaleResources } from "./i18n.js";
2
2
 
3
3
  /**
4
4
  * Internationalization module.
@@ -10,7 +10,7 @@ declare module "i18next" {
10
10
  interface CustomTypeOptions {
11
11
  defaultNS: "aidct_utility";
12
12
  resources: {
13
- aidct_utility: UtilityLocaleStrings;
13
+ aidct_utility: UtilityLocaleResources;
14
14
  };
15
15
  }
16
16
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"locale-strings.d.ts","sourceRoot":"","sources":["../../../src/locale/en/locale-strings.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BhB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"locale-strings.js","sourceRoot":"","sources":["../../../src/locale/en/locale-strings.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG;IACzB,WAAW,EAAE;QACT,2BAA2B,EAAE,kDAAkD;QAC/E,mCAAmC,EAAE,4DAA4D;QACjG,mCAAmC,EAAE,4DAA4D;QACjG,mBAAmB,EAAE,8DAA8D;QACnF,0CAA0C,EAAE,2EAA2E;QACvH,0BAA0B,EAAE,6EAA6E;KAC5G;IACD,eAAe,EAAE;QACb,yBAAyB,EAAE,qCAAqC;KACnE;IACD,qBAAqB,EAAE;QACnB,uBAAuB,EAAE,oDAAoD;QAC7E,8BAA8B,EAAE,+DAA+D;QAC/F,yBAAyB,EAAE,gCAAgC;QAC3D,gCAAgC,EAAE,sFAAsF;QACxH,6BAA6B,EAAE,mFAAmF;QAClH,mBAAmB,EAAE,oEAAoE;QACzF,2CAA2C,EAAE,uGAAuG;QACpJ,wCAAwC,EAAE,oGAAoG;QAC9I,8BAA8B,EAAE,qFAAqF;QACrH,0BAA0B,EAAE,4DAA4D;QACxF,qCAAqC,EAAE,6EAA6E;QACpH,qBAAqB,EAAE,2DAA2D;QAClF,uCAAuC,EAAE,4FAA4F;KACxI;IACD,eAAe,EAAE;QACb,mBAAmB,EAAE,oCAAoC;KAC5D;CACK,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"locale-strings.d.ts","sourceRoot":"","sources":["../../../src/locale/fr/locale-strings.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BhB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"locale-strings.js","sourceRoot":"","sources":["../../../src/locale/fr/locale-strings.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG;IACzB,WAAW,EAAE;QACT,2BAA2B,EAAE,uDAAuD;QACpF,mCAAmC,EAAE,8DAA8D;QACnG,mCAAmC,EAAE,+DAA+D;QACpG,mBAAmB,EAAE,uEAAuE;QAC5F,0CAA0C,EAAE,+EAA+E;QAC3H,0BAA0B,EAAE,uFAAuF;KACtH;IACD,eAAe,EAAE;QACb,yBAAyB,EAAE,6CAA6C;KAC3E;IACD,qBAAqB,EAAE;QACnB,uBAAuB,EAAE,0EAA0E;QACnG,8BAA8B,EAAE,wFAAwF;QACxH,yBAAyB,EAAE,kDAAkD;QAC7E,gCAAgC,EAAE,0FAA0F;QAC5H,6BAA6B,EAAE,0FAA0F;QACzH,mBAAmB,EAAE,0EAA0E;QAC/F,2CAA2C,EAAE,2GAA2G;QACxJ,wCAAwC,EAAE,2GAA2G;QACrJ,8BAA8B,EAAE,2FAA2F;QAC3H,0BAA0B,EAAE,iEAAiE;QAC7F,qCAAqC,EAAE,kFAAkF;QACzH,qBAAqB,EAAE,0EAA0E;QACjG,uCAAuC,EAAE,yHAAyH;KACrK;IACD,eAAe,EAAE;QACb,mBAAmB,EAAE,sCAAsC;KAC9D;CACK,CAAC"}