intlayer 5.7.8 → 5.8.0-canary.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
@@ -131,8 +131,8 @@ const clientComponentContent = {
131
131
  content: {
132
132
  myTranslatedContent: t({
133
133
  en: "Hello World",
134
- fr: "Bonjour le monde",
135
134
  es: "Hola Mundo",
135
+ fr: "Bonjour le monde",
136
136
  }),
137
137
  numberOfCar: enu({
138
138
  "<-1": "Less than minus one car",
@@ -29,8 +29,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
29
29
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
30
  var index_exports = {};
31
31
  __export(index_exports, {
32
+ Intl: () => import_core.Intl,
33
+ compact: () => import_core.compact,
32
34
  cond: () => import_core.cond,
33
35
  configuration: () => import_built.default,
36
+ currency: () => import_core.currency,
37
+ date: () => import_core.date,
34
38
  enu: () => import_core.enu,
35
39
  file: () => import_file.file,
36
40
  gender: () => import_core.gender,
@@ -58,7 +62,11 @@ __export(index_exports, {
58
62
  localeRecord: () => import_core.localeRecord,
59
63
  md: () => import_core.md,
60
64
  nest: () => import_core.nest,
61
- t: () => import_core.t
65
+ number: () => import_core.number,
66
+ percentage: () => import_core.percentage,
67
+ relativeTime: () => import_core.relativeTime,
68
+ t: () => import_core.t,
69
+ units: () => import_core.units
62
70
  });
63
71
  module.exports = __toCommonJS(index_exports);
64
72
  __reExport(index_exports, require("@intlayer/config/client"), module.exports);
@@ -68,8 +76,12 @@ var import_file = require("@intlayer/core/file");
68
76
  const getConfiguration = () => import_built.default;
69
77
  // Annotate the CommonJS export names for ESM import in node:
70
78
  0 && (module.exports = {
79
+ Intl,
80
+ compact,
71
81
  cond,
72
82
  configuration,
83
+ currency,
84
+ date,
73
85
  enu,
74
86
  file,
75
87
  gender,
@@ -97,7 +109,11 @@ const getConfiguration = () => import_built.default;
97
109
  localeRecord,
98
110
  md,
99
111
  nest,
112
+ number,
113
+ percentage,
114
+ relativeTime,
100
115
  t,
116
+ units,
101
117
  ...require("@intlayer/config/client")
102
118
  });
103
119
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from '@intlayer/config/client';\nimport { type CustomIntlayerConfig as IntlayerConfig } from '@intlayer/config/client';\nimport type { Dictionary as DictionaryCore } from '@intlayer/core';\n\ntype Dictionary<T = undefined> = DictionaryCore<T, true>;\n/**\n * @deprecated Use `Dictionary<T>` instead.\n */\ntype DeclarationContent<T = undefined> = Dictionary<T>;\n\nexport type { DeclarationContent, Dictionary };\n\n/**\n * Rexport using named import because πof Tsup bug in CJS\n */\nimport configuration from '@intlayer/config/built';\n/**\n * @deprecated Use `import { configuration } from 'intlayer'` instead.\n */\nconst getConfiguration = () => configuration;\nexport { configuration, getConfiguration, IntlayerConfig };\n\nexport {\n cond,\n enu,\n gender,\n getDictionary,\n getEnumeration,\n /**\n * @deprecated Use `getEnumeration` instead.\n */\n getEnumeration as getEnumerationContent,\n getHTMLTextDir,\n getIntlayer,\n getIntlayerAsync,\n getLocaleFromPath,\n getLocaleLang,\n getLocaleName,\n getLocalizedUrl,\n getMarkdownMetadata,\n getMultilingualUrls,\n getNesting,\n getPathWithoutLocale,\n getTranslation,\n /**\n * @deprecated Use `getTranslation` instead.\n */\n getTranslation as getTranslationContent,\n insert,\n localeFlatMap,\n localeList,\n localeMap,\n localeRecord,\n md,\n nest,\n t,\n type ContentNode,\n type LanguageContent,\n} from '@intlayer/core';\nexport { file } from '@intlayer/core/file'; // Include specific export for browser because of node js function that can't be used in browser\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA,oCAAAA;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAAc,oCAAd;AAeA,mBAA0B;AAO1B,kBAoCO;AACP,kBAAqB;AAxCrB,MAAM,mBAAmB,MAAM,aAAAA;","names":["configuration"]}
1
+ {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from '@intlayer/config/client';\nimport { type CustomIntlayerConfig as IntlayerConfig } from '@intlayer/config/client';\nimport type { Dictionary as DictionaryCore } from '@intlayer/core';\n\ntype Dictionary<T = undefined> = DictionaryCore<T, true>;\n/**\n * @deprecated Use `Dictionary<T>` instead.\n */\ntype DeclarationContent<T = undefined> = Dictionary<T>;\n\nexport type { DeclarationContent, Dictionary };\n\n/**\n * Rexport using named import because πof Tsup bug in CJS\n */\nimport configuration from '@intlayer/config/built';\n/**\n * @deprecated Use `import { configuration } from 'intlayer'` instead.\n */\nconst getConfiguration = () => configuration;\nexport { configuration, getConfiguration, IntlayerConfig };\n\nexport {\n compact,\n cond,\n currency,\n date,\n enu,\n gender,\n getDictionary,\n getEnumeration,\n /**\n * @deprecated Use `getEnumeration` instead.\n */\n getEnumeration as getEnumerationContent,\n getHTMLTextDir,\n getIntlayer,\n getIntlayerAsync,\n getLocaleFromPath,\n getLocaleLang,\n getLocaleName,\n getLocalizedUrl,\n getMarkdownMetadata,\n getMultilingualUrls,\n getNesting,\n getPathWithoutLocale,\n getTranslation,\n /**\n * @deprecated Use `getTranslation` instead.\n */\n getTranslation as getTranslationContent,\n insert,\n Intl,\n localeFlatMap,\n localeList,\n localeMap,\n localeRecord,\n md,\n nest,\n number,\n percentage,\n relativeTime,\n t,\n units,\n type ContentNode,\n type LanguageContent,\n} from '@intlayer/core';\nexport { file } from '@intlayer/core/file'; // Include specific export for browser because of node js function that can't be used in browser\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oCAAAA;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAAc,oCAAd;AAeA,mBAA0B;AAO1B,kBA4CO;AACP,kBAAqB;AAhDrB,MAAM,mBAAmB,MAAM,aAAAA;","names":["configuration"]}
@@ -2,7 +2,10 @@ export * from "@intlayer/config/client";
2
2
  import configuration from "@intlayer/config/built";
3
3
  const getConfiguration = () => configuration;
4
4
  import {
5
+ compact,
5
6
  cond,
7
+ currency,
8
+ date,
6
9
  enu,
7
10
  gender,
8
11
  getDictionary,
@@ -22,18 +25,27 @@ import {
22
25
  getTranslation,
23
26
  getTranslation as getTranslation2,
24
27
  insert,
28
+ Intl,
25
29
  localeFlatMap,
26
30
  localeList,
27
31
  localeMap,
28
32
  localeRecord,
29
33
  md,
30
34
  nest,
31
- t
35
+ number,
36
+ percentage,
37
+ relativeTime,
38
+ t,
39
+ units
32
40
  } from "@intlayer/core";
33
41
  import { file } from "@intlayer/core/file";
34
42
  export {
43
+ Intl,
44
+ compact,
35
45
  cond,
36
46
  configuration,
47
+ currency,
48
+ date,
37
49
  enu,
38
50
  file,
39
51
  gender,
@@ -61,6 +73,10 @@ export {
61
73
  localeRecord,
62
74
  md,
63
75
  nest,
64
- t
76
+ number,
77
+ percentage,
78
+ relativeTime,
79
+ t,
80
+ units
65
81
  };
66
82
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from '@intlayer/config/client';\nimport { type CustomIntlayerConfig as IntlayerConfig } from '@intlayer/config/client';\nimport type { Dictionary as DictionaryCore } from '@intlayer/core';\n\ntype Dictionary<T = undefined> = DictionaryCore<T, true>;\n/**\n * @deprecated Use `Dictionary<T>` instead.\n */\ntype DeclarationContent<T = undefined> = Dictionary<T>;\n\nexport type { DeclarationContent, Dictionary };\n\n/**\n * Rexport using named import because πof Tsup bug in CJS\n */\nimport configuration from '@intlayer/config/built';\n/**\n * @deprecated Use `import { configuration } from 'intlayer'` instead.\n */\nconst getConfiguration = () => configuration;\nexport { configuration, getConfiguration, IntlayerConfig };\n\nexport {\n cond,\n enu,\n gender,\n getDictionary,\n getEnumeration,\n /**\n * @deprecated Use `getEnumeration` instead.\n */\n getEnumeration as getEnumerationContent,\n getHTMLTextDir,\n getIntlayer,\n getIntlayerAsync,\n getLocaleFromPath,\n getLocaleLang,\n getLocaleName,\n getLocalizedUrl,\n getMarkdownMetadata,\n getMultilingualUrls,\n getNesting,\n getPathWithoutLocale,\n getTranslation,\n /**\n * @deprecated Use `getTranslation` instead.\n */\n getTranslation as getTranslationContent,\n insert,\n localeFlatMap,\n localeList,\n localeMap,\n localeRecord,\n md,\n nest,\n t,\n type ContentNode,\n type LanguageContent,\n} from '@intlayer/core';\nexport { file } from '@intlayer/core/file'; // Include specific export for browser because of node js function that can't be used in browser\n"],"mappings":"AAAA,cAAc;AAed,OAAO,mBAAmB;AAI1B,MAAM,mBAAmB,MAAM;AAG/B;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAIkB,kBAAlBA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAIkB,kBAAlBC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAGK;AACP,SAAS,YAAY;","names":["getEnumeration","getTranslation"]}
1
+ {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from '@intlayer/config/client';\nimport { type CustomIntlayerConfig as IntlayerConfig } from '@intlayer/config/client';\nimport type { Dictionary as DictionaryCore } from '@intlayer/core';\n\ntype Dictionary<T = undefined> = DictionaryCore<T, true>;\n/**\n * @deprecated Use `Dictionary<T>` instead.\n */\ntype DeclarationContent<T = undefined> = Dictionary<T>;\n\nexport type { DeclarationContent, Dictionary };\n\n/**\n * Rexport using named import because πof Tsup bug in CJS\n */\nimport configuration from '@intlayer/config/built';\n/**\n * @deprecated Use `import { configuration } from 'intlayer'` instead.\n */\nconst getConfiguration = () => configuration;\nexport { configuration, getConfiguration, IntlayerConfig };\n\nexport {\n compact,\n cond,\n currency,\n date,\n enu,\n gender,\n getDictionary,\n getEnumeration,\n /**\n * @deprecated Use `getEnumeration` instead.\n */\n getEnumeration as getEnumerationContent,\n getHTMLTextDir,\n getIntlayer,\n getIntlayerAsync,\n getLocaleFromPath,\n getLocaleLang,\n getLocaleName,\n getLocalizedUrl,\n getMarkdownMetadata,\n getMultilingualUrls,\n getNesting,\n getPathWithoutLocale,\n getTranslation,\n /**\n * @deprecated Use `getTranslation` instead.\n */\n getTranslation as getTranslationContent,\n insert,\n Intl,\n localeFlatMap,\n localeList,\n localeMap,\n localeRecord,\n md,\n nest,\n number,\n percentage,\n relativeTime,\n t,\n units,\n type ContentNode,\n type LanguageContent,\n} from '@intlayer/core';\nexport { file } from '@intlayer/core/file'; // Include specific export for browser because of node js function that can't be used in browser\n"],"mappings":"AAAA,cAAc;AAed,OAAO,mBAAmB;AAI1B,MAAM,mBAAmB,MAAM;AAG/B;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAIkB,kBAAlBA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAIkB,kBAAlBC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAGK;AACP,SAAS,YAAY;","names":["getEnumeration","getTranslation"]}
@@ -16,7 +16,7 @@ import configuration from '@intlayer/config/built';
16
16
  */
17
17
  declare const getConfiguration: () => import("@intlayer/config").IntlayerConfig;
18
18
  export { configuration, getConfiguration, IntlayerConfig };
19
- export { cond, enu, gender, getDictionary, getEnumeration,
19
+ export { compact, cond, currency, date, enu, gender, getDictionary, getEnumeration,
20
20
  /**
21
21
  * @deprecated Use `getEnumeration` instead.
22
22
  */
@@ -24,6 +24,6 @@ getEnumeration as getEnumerationContent, getHTMLTextDir, getIntlayer, getIntlaye
24
24
  /**
25
25
  * @deprecated Use `getTranslation` instead.
26
26
  */
27
- getTranslation as getTranslationContent, insert, localeFlatMap, localeList, localeMap, localeRecord, md, nest, t, type ContentNode, type LanguageContent, } from '@intlayer/core';
27
+ getTranslation as getTranslationContent, insert, Intl, localeFlatMap, localeList, localeMap, localeRecord, md, nest, number, percentage, relativeTime, t, units, type ContentNode, type LanguageContent, } from '@intlayer/core';
28
28
  export { file } from '@intlayer/core/file';
29
29
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,KAAK,oBAAoB,IAAI,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACtF,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEnE,KAAK,UAAU,CAAC,CAAC,GAAG,SAAS,IAAI,cAAc,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;AACzD;;GAEG;AACH,KAAK,kBAAkB,CAAC,CAAC,GAAG,SAAS,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC;AAEvD,YAAY,EAAE,kBAAkB,EAAE,UAAU,EAAE,CAAC;AA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AC;AAC7C,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,cAAc,EAAE,CAAC;AAE3D,OAAO,EACL,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,IAAI,EACJ,GAAG,EACH,MAAM,EACN,aAAa,EACb,cAAc;AACd;;GAEG;AACH,cAAc,IAAI,qBAAqB,EACvC,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,UAAU,EACV,oBAAoB,EACpB,cAAc;AACd;;GAEG;AACH,cAAc,IAAI,qBAAqB,EACvC,MAAM,EACN,IAAI,EACJ,aAAa,EACb,UAAU,EACV,SAAS,EACT,YAAY,EACZ,EAAE,EACF,IAAI,EACJ,MAAM,EACN,UAAU,EACV,YAAY,EACZ,CAAC,EACD,KAAK,EACL,KAAK,WAAW,EAChB,KAAK,eAAe,GACrB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intlayer",
3
- "version": "5.7.8",
3
+ "version": "5.8.0-canary.0",
4
4
  "private": false,
5
5
  "description": "Manage internationalization i18n in a simple way, through TypeScript, declaration file, declare your multilingual content every where in your code.",
6
6
  "keywords": [
@@ -59,32 +59,32 @@
59
59
  "./package.json"
60
60
  ],
61
61
  "dependencies": {
62
- "@intlayer/config": "5.7.8",
63
- "@intlayer/core": "5.7.8",
64
- "@intlayer/cli": "5.7.8"
62
+ "@intlayer/config": "5.8.0-canary.0",
63
+ "@intlayer/cli": "5.8.0-canary.0",
64
+ "@intlayer/core": "5.8.0-canary.0"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@changesets/changelog-github": "0.5.1",
68
- "@changesets/cli": "2.29.4",
69
- "@types/node": "^22.15.30",
68
+ "@changesets/cli": "2.29.5",
69
+ "@types/node": "^24.2.1",
70
70
  "@typescript-eslint/parser": "^8.33.1",
71
71
  "concurrently": "^9.1.2",
72
- "eslint": "^9.28.0",
72
+ "eslint": "^9.33.0",
73
73
  "prettier": "^3.5.3",
74
74
  "rimraf": "^6.0.1",
75
75
  "tsc-alias": "^1.8.16",
76
76
  "tsup": "^8.5.0",
77
- "typescript": "^5.8.3",
77
+ "typescript": "^5.9.2",
78
78
  "vitest": "^3.2.2",
79
- "@utils/ts-config-types": "1.0.4",
80
- "@utils/tsup-config": "1.0.4",
79
+ "@utils/eslint-config": "1.0.4",
81
80
  "@utils/ts-config": "1.0.4",
82
- "@utils/eslint-config": "1.0.4"
81
+ "@utils/ts-config-types": "1.0.4",
82
+ "@utils/tsup-config": "1.0.4"
83
83
  },
84
84
  "peerDependencies": {
85
- "@intlayer/cli": "5.7.8",
86
- "@intlayer/core": "5.7.8",
87
- "@intlayer/config": "5.7.8"
85
+ "@intlayer/cli": "5.8.0-canary.0",
86
+ "@intlayer/config": "5.8.0-canary.0",
87
+ "@intlayer/core": "5.8.0-canary.0"
88
88
  },
89
89
  "engines": {
90
90
  "node": ">=14.18"