angular-intlayer 9.0.0-canary.6 → 9.0.0-canary.7
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/cjs/esbuild/plugin.cjs +2 -2
- package/dist/cjs/webpack/mergeConfig.cjs +1 -1
- package/dist/esm/esbuild/plugin.mjs +2 -2
- package/dist/esm/webpack/mergeConfig.mjs +1 -1
- package/dist/types/client/useLocaleStorage.d.ts +5 -5
- package/dist/types/client/useLocaleStorage.d.ts.map +1 -1
- package/dist/types/format/useCompact.d.ts +2 -2
- package/dist/types/format/useCompact.d.ts.map +1 -1
- package/dist/types/format/useCurrency.d.ts +2 -2
- package/dist/types/format/useCurrency.d.ts.map +1 -1
- package/dist/types/format/useDate.d.ts +2 -2
- package/dist/types/format/useDate.d.ts.map +1 -1
- package/dist/types/format/useList.d.ts +2 -2
- package/dist/types/format/useList.d.ts.map +1 -1
- package/dist/types/format/useNumber.d.ts +2 -2
- package/dist/types/format/useNumber.d.ts.map +1 -1
- package/dist/types/format/usePercentage.d.ts +2 -2
- package/dist/types/format/usePercentage.d.ts.map +1 -1
- package/dist/types/format/useRelativeTime.d.ts +2 -2
- package/dist/types/format/useRelativeTime.d.ts.map +1 -1
- package/dist/types/format/useUnit.d.ts +2 -2
- package/dist/types/format/useUnit.d.ts.map +1 -1
- package/dist/types/intlayer/dist/types/index.d.ts +4 -0
- package/package.json +8 -8
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
|
|
3
3
|
let node_path = require("node:path");
|
|
4
|
+
let _intlayer_config_node = require("@intlayer/config/node");
|
|
5
|
+
let _intlayer_config_utils = require("@intlayer/config/utils");
|
|
4
6
|
let _intlayer_chokidar_build = require("@intlayer/chokidar/build");
|
|
5
7
|
let _intlayer_chokidar_cli = require("@intlayer/chokidar/cli");
|
|
6
8
|
let _intlayer_chokidar_watcher = require("@intlayer/chokidar/watcher");
|
|
7
9
|
let _intlayer_config_envVars = require("@intlayer/config/envVars");
|
|
8
10
|
let _intlayer_config_logger = require("@intlayer/config/logger");
|
|
9
|
-
let _intlayer_config_node = require("@intlayer/config/node");
|
|
10
|
-
let _intlayer_config_utils = require("@intlayer/config/utils");
|
|
11
11
|
let _intlayer_dictionaries_entry = require("@intlayer/dictionaries-entry");
|
|
12
12
|
|
|
13
13
|
//#region src/esbuild/plugin.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
|
|
3
|
+
let node_module = require("node:module");
|
|
3
4
|
let node_path = require("node:path");
|
|
4
5
|
let _intlayer_config_node = require("@intlayer/config/node");
|
|
5
6
|
let _intlayer_config_utils = require("@intlayer/config/utils");
|
|
6
|
-
let node_module = require("node:module");
|
|
7
7
|
let _intlayer_webpack = require("@intlayer/webpack");
|
|
8
8
|
let defu = require("defu");
|
|
9
9
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { join } from "node:path";
|
|
2
|
+
import { getConfiguration } from "@intlayer/config/node";
|
|
3
|
+
import { getAlias, getUnusedNodeTypesAsync } from "@intlayer/config/utils";
|
|
2
4
|
import { prepareIntlayer } from "@intlayer/chokidar/build";
|
|
3
5
|
import { logConfigDetails } from "@intlayer/chokidar/cli";
|
|
4
6
|
import { watch } from "@intlayer/chokidar/watcher";
|
|
5
7
|
import { formatNodeTypeToEnvVar, getConfigEnvVars } from "@intlayer/config/envVars";
|
|
6
8
|
import { getAppLogger } from "@intlayer/config/logger";
|
|
7
|
-
import { getConfiguration } from "@intlayer/config/node";
|
|
8
|
-
import { getAlias, getUnusedNodeTypesAsync } from "@intlayer/config/utils";
|
|
9
9
|
import { getDictionaries } from "@intlayer/dictionaries-entry";
|
|
10
10
|
|
|
11
11
|
//#region src/esbuild/plugin.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __require } from "../_virtual/_rolldown/runtime.mjs";
|
|
2
|
+
import { createRequire } from "node:module";
|
|
2
3
|
import { resolve } from "node:path";
|
|
3
4
|
import { getConfiguration } from "@intlayer/config/node";
|
|
4
5
|
import { getAlias } from "@intlayer/config/utils";
|
|
5
|
-
import { createRequire } from "node:module";
|
|
6
6
|
import { IntlayerPlugin } from "@intlayer/webpack";
|
|
7
7
|
import { defu } from "defu";
|
|
8
8
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { Locale } from "../intlayer/dist/types/index.js";
|
|
1
2
|
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
2
|
-
import * as _$_intlayer_types0 from "@intlayer/types";
|
|
3
3
|
|
|
4
4
|
//#region src/client/useLocaleStorage.d.ts
|
|
5
5
|
/**
|
|
@@ -8,13 +8,13 @@ import * as _$_intlayer_types0 from "@intlayer/types";
|
|
|
8
8
|
/**
|
|
9
9
|
* Get the locale cookie
|
|
10
10
|
*/
|
|
11
|
-
declare const localeInStorage:
|
|
11
|
+
declare const localeInStorage: Locale;
|
|
12
12
|
/**
|
|
13
13
|
* @deprecated Use localeInStorage instead
|
|
14
14
|
*
|
|
15
15
|
* Get the locale cookie
|
|
16
16
|
*/
|
|
17
|
-
declare const localeCookie:
|
|
17
|
+
declare const localeCookie: Locale;
|
|
18
18
|
/**
|
|
19
19
|
* Set the locale cookie
|
|
20
20
|
*/
|
|
@@ -29,7 +29,7 @@ declare const setLocaleCookie: (locale: LocalesValues, isCookieEnabled: boolean)
|
|
|
29
29
|
* Hook that provides the locale storage and a function to set it
|
|
30
30
|
*/
|
|
31
31
|
declare const useLocaleStorage: (isCookieEnabled?: boolean) => {
|
|
32
|
-
getLocale: () =>
|
|
32
|
+
getLocale: () => Locale;
|
|
33
33
|
setLocale: (locale: LocalesValues) => void;
|
|
34
34
|
};
|
|
35
35
|
/**
|
|
@@ -40,7 +40,7 @@ declare const useLocaleStorage: (isCookieEnabled?: boolean) => {
|
|
|
40
40
|
* Hook that provides the locale cookie and a function to set it
|
|
41
41
|
*/
|
|
42
42
|
declare const useLocaleCookie: (isCookieEnabled?: boolean) => {
|
|
43
|
-
localeCookie:
|
|
43
|
+
localeCookie: Locale;
|
|
44
44
|
setLocaleCookie: (locale: LocalesValues) => void;
|
|
45
45
|
};
|
|
46
46
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLocaleStorage.d.ts","names":[],"sources":["../../../src/client/useLocaleStorage.ts"],"mappings":";;;;;;;AAcA;;;AAAA,cAAa,eAAA,EAAkE,
|
|
1
|
+
{"version":3,"file":"useLocaleStorage.d.ts","names":[],"sources":["../../../src/client/useLocaleStorage.ts"],"mappings":";;;;;;;AAcA;;;AAAA,cAAa,eAAA,EAAkE,MAAA;;AAM/E;;;;cAAa,YAAA,EAA8B,MAAA;AAK3C;;;AAAA,cAAa,kBAAA,GACX,MAAA,EAAQ,aAAA,EACR,eAAA;;;;;;cAYW,eAAA,GAAe,MAAA,EAblB,aAAA,EAAa,eAAA;;;;cAkBV,gBAAA,GAAoB,eAAA;mBAI7B,MAAA;sBAAA,aAAA;AAAA;;AAJJ;;;;;;cAaa,eAAA,GAAmB,eAAA;gBAO/B,MAAA;4BAAA,aAAA;AAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { LocalesValues } from "../intlayer/dist/types/index.js";
|
|
1
2
|
import * as _$_angular_core0 from "@angular/core";
|
|
2
|
-
import * as _$_intlayer_types0 from "@intlayer/types";
|
|
3
3
|
|
|
4
4
|
//#region src/format/useCompact.d.ts
|
|
5
5
|
declare const useCompact: () => _$_angular_core0.Signal<(value: string | number, options?: Intl.NumberFormatOptions & {
|
|
6
|
-
locale?:
|
|
6
|
+
locale?: LocalesValues;
|
|
7
7
|
}) => string>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { useCompact };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCompact.d.ts","names":[],"sources":["../../../src/format/useCompact.ts"],"mappings":";;;;cAIa,UAAA,yBAAU,MAAA,EAAA,KAAA,mBAAA,OAAA,GAAA,IAAA,CAAA,mBAAA;WAAA,
|
|
1
|
+
{"version":3,"file":"useCompact.d.ts","names":[],"sources":["../../../src/format/useCompact.ts"],"mappings":";;;;cAIa,UAAA,yBAAU,MAAA,EAAA,KAAA,mBAAA,OAAA,GAAA,IAAA,CAAA,mBAAA;WAAA,aAAA;AAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { LocalesValues } from "../intlayer/dist/types/index.js";
|
|
1
2
|
import * as _$_angular_core0 from "@angular/core";
|
|
2
|
-
import * as _$_intlayer_types0 from "@intlayer/types";
|
|
3
3
|
|
|
4
4
|
//#region src/format/useCurrency.d.ts
|
|
5
5
|
declare const useCurrency: () => _$_angular_core0.Signal<(value: string | number, options?: Intl.NumberFormatOptions & {
|
|
6
|
-
locale?:
|
|
6
|
+
locale?: LocalesValues;
|
|
7
7
|
}) => string>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { useCurrency };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCurrency.d.ts","names":[],"sources":["../../../src/format/useCurrency.ts"],"mappings":";;;;cAIa,WAAA,yBAAW,MAAA,EAAA,KAAA,mBAAA,OAAA,GAAA,IAAA,CAAA,mBAAA;WAAA,
|
|
1
|
+
{"version":3,"file":"useCurrency.d.ts","names":[],"sources":["../../../src/format/useCurrency.ts"],"mappings":";;;;cAIa,WAAA,yBAAW,MAAA,EAAA,KAAA,mBAAA,OAAA,GAAA,IAAA,CAAA,mBAAA;WAAA,aAAA;AAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { LocalesValues } from "../intlayer/dist/types/index.js";
|
|
1
2
|
import * as _$_angular_core0 from "@angular/core";
|
|
2
|
-
import * as _$_intlayer_types0 from "@intlayer/types";
|
|
3
3
|
import * as _$_intlayer_core_formatters0 from "@intlayer/core/formatters";
|
|
4
4
|
|
|
5
5
|
//#region src/format/useDate.d.ts
|
|
@@ -7,7 +7,7 @@ import * as _$_intlayer_core_formatters0 from "@intlayer/core/formatters";
|
|
|
7
7
|
* Angular client hook that provides a localized date/time formatter.
|
|
8
8
|
*/
|
|
9
9
|
declare const useDate: () => _$_angular_core0.Signal<(date: string | number | Date, options?: (Intl.DateTimeFormatOptions & {
|
|
10
|
-
locale?:
|
|
10
|
+
locale?: LocalesValues;
|
|
11
11
|
}) | _$_intlayer_core_formatters0.DateTimePreset) => string>;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { useDate };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDate.d.ts","names":[],"sources":["../../../src/format/useDate.ts"],"mappings":";;;;;;;;cAOa,OAAA,yBAAO,MAAA,EAAA,IAAA,oBAAA,IAAA,EAAA,OAAA,IAAA,IAAA,CAAA,qBAAA;WAAA,
|
|
1
|
+
{"version":3,"file":"useDate.d.ts","names":[],"sources":["../../../src/format/useDate.ts"],"mappings":";;;;;;;;cAOa,OAAA,yBAAO,MAAA,EAAA,IAAA,oBAAA,IAAA,EAAA,OAAA,IAAA,IAAA,CAAA,qBAAA;WAAA,aAAA;AAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { LocalesValues } from "../intlayer/dist/types/index.js";
|
|
1
2
|
import * as _$_angular_core0 from "@angular/core";
|
|
2
|
-
import * as _$_intlayer_types0 from "@intlayer/types";
|
|
3
3
|
|
|
4
4
|
//#region src/format/useList.d.ts
|
|
5
5
|
declare const useList: () => _$_angular_core0.Signal<(values: (string | number)[], options?: {
|
|
@@ -7,7 +7,7 @@ declare const useList: () => _$_angular_core0.Signal<(values: (string | number)[
|
|
|
7
7
|
type?: "conjunction" | "disjunction" | "unit";
|
|
8
8
|
style?: "long" | "short" | "narrow";
|
|
9
9
|
} & {
|
|
10
|
-
locale?:
|
|
10
|
+
locale?: LocalesValues;
|
|
11
11
|
}) => string>;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { useList };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useList.d.ts","names":[],"sources":["../../../src/format/useList.ts"],"mappings":";;;;cAIa,OAAA,QAWZ,gBAAA,CAXmB,MAAA,EAAA,MAAA,uBAAA,OAAA;;;;;WAWnB,
|
|
1
|
+
{"version":3,"file":"useList.d.ts","names":[],"sources":["../../../src/format/useList.ts"],"mappings":";;;;cAIa,OAAA,QAWZ,gBAAA,CAXmB,MAAA,EAAA,MAAA,uBAAA,OAAA;;;;;WAWnB,aAAA;AAAA"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import { LocalesValues } from "../intlayer/dist/types/index.js";
|
|
1
2
|
import * as _$_angular_core0 from "@angular/core";
|
|
2
|
-
import * as _$_intlayer_types0 from "@intlayer/types";
|
|
3
3
|
|
|
4
4
|
//#region src/format/useNumber.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Angular client hook that provides a localized number formatter.
|
|
7
7
|
*/
|
|
8
8
|
declare const useNumber: () => _$_angular_core0.Signal<(value: string | number, args_1?: Intl.NumberFormatOptions & {
|
|
9
|
-
locale?:
|
|
9
|
+
locale?: LocalesValues;
|
|
10
10
|
}) => string>;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { useNumber };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useNumber.d.ts","names":[],"sources":["../../../src/format/useNumber.ts"],"mappings":";;;;;;;cAOa,SAAA,yBAAS,MAAA,EAAA,KAAA,mBAAA,MAAA,GAAA,IAAA,CAAA,mBAAA;WAAA,
|
|
1
|
+
{"version":3,"file":"useNumber.d.ts","names":[],"sources":["../../../src/format/useNumber.ts"],"mappings":";;;;;;;cAOa,SAAA,yBAAS,MAAA,EAAA,KAAA,mBAAA,MAAA,GAAA,IAAA,CAAA,mBAAA;WAAA,aAAA;AAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { LocalesValues } from "../intlayer/dist/types/index.js";
|
|
1
2
|
import * as _$_angular_core0 from "@angular/core";
|
|
2
|
-
import * as _$_intlayer_types0 from "@intlayer/types";
|
|
3
3
|
|
|
4
4
|
//#region src/format/usePercentage.d.ts
|
|
5
5
|
declare const usePercentage: () => _$_angular_core0.Signal<(value: string | number, args_1?: Intl.NumberFormatOptions & {
|
|
6
|
-
locale?:
|
|
6
|
+
locale?: LocalesValues;
|
|
7
7
|
}) => string>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { usePercentage };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePercentage.d.ts","names":[],"sources":["../../../src/format/usePercentage.ts"],"mappings":";;;;cAIa,aAAA,yBAAa,MAAA,EAAA,KAAA,mBAAA,MAAA,GAAA,IAAA,CAAA,mBAAA;WAAA,
|
|
1
|
+
{"version":3,"file":"usePercentage.d.ts","names":[],"sources":["../../../src/format/usePercentage.ts"],"mappings":";;;;cAIa,aAAA,yBAAa,MAAA,EAAA,KAAA,mBAAA,MAAA,GAAA,IAAA,CAAA,mBAAA;WAAA,aAAA;AAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { LocalesValues } from "../intlayer/dist/types/index.js";
|
|
1
2
|
import * as _$_angular_core0 from "@angular/core";
|
|
2
|
-
import * as _$_intlayer_types0 from "@intlayer/types";
|
|
3
3
|
|
|
4
4
|
//#region src/format/useRelativeTime.d.ts
|
|
5
5
|
declare const useRelativeTime: () => _$_angular_core0.Signal<(from: string | number | Date, to?: string | number | Date, options?: Intl.RelativeTimeFormatOptions & {
|
|
6
|
-
locale?:
|
|
6
|
+
locale?: LocalesValues;
|
|
7
7
|
unit?: Intl.RelativeTimeFormatUnit;
|
|
8
8
|
}) => string>;
|
|
9
9
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRelativeTime.d.ts","names":[],"sources":["../../../src/format/useRelativeTime.ts"],"mappings":";;;;cAIa,eAAA,yBAAe,MAAA,EAAA,IAAA,oBAAA,IAAA,EAAA,EAAA,qBAAA,IAAA,EAAA,OAAA,GAAA,IAAA,CAAA,yBAAA;WAAA,
|
|
1
|
+
{"version":3,"file":"useRelativeTime.d.ts","names":[],"sources":["../../../src/format/useRelativeTime.ts"],"mappings":";;;;cAIa,eAAA,yBAAe,MAAA,EAAA,IAAA,oBAAA,IAAA,EAAA,EAAA,qBAAA,IAAA,EAAA,OAAA,GAAA,IAAA,CAAA,yBAAA;WAAA,aAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { LocalesValues } from "../intlayer/dist/types/index.js";
|
|
1
2
|
import * as _$_angular_core0 from "@angular/core";
|
|
2
|
-
import * as _$_intlayer_types0 from "@intlayer/types";
|
|
3
3
|
|
|
4
4
|
//#region src/format/useUnit.d.ts
|
|
5
5
|
declare const useUnit: () => _$_angular_core0.Signal<(value: string | number, options?: Intl.NumberFormatOptions & {
|
|
6
|
-
locale?:
|
|
6
|
+
locale?: LocalesValues;
|
|
7
7
|
}) => string>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { useUnit };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUnit.d.ts","names":[],"sources":["../../../src/format/useUnit.ts"],"mappings":";;;;cAIa,OAAA,yBAAO,MAAA,EAAA,KAAA,mBAAA,OAAA,GAAA,IAAA,CAAA,mBAAA;WAAA,
|
|
1
|
+
{"version":3,"file":"useUnit.d.ts","names":[],"sources":["../../../src/format/useUnit.ts"],"mappings":";;;;cAIa,OAAA,yBAAO,MAAA,EAAA,KAAA,mBAAA,OAAA,GAAA,IAAA,CAAA,mBAAA;WAAA,aAAA;AAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "angular-intlayer",
|
|
3
|
-
"version": "9.0.0-canary.
|
|
3
|
+
"version": "9.0.0-canary.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Easily internationalize i18n your Angular applications with type-safe multilingual content management.",
|
|
6
6
|
"keywords": [
|
|
@@ -119,13 +119,13 @@
|
|
|
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/chokidar": "9.0.0-canary.
|
|
123
|
-
"@intlayer/config": "9.0.0-canary.
|
|
124
|
-
"@intlayer/core": "9.0.0-canary.
|
|
125
|
-
"@intlayer/dictionaries-entry": "9.0.0-canary.
|
|
126
|
-
"@intlayer/editor": "9.0.0-canary.
|
|
127
|
-
"@intlayer/types": "9.0.0-canary.
|
|
128
|
-
"@intlayer/webpack": "9.0.0-canary.
|
|
122
|
+
"@intlayer/chokidar": "9.0.0-canary.7",
|
|
123
|
+
"@intlayer/config": "9.0.0-canary.7",
|
|
124
|
+
"@intlayer/core": "9.0.0-canary.7",
|
|
125
|
+
"@intlayer/dictionaries-entry": "9.0.0-canary.7",
|
|
126
|
+
"@intlayer/editor": "9.0.0-canary.7",
|
|
127
|
+
"@intlayer/types": "9.0.0-canary.7",
|
|
128
|
+
"@intlayer/webpack": "9.0.0-canary.7",
|
|
129
129
|
"babel-loader": "10.1.1",
|
|
130
130
|
"defu": "6.1.7"
|
|
131
131
|
},
|