angular-intlayer 9.3.3 → 9.4.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/README.md CHANGED
@@ -214,6 +214,7 @@ Explore our comprehensive documentation to get started with Intlayer and learn h
214
214
  <li><a href="https://intlayer.org/doc/environment/vite-and-vue" rel=''>Vite + Vue</a></li>
215
215
  <li><a href="https://intlayer.org/doc/environment/nuxt-and-vue" rel=''>Vite + Nuxt</a></li>
216
216
  <li><a href="https://intlayer.org/doc/environment/vite-and-solid" rel=''>Vite + Solid</a></li>
217
+ <li><a href="https://intlayer.org/doc/environment/solid-start" rel=''>Solid Start</a></li>
217
218
  <li><a href="https://intlayer.org/doc/environment/angular" rel=''>Angular</a></li>
218
219
  <li>
219
220
  <a href="https://intlayer.org/doc/environment/express" rel=''>Backend</a>
@@ -223,7 +224,9 @@ Explore our comprehensive documentation to get started with Intlayer and learn h
223
224
  <li><a href="https://intlayer.org/doc/environment/fastify" rel=''>Fastify</a></li>
224
225
  <li><a href="https://intlayer.org/doc/environment/adonisjs" rel=''>AdonisJS</a></li>
225
226
  <li><a href="https://intlayer.org/doc/environment/hono" rel=''>Hono</a></li>
227
+ <li><a href="https://intlayer.org/doc/environment/elysia" rel=''>Elysia</a></li>
226
228
  </ul>
229
+
227
230
  </li>
228
231
  </ul>
229
232
  </details>
@@ -327,4 +330,4 @@ Contribute on [GitHub](https://github.com/aymericzip/intlayer), [GitLab](https:/
327
330
 
328
331
  If you like Intlayer, give us a ⭐ on GitHub. It helps others discover the project! [See why GitHub Stars matter](https://github.com/aymericzip/intlayer/blob/main/CONTRIBUTING.md#why-github-stars-matter-).
329
332
 
330
- [![Star History Chart](https://api.star-history.com/svg?repos=aymericzip/intlayer&type=Date)](https://star-history.com/#aymericzip/intlayer&Date)
333
+ [![Star History Chart](https://star-history.dera.page/svg?repos=aymericzip/intlayer&type=Date)](https://star-history.dera.page/#aymericzip/intlayer&Date)
@@ -1,12 +1,12 @@
1
1
  import { __require } from "../_virtual/_rolldown/runtime.mjs";
2
+ import { readFile } from "node:fs/promises";
2
3
  import { createRequire } from "node:module";
3
4
  import { join } from "node:path";
4
- import { getConfiguration } from "@intlayer/config/node";
5
- import { getAlias, getHasDictionarySelector, getUnusedNodeTypesAsync, normalizePath } from "@intlayer/config/utils";
6
- import { readFile } from "node:fs/promises";
7
5
  import { addDynamicEntryPreload, createDynamicEntryFilter, resolvePreloadModuleId } from "@intlayer/config/dictionaryPreload";
8
6
  import { formatDictionarySelectorEnvVar, formatNodeTypeToEnvVar, getConfigEnvVars } from "@intlayer/config/envVars";
9
7
  import { getAppLogger } from "@intlayer/config/logger";
8
+ import { getConfiguration } from "@intlayer/config/node";
9
+ import { getAlias, getHasDictionarySelector, getUnusedNodeTypesAsync, normalizePath } from "@intlayer/config/utils";
10
10
  import { getDictionaries } from "@intlayer/dictionaries-entry";
11
11
  import { prepareIntlayer } from "@intlayer/engine/build";
12
12
  import { logConfigDetails } from "@intlayer/engine/cli";
@@ -1,4 +1,3 @@
1
- import { Locale } from "../intlayer/dist/types/index.js";
2
1
  import { LocalesValues } from "@intlayer/types/module_augmentation";
3
2
  //#region src/client/useLocaleStorage.d.ts
4
3
  /**
@@ -7,13 +6,13 @@ import { LocalesValues } from "@intlayer/types/module_augmentation";
7
6
  /**
8
7
  * Get the locale cookie
9
8
  */
10
- declare const localeInStorage: Locale;
9
+ declare const localeInStorage: import("@intlayer/types").Locale;
11
10
  /**
12
11
  * @deprecated Use localeInStorage instead
13
12
  *
14
13
  * Get the locale cookie
15
14
  */
16
- declare const localeCookie: Locale;
15
+ declare const localeCookie: import("@intlayer/types").Locale;
17
16
  /**
18
17
  * Set the locale cookie
19
18
  */
@@ -28,7 +27,7 @@ declare const setLocaleCookie: typeof setLocaleInStorage;
28
27
  * Hook that provides the locale storage and a function to set it
29
28
  */
30
29
  declare const useLocaleStorage: (isCookieEnabled?: boolean) => {
31
- getLocale: () => Locale;
30
+ getLocale: () => import("@intlayer/types").Locale;
32
31
  setLocale: (locale: LocalesValues) => void;
33
32
  };
34
33
  /**
@@ -39,7 +38,7 @@ declare const useLocaleStorage: (isCookieEnabled?: boolean) => {
39
38
  * Hook that provides the locale cookie and a function to set it
40
39
  */
41
40
  declare const useLocaleCookie: (isCookieEnabled?: boolean) => {
42
- localeCookie: Locale;
41
+ localeCookie: import("@intlayer/types").Locale;
43
42
  setLocaleCookie: (locale: LocalesValues) => void;
44
43
  };
45
44
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"useLocaleStorage.d.ts","names":[],"sources":["../../../src/client/useLocaleStorage.ts"],"mappings":";;;;;;;;;cAca,iBAAA;;;;;;cAMA,cAAA;;;;cAKA,qBAAkB,QACrB,eAAa;;;;;;cAaV,wBAAe;;;;cAKf,mBAAgB;mBAAhB;sBAAA;;;;;;;;;cAaA,kBAAe;EAIxB,cAJS;EAKT,kBAAe,QAAA"}
1
+ {"version":3,"file":"useLocaleStorage.d.ts","names":[],"sources":["../../../src/client/useLocaleStorage.ts"],"mappings":";;;;;;;;cAca,2CAAe;;;;;;cAMf,wCAAY;;;;cAKZ,qBAAkB,QACrB,eAAa;;;;;;cAaV,wBAAe;;;;cAKf,mBAAgB;;sBAAhB;;;;;;;;;cAaA,kBAAe;EAIxB,wCAAY;EACZ,kBAAe,QAAA"}
@@ -1,7 +1,6 @@
1
- import { LocalesValues } from "../intlayer/dist/types/index.js";
2
1
  //#region src/format/useCompact.d.ts
3
2
  declare const useCompact: () => import("@angular/core").Signal<(value: string | number, options?: Intl.NumberFormatOptions & {
4
- locale?: LocalesValues;
3
+ locale?: import("@intlayer/types").LocalesValues;
5
4
  }) => string>;
6
5
  //#endregion
7
6
  export { useCompact };
@@ -1 +1 @@
1
- {"version":3,"file":"useCompact.d.ts","names":[],"sources":["../../../src/format/useCompact.ts"],"mappings":";;cAIa,0CAAU,QAAA,wBAAA,UAAA,KAAA;WAAA"}
1
+ {"version":3,"file":"useCompact.d.ts","names":[],"sources":["../../../src/format/useCompact.ts"],"mappings":";cAIa,0CAAU,QAAA,wBAAA,UAAA,KAAA"}
@@ -1,7 +1,6 @@
1
- import { LocalesValues } from "../intlayer/dist/types/index.js";
2
1
  //#region src/format/useCurrency.d.ts
3
2
  declare const useCurrency: () => import("@angular/core").Signal<(value: string | number, options?: Intl.NumberFormatOptions & {
4
- locale?: LocalesValues;
3
+ locale?: import("@intlayer/types").LocalesValues;
5
4
  }) => string>;
6
5
  //#endregion
7
6
  export { useCurrency };
@@ -1 +1 @@
1
- {"version":3,"file":"useCurrency.d.ts","names":[],"sources":["../../../src/format/useCurrency.ts"],"mappings":";;cAIa,2CAAW,QAAA,wBAAA,UAAA,KAAA;WAAA"}
1
+ {"version":3,"file":"useCurrency.d.ts","names":[],"sources":["../../../src/format/useCurrency.ts"],"mappings":";cAIa,2CAAW,QAAA,wBAAA,UAAA,KAAA"}
@@ -1,10 +1,9 @@
1
- import { LocalesValues } from "../intlayer/dist/types/index.js";
2
1
  //#region src/format/useDate.d.ts
3
2
  /**
4
3
  * Angular client hook that provides a localized date/time formatter.
5
4
  */
6
5
  declare const useDate: () => import("@angular/core").Signal<(date: string | number | Date, options?: import("@intlayer/core/formatters").DateTimePreset | (Intl.DateTimeFormatOptions & {
7
- locale?: LocalesValues;
6
+ locale?: import("@intlayer/types").LocalesValues;
8
7
  })) => string>;
9
8
  //#endregion
10
9
  export { useDate };
@@ -1 +1 @@
1
- {"version":3,"file":"useDate.d.ts","names":[],"sources":["../../../src/format/useDate.ts"],"mappings":";;;;;cAOa,uCAAO,QAAA,wBAAA,MAAA,8CAAA,kBAAA,KAAA;WAAA"}
1
+ {"version":3,"file":"useDate.d.ts","names":[],"sources":["../../../src/format/useDate.ts"],"mappings":";;;;cAOa,uCAAO,QAAA,wBAAA,MAAA,8CAAA,kBAAA,KAAA"}
@@ -1,11 +1,10 @@
1
- import { LocalesValues } from "../intlayer/dist/types/index.js";
2
1
  //#region src/format/useList.d.ts
3
2
  declare const useList: () => import("@angular/core").Signal<(values: (string | number)[], options?: {
4
3
  localeMatcher?: 'lookup' | 'best fit';
5
4
  type?: 'conjunction' | 'disjunction' | 'unit';
6
5
  style?: 'long' | 'short' | 'narrow';
7
6
  } & {
8
- locale?: LocalesValues;
7
+ locale?: import("@intlayer/types").LocalesValues;
9
8
  }) => string>;
10
9
  //#endregion
11
10
  export { useList };
@@ -1 +1 @@
1
- {"version":3,"file":"useList.d.ts","names":[],"sources":["../../../src/format/useList.ts"],"mappings":";;cAIa,uCAAO,QAAA,6BAAA;;;;;WAAP"}
1
+ {"version":3,"file":"useList.d.ts","names":[],"sources":["../../../src/format/useList.ts"],"mappings":";cAIa,uCAAO,QAAA,6BAAA"}
@@ -1,10 +1,9 @@
1
- import { LocalesValues } from "../intlayer/dist/types/index.js";
2
1
  //#region src/format/useNumber.d.ts
3
2
  /**
4
3
  * Angular client hook that provides a localized number formatter.
5
4
  */
6
5
  declare const useNumber: () => import("@angular/core").Signal<(value: string | number, args_1?: Intl.NumberFormatOptions & {
7
- locale?: LocalesValues;
6
+ locale?: import("@intlayer/types").LocalesValues;
8
7
  }) => string>;
9
8
  //#endregion
10
9
  export { useNumber };
@@ -1 +1 @@
1
- {"version":3,"file":"useNumber.d.ts","names":[],"sources":["../../../src/format/useNumber.ts"],"mappings":";;;;;cAOa,yCAAS,QAAA,wBAAA,SAAA,KAAA;WAAA"}
1
+ {"version":3,"file":"useNumber.d.ts","names":[],"sources":["../../../src/format/useNumber.ts"],"mappings":";;;;cAOa,yCAAS,QAAA,wBAAA,SAAA,KAAA"}
@@ -1,7 +1,6 @@
1
- import { LocalesValues } from "../intlayer/dist/types/index.js";
2
1
  //#region src/format/usePercentage.d.ts
3
2
  declare const usePercentage: () => import("@angular/core").Signal<(value: string | number, args_1?: Intl.NumberFormatOptions & {
4
- locale?: LocalesValues;
3
+ locale?: import("@intlayer/types").LocalesValues;
5
4
  }) => string>;
6
5
  //#endregion
7
6
  export { usePercentage };
@@ -1 +1 @@
1
- {"version":3,"file":"usePercentage.d.ts","names":[],"sources":["../../../src/format/usePercentage.ts"],"mappings":";;cAIa,6CAAa,QAAA,wBAAA,SAAA,KAAA;WAAA"}
1
+ {"version":3,"file":"usePercentage.d.ts","names":[],"sources":["../../../src/format/usePercentage.ts"],"mappings":";cAIa,6CAAa,QAAA,wBAAA,SAAA,KAAA"}
@@ -1,7 +1,6 @@
1
- import { LocalesValues } from "../intlayer/dist/types/index.js";
2
1
  //#region src/format/useRelativeTime.d.ts
3
2
  declare const useRelativeTime: () => import("@angular/core").Signal<(from: string | number | Date, to?: string | number | Date, options?: Intl.RelativeTimeFormatOptions & {
4
- locale?: LocalesValues;
3
+ locale?: import("@intlayer/types").LocalesValues;
5
4
  unit?: Intl.RelativeTimeFormatUnit;
6
5
  }) => string>;
7
6
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"useRelativeTime.d.ts","names":[],"sources":["../../../src/format/useRelativeTime.ts"],"mappings":";;cAIa,+CAAe,QAAA,wBAAA,MAAA,uBAAA,MAAA,UAAA,KAAA;WAAA"}
1
+ {"version":3,"file":"useRelativeTime.d.ts","names":[],"sources":["../../../src/format/useRelativeTime.ts"],"mappings":";cAIa,+CAAe,QAAA,wBAAA,MAAA,uBAAA,MAAA,UAAA,KAAA"}
@@ -1,7 +1,6 @@
1
- import { LocalesValues } from "../intlayer/dist/types/index.js";
2
1
  //#region src/format/useUnit.d.ts
3
2
  declare const useUnit: () => import("@angular/core").Signal<(value: string | number, options?: Intl.NumberFormatOptions & {
4
- locale?: LocalesValues;
3
+ locale?: import("@intlayer/types").LocalesValues;
5
4
  }) => string>;
6
5
  //#endregion
7
6
  export { useUnit };
@@ -1 +1 @@
1
- {"version":3,"file":"useUnit.d.ts","names":[],"sources":["../../../src/format/useUnit.ts"],"mappings":";;cAIa,uCAAO,QAAA,wBAAA,UAAA,KAAA;WAAA"}
1
+ {"version":3,"file":"useUnit.d.ts","names":[],"sources":["../../../src/format/useUnit.ts"],"mappings":";cAIa,uCAAO,QAAA,wBAAA,UAAA,KAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "angular-intlayer",
3
- "version": "9.3.3",
3
+ "version": "9.4.0",
4
4
  "private": false,
5
5
  "description": "Easily internationalize i18n your Angular applications with type-safe multilingual content management.",
6
6
  "keywords": [
@@ -119,20 +119,20 @@
119
119
  "@babel/core": "^7.26.9",
120
120
  "@babel/plugin-syntax-import-attributes": "7.28.6",
121
121
  "@babel/preset-env": "7.29.2",
122
- "@intlayer/config": "9.3.3",
123
- "@intlayer/core": "9.3.3",
124
- "@intlayer/dictionaries-entry": "9.3.3",
125
- "@intlayer/editor": "9.3.3",
126
- "@intlayer/engine": "9.3.2",
127
- "@intlayer/types": "9.3.3",
128
- "@intlayer/webpack": "9.3.2",
122
+ "@intlayer/config": "9.4.0",
123
+ "@intlayer/core": "9.4.0",
124
+ "@intlayer/dictionaries-entry": "9.4.0",
125
+ "@intlayer/editor": "9.4.0",
126
+ "@intlayer/engine": "9.4.0",
127
+ "@intlayer/types": "9.4.0",
128
+ "@intlayer/webpack": "9.4.0",
129
129
  "babel-loader": "10.1.1",
130
130
  "defu": "6.1.7"
131
131
  },
132
132
  "devDependencies": {
133
133
  "@angular/common": "19.2.25",
134
134
  "@angular/core": "19.2.25",
135
- "@types/node": "26.2.0",
135
+ "@types/node": "26.3.0",
136
136
  "@types/webpack": "5.28.5",
137
137
  "@utils/ts-config": "1.0.4",
138
138
  "@utils/ts-config-types": "1.0.4",
@@ -155,7 +155,7 @@
155
155
  }
156
156
  },
157
157
  "optionalDependencies": {
158
- "@intlayer/analytics": "9.3.3"
158
+ "@intlayer/analytics": "9.4.0"
159
159
  },
160
160
  "engines": {
161
161
  "node": ">=14.18"
@@ -1,14 +0,0 @@
1
- import { LocalesValues as LocalesValues$1 } from "@intlayer/types/module_augmentation";
2
- import { Dictionary } from "@intlayer/types/dictionary";
3
- import "@intlayer/core/interpreter";
4
- import "@intlayer/types/config";
5
- import { Locale } from "@intlayer/types/allLocales";
6
- import "@intlayer/types/locales";
7
- import "@intlayer/config/built";
8
- import "@intlayer/core/file";
9
- import "@intlayer/core/formatters";
10
- import "@intlayer/core/localization";
11
- import "@intlayer/core/markdown";
12
- import "@intlayer/core/transpiler";
13
- import "@intlayer/core/utils";
14
- export type { Locale, LocalesValues$1 as LocalesValues };