angular-intlayer 8.10.0-canary.0 → 8.10.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/dist/types/client/useDictionaryDynamic.d.ts +1 -2
- package/dist/types/client/useDictionaryDynamic.d.ts.map +1 -1
- package/dist/types/client/useLocaleStorage.d.ts +4 -5
- package/dist/types/client/useLocaleStorage.d.ts.map +1 -1
- package/dist/types/format/useCompact.d.ts +1 -3
- package/dist/types/format/useCompact.d.ts.map +1 -1
- package/dist/types/format/useCurrency.d.ts +1 -3
- package/dist/types/format/useCurrency.d.ts.map +1 -1
- package/dist/types/format/useDate.d.ts +1 -3
- package/dist/types/format/useDate.d.ts.map +1 -1
- package/dist/types/format/useList.d.ts +1 -3
- package/dist/types/format/useList.d.ts.map +1 -1
- package/dist/types/format/useNumber.d.ts +1 -3
- package/dist/types/format/useNumber.d.ts.map +1 -1
- package/dist/types/format/usePercentage.d.ts +1 -3
- package/dist/types/format/usePercentage.d.ts.map +1 -1
- package/dist/types/format/useRelativeTime.d.ts +1 -3
- package/dist/types/format/useRelativeTime.d.ts.map +1 -1
- package/dist/types/format/useUnit.d.ts +1 -3
- package/dist/types/format/useUnit.d.ts.map +1 -1
- package/package.json +9 -9
- package/dist/types/intlayer/dist/types/index.d.ts +0 -4
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { IInterpreterPluginState } from "../plugins.js";
|
|
2
|
-
import { Locale } from "../intlayer/dist/types/index.js";
|
|
3
2
|
import { DictionaryKeys, LocalesValues, StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
|
|
4
3
|
import { Dictionary } from "@intlayer/types/dictionary";
|
|
5
4
|
|
|
@@ -9,7 +8,7 @@ import { Dictionary } from "@intlayer/types/dictionary";
|
|
|
9
8
|
*
|
|
10
9
|
* If the locale is not provided, it will use the locale from the client context
|
|
11
10
|
*/
|
|
12
|
-
declare const useDictionaryDynamic: <T extends Dictionary, K extends DictionaryKeys>(dictionaryPromise: StrictModeLocaleMap<() => Promise<T>>, key: K, locale?: LocalesValues) => import("@angular/core").Signal<import("@intlayer/core/interpreter").DeepTransformContent<T["content"], IInterpreterPluginState, Locale>>;
|
|
11
|
+
declare const useDictionaryDynamic: <T extends Dictionary, K extends DictionaryKeys>(dictionaryPromise: StrictModeLocaleMap<() => Promise<T>>, key: K, locale?: LocalesValues) => import("@angular/core").Signal<import("@intlayer/core/interpreter").DeepTransformContent<T["content"], IInterpreterPluginState, import("@intlayer/types").Locale>>;
|
|
13
12
|
//#endregion
|
|
14
13
|
export { useDictionaryDynamic };
|
|
15
14
|
//# sourceMappingURL=useDictionaryDynamic.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDictionaryDynamic.d.ts","names":[],"sources":["../../../src/client/useDictionaryDynamic.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useDictionaryDynamic.d.ts","names":[],"sources":["../../../src/client/useDictionaryDynamic.ts"],"mappings":";;;;;;;;;AAmBA;cAAa,oBAAA,aACD,UAAA,YACA,cAAA,EAEV,iBAAA,EAAmB,mBAAA,OAA0B,OAAA,CAAQ,CAAA,IACrD,GAAA,EAAK,CAAA,EACL,MAAA,GAAS,aAAA,6BAAa,MAAA,sCAAA,oBAAA,CAAA,CAAA,aAAA,uBAAA,4BAAA,MAAA"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Locale } from "../intlayer/dist/types/index.js";
|
|
2
1
|
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
3
2
|
|
|
4
3
|
//#region src/client/useLocaleStorage.d.ts
|
|
@@ -8,13 +7,13 @@ import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
|
8
7
|
/**
|
|
9
8
|
* Get the locale cookie
|
|
10
9
|
*/
|
|
11
|
-
declare const localeInStorage: Locale;
|
|
10
|
+
declare const localeInStorage: import("@intlayer/types").Locale;
|
|
12
11
|
/**
|
|
13
12
|
* @deprecated Use localeInStorage instead
|
|
14
13
|
*
|
|
15
14
|
* Get the locale cookie
|
|
16
15
|
*/
|
|
17
|
-
declare const localeCookie: Locale;
|
|
16
|
+
declare const localeCookie: import("@intlayer/types").Locale;
|
|
18
17
|
/**
|
|
19
18
|
* Set the locale cookie
|
|
20
19
|
*/
|
|
@@ -29,7 +28,7 @@ declare const setLocaleCookie: (locale: LocalesValues, isCookieEnabled: boolean)
|
|
|
29
28
|
* Hook that provides the locale storage and a function to set it
|
|
30
29
|
*/
|
|
31
30
|
declare const useLocaleStorage: (isCookieEnabled?: boolean) => {
|
|
32
|
-
getLocale: () => Locale;
|
|
31
|
+
getLocale: () => import("@intlayer/types").Locale;
|
|
33
32
|
setLocale: (locale: LocalesValues) => void;
|
|
34
33
|
};
|
|
35
34
|
/**
|
|
@@ -40,7 +39,7 @@ declare const useLocaleStorage: (isCookieEnabled?: boolean) => {
|
|
|
40
39
|
* Hook that provides the locale cookie and a function to set it
|
|
41
40
|
*/
|
|
42
41
|
declare const useLocaleCookie: (isCookieEnabled?: boolean) => {
|
|
43
|
-
localeCookie: Locale;
|
|
42
|
+
localeCookie: import("@intlayer/types").Locale;
|
|
44
43
|
setLocaleCookie: (locale: LocalesValues) => void;
|
|
45
44
|
};
|
|
46
45
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLocaleStorage.d.ts","names":[],"sources":["../../../src/client/useLocaleStorage.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useLocaleStorage.d.ts","names":[],"sources":["../../../src/client/useLocaleStorage.ts"],"mappings":";;;;;AAcA;;;;cAAa,eAAA,4BAAe,MAAmD;AAM/E;;;;AAA2C;AAA3C,cAAa,YAAA,4BAAY,MAAkB;;;;cAK9B,kBAAA,GACX,MAAA,EAAQ,aAAa,EACrB,eAAA;;;;AAAwB;AAY1B;cAAa,eAAA,GAAe,MAAA,EAblB,aAAa,EAAA,eAAA;;;;cAkBV,gBAAA,GAAoB,eAAA;;sBAI7B,aAAA;AAAA;AAJJ;;;;;;;AAAA,cAaa,eAAA,GAAmB,eAAA;;4BAO/B,aAAA;AAAA"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { LocalesValues } from "../intlayer/dist/types/index.js";
|
|
2
|
-
|
|
3
1
|
//#region src/format/useCompact.d.ts
|
|
4
2
|
declare const useCompact: () => import("@angular/core").Signal<(value: string | number, options?: Intl.NumberFormatOptions & {
|
|
5
|
-
locale?: LocalesValues;
|
|
3
|
+
locale?: import("@intlayer/types").LocalesValues;
|
|
6
4
|
}) => string>;
|
|
7
5
|
//#endregion
|
|
8
6
|
export { useCompact };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCompact.d.ts","names":[],"sources":["../../../src/format/useCompact.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useCompact.d.ts","names":[],"sources":["../../../src/format/useCompact.ts"],"mappings":";cAIa,UAAA,gCAAU,MAAA,EAAA,KAAA,mBAAA,OAAA,GAAA,IAAA,CAAA,mBAAA"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { LocalesValues } from "../intlayer/dist/types/index.js";
|
|
2
|
-
|
|
3
1
|
//#region src/format/useCurrency.d.ts
|
|
4
2
|
declare const useCurrency: () => import("@angular/core").Signal<(value: string | number, options?: Intl.NumberFormatOptions & {
|
|
5
|
-
locale?: LocalesValues;
|
|
3
|
+
locale?: import("@intlayer/types").LocalesValues;
|
|
6
4
|
}) => string>;
|
|
7
5
|
//#endregion
|
|
8
6
|
export { useCurrency };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCurrency.d.ts","names":[],"sources":["../../../src/format/useCurrency.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useCurrency.d.ts","names":[],"sources":["../../../src/format/useCurrency.ts"],"mappings":";cAIa,WAAA,gCAAW,MAAA,EAAA,KAAA,mBAAA,OAAA,GAAA,IAAA,CAAA,mBAAA"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { LocalesValues } from "../intlayer/dist/types/index.js";
|
|
2
|
-
|
|
3
1
|
//#region src/format/useDate.d.ts
|
|
4
2
|
/**
|
|
5
3
|
* Angular client hook that provides a localized date/time formatter.
|
|
6
4
|
*/
|
|
7
5
|
declare const useDate: () => import("@angular/core").Signal<(date: string | number | Date, options?: (Intl.DateTimeFormatOptions & {
|
|
8
|
-
locale?: LocalesValues;
|
|
6
|
+
locale?: import("@intlayer/types").LocalesValues;
|
|
9
7
|
}) | import("@intlayer/core/formatters").DateTimePreset) => string>;
|
|
10
8
|
//#endregion
|
|
11
9
|
export { useDate };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDate.d.ts","names":[],"sources":["../../../src/format/useDate.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useDate.d.ts","names":[],"sources":["../../../src/format/useDate.ts"],"mappings":";;AAOA;;cAAa,OAAA,gCAAO,MAAA,EAAA,IAAA,oBAAA,IAAA,EAAA,OAAA,IAAA,IAAA,CAAA,qBAAA"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { LocalesValues } from "../intlayer/dist/types/index.js";
|
|
2
|
-
|
|
3
1
|
//#region src/format/useList.d.ts
|
|
4
2
|
declare const useList: () => import("@angular/core").Signal<(values: (string | number)[], options?: {
|
|
5
3
|
localeMatcher?: "lookup" | "best fit";
|
|
6
4
|
type?: "conjunction" | "disjunction" | "unit";
|
|
7
5
|
style?: "long" | "short" | "narrow";
|
|
8
6
|
} & {
|
|
9
|
-
locale?: LocalesValues;
|
|
7
|
+
locale?: import("@intlayer/types").LocalesValues;
|
|
10
8
|
}) => string>;
|
|
11
9
|
//#endregion
|
|
12
10
|
export { useList };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useList.d.ts","names":[],"sources":["../../../src/format/useList.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useList.d.ts","names":[],"sources":["../../../src/format/useList.ts"],"mappings":";cAIa,OAAA,gCAAO,MAAA,EAAA,MAAA,uBAAA,OAAA"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { LocalesValues } from "../intlayer/dist/types/index.js";
|
|
2
|
-
|
|
3
1
|
//#region src/format/useNumber.d.ts
|
|
4
2
|
/**
|
|
5
3
|
* Angular client hook that provides a localized number formatter.
|
|
6
4
|
*/
|
|
7
5
|
declare const useNumber: () => import("@angular/core").Signal<(value: string | number, args_1?: Intl.NumberFormatOptions & {
|
|
8
|
-
locale?: LocalesValues;
|
|
6
|
+
locale?: import("@intlayer/types").LocalesValues;
|
|
9
7
|
}) => string>;
|
|
10
8
|
//#endregion
|
|
11
9
|
export { useNumber };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useNumber.d.ts","names":[],"sources":["../../../src/format/useNumber.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useNumber.d.ts","names":[],"sources":["../../../src/format/useNumber.ts"],"mappings":";;AAOA;;cAAa,SAAA,gCAAS,MAAA,EAAA,KAAA,mBAAA,MAAA,GAAA,IAAA,CAAA,mBAAA"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { LocalesValues } from "../intlayer/dist/types/index.js";
|
|
2
|
-
|
|
3
1
|
//#region src/format/usePercentage.d.ts
|
|
4
2
|
declare const usePercentage: () => import("@angular/core").Signal<(value: string | number, args_1?: Intl.NumberFormatOptions & {
|
|
5
|
-
locale?: LocalesValues;
|
|
3
|
+
locale?: import("@intlayer/types").LocalesValues;
|
|
6
4
|
}) => string>;
|
|
7
5
|
//#endregion
|
|
8
6
|
export { usePercentage };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePercentage.d.ts","names":[],"sources":["../../../src/format/usePercentage.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"usePercentage.d.ts","names":[],"sources":["../../../src/format/usePercentage.ts"],"mappings":";cAIa,aAAA,gCAAa,MAAA,EAAA,KAAA,mBAAA,MAAA,GAAA,IAAA,CAAA,mBAAA"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { LocalesValues } from "../intlayer/dist/types/index.js";
|
|
2
|
-
|
|
3
1
|
//#region src/format/useRelativeTime.d.ts
|
|
4
2
|
declare const useRelativeTime: () => import("@angular/core").Signal<(from: string | number | Date, to?: string | number | Date, options?: Intl.RelativeTimeFormatOptions & {
|
|
5
|
-
locale?: LocalesValues;
|
|
3
|
+
locale?: import("@intlayer/types").LocalesValues;
|
|
6
4
|
unit?: Intl.RelativeTimeFormatUnit;
|
|
7
5
|
}) => string>;
|
|
8
6
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRelativeTime.d.ts","names":[],"sources":["../../../src/format/useRelativeTime.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useRelativeTime.d.ts","names":[],"sources":["../../../src/format/useRelativeTime.ts"],"mappings":";cAIa,eAAA,gCAAe,MAAA,EAAA,IAAA,oBAAA,IAAA,EAAA,EAAA,qBAAA,IAAA,EAAA,OAAA,GAAA,IAAA,CAAA,yBAAA"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { LocalesValues } from "../intlayer/dist/types/index.js";
|
|
2
|
-
|
|
3
1
|
//#region src/format/useUnit.d.ts
|
|
4
2
|
declare const useUnit: () => import("@angular/core").Signal<(value: string | number, options?: Intl.NumberFormatOptions & {
|
|
5
|
-
locale?: LocalesValues;
|
|
3
|
+
locale?: import("@intlayer/types").LocalesValues;
|
|
6
4
|
}) => string>;
|
|
7
5
|
//#endregion
|
|
8
6
|
export { useUnit };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUnit.d.ts","names":[],"sources":["../../../src/format/useUnit.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useUnit.d.ts","names":[],"sources":["../../../src/format/useUnit.ts"],"mappings":";cAIa,OAAA,gCAAO,MAAA,EAAA,KAAA,mBAAA,OAAA,GAAA,IAAA,CAAA,mBAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "angular-intlayer",
|
|
3
|
-
"version": "8.10.0
|
|
3
|
+
"version": "8.10.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Easily internationalize i18n your Angular applications with type-safe multilingual content management.",
|
|
6
6
|
"keywords": [
|
|
@@ -110,18 +110,18 @@
|
|
|
110
110
|
"dependencies": {
|
|
111
111
|
"@babel/plugin-syntax-import-attributes": "^7.28.6",
|
|
112
112
|
"@babel/preset-env": "^7.29.2",
|
|
113
|
-
"@intlayer/chokidar": "8.10.0
|
|
114
|
-
"@intlayer/config": "8.10.0
|
|
115
|
-
"@intlayer/core": "8.10.0
|
|
116
|
-
"@intlayer/dictionaries-entry": "8.10.0
|
|
117
|
-
"@intlayer/editor": "8.10.0
|
|
118
|
-
"@intlayer/types": "8.10.0
|
|
119
|
-
"@intlayer/webpack": "8.10.0
|
|
113
|
+
"@intlayer/chokidar": "8.10.0",
|
|
114
|
+
"@intlayer/config": "8.10.0",
|
|
115
|
+
"@intlayer/core": "8.10.0",
|
|
116
|
+
"@intlayer/dictionaries-entry": "8.10.0",
|
|
117
|
+
"@intlayer/editor": "8.10.0",
|
|
118
|
+
"@intlayer/types": "8.10.0",
|
|
119
|
+
"@intlayer/webpack": "8.10.0",
|
|
120
120
|
"babel-loader": "^10.1.1",
|
|
121
121
|
"defu": "6.1.7"
|
|
122
122
|
},
|
|
123
123
|
"devDependencies": {
|
|
124
|
-
"@types/node": "25.9.
|
|
124
|
+
"@types/node": "25.9.1",
|
|
125
125
|
"@types/webpack": "5.28.5",
|
|
126
126
|
"@utils/ts-config": "1.0.4",
|
|
127
127
|
"@utils/ts-config-types": "1.0.4",
|