intlayer 5.3.12 → 5.4.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.
@@ -40,6 +40,7 @@ __export(index_exports, {
40
40
  getHTMLTextDir: () => import_core.getHTMLTextDir,
41
41
  getIntlayer: () => import_core.getIntlayer,
42
42
  getIntlayerAsync: () => import_core.getIntlayerAsync,
43
+ getLocaleFromPath: () => import_core.getLocaleFromPath,
43
44
  getLocaleLang: () => import_core.getLocaleLang,
44
45
  getLocaleName: () => import_core.getLocaleName,
45
46
  getLocalizedUrl: () => import_core.getLocalizedUrl,
@@ -49,7 +50,9 @@ __export(index_exports, {
49
50
  getTranslation: () => import_core.getTranslation,
50
51
  getTranslationContent: () => import_core.getTranslation,
51
52
  insert: () => import_core.insert,
53
+ localeFlatMap: () => import_core.localeFlatMap,
52
54
  localeList: () => import_core.localeList,
55
+ localeMap: () => import_core.localeMap,
53
56
  md: () => import_core.md,
54
57
  nest: () => import_core.nest,
55
58
  t: () => import_core.t
@@ -73,6 +76,7 @@ const getConfiguration = () => import_built.default;
73
76
  getHTMLTextDir,
74
77
  getIntlayer,
75
78
  getIntlayerAsync,
79
+ getLocaleFromPath,
76
80
  getLocaleLang,
77
81
  getLocaleName,
78
82
  getLocalizedUrl,
@@ -82,7 +86,9 @@ const getConfiguration = () => import_built.default;
82
86
  getTranslation,
83
87
  getTranslationContent,
84
88
  insert,
89
+ localeFlatMap,
85
90
  localeList,
91
+ localeMap,
86
92
  md,
87
93
  nest,
88
94
  t,
@@ -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 { Dictionary, DeclarationContent };\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 type LanguageContent,\n type ContentNode,\n getLocaleName,\n enu,\n cond,\n md,\n t,\n nest,\n insert,\n getEnumeration,\n /**\n * @deprecated Use `getEnumeration` instead.\n */\n getEnumeration as getEnumerationContent,\n getDictionary,\n getIntlayer,\n getIntlayerAsync,\n getTranslation,\n /**\n * @deprecated Use `getTranslation` instead.\n */\n getTranslation as getTranslationContent,\n getNesting,\n getLocaleLang,\n getHTMLTextDir,\n getPathWithoutLocale,\n getMultilingualUrls,\n getLocalizedUrl,\n localeList,\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,0BAAc,oCAAd;AAeA,mBAA0B;AAO1B,kBA8BO;AACP,kBAAqB;AAlCrB,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 cond,\n enu,\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 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 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,0BAAc,oCAAd;AAeA,mBAA0B;AAO1B,kBAiCO;AACP,kBAAqB;AArCrB,MAAM,mBAAmB,MAAM,aAAAA;","names":["configuration"]}
@@ -2,27 +2,30 @@ export * from "@intlayer/config/client";
2
2
  import configuration from "@intlayer/config/built";
3
3
  const getConfiguration = () => configuration;
4
4
  import {
5
- getLocaleName,
6
- enu,
7
5
  cond,
8
- md,
9
- t,
10
- nest,
11
- insert,
6
+ enu,
7
+ getDictionary,
12
8
  getEnumeration,
13
9
  getEnumeration as getEnumeration2,
14
- getDictionary,
10
+ getHTMLTextDir,
15
11
  getIntlayer,
16
12
  getIntlayerAsync,
17
- getTranslation,
18
- getTranslation as getTranslation2,
19
- getNesting,
13
+ getLocaleFromPath,
20
14
  getLocaleLang,
21
- getHTMLTextDir,
22
- getPathWithoutLocale,
23
- getMultilingualUrls,
15
+ getLocaleName,
24
16
  getLocalizedUrl,
25
- localeList
17
+ getMultilingualUrls,
18
+ getNesting,
19
+ getPathWithoutLocale,
20
+ getTranslation,
21
+ getTranslation as getTranslation2,
22
+ insert,
23
+ localeFlatMap,
24
+ localeList,
25
+ localeMap,
26
+ md,
27
+ nest,
28
+ t
26
29
  } from "@intlayer/core";
27
30
  import { file } from "@intlayer/core/file";
28
31
  export {
@@ -37,6 +40,7 @@ export {
37
40
  getHTMLTextDir,
38
41
  getIntlayer,
39
42
  getIntlayerAsync,
43
+ getLocaleFromPath,
40
44
  getLocaleLang,
41
45
  getLocaleName,
42
46
  getLocalizedUrl,
@@ -46,7 +50,9 @@ export {
46
50
  getTranslation,
47
51
  getTranslation2 as getTranslationContent,
48
52
  insert,
53
+ localeFlatMap,
49
54
  localeList,
55
+ localeMap,
50
56
  md,
51
57
  nest,
52
58
  t
@@ -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 { Dictionary, DeclarationContent };\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 type LanguageContent,\n type ContentNode,\n getLocaleName,\n enu,\n cond,\n md,\n t,\n nest,\n insert,\n getEnumeration,\n /**\n * @deprecated Use `getEnumeration` instead.\n */\n getEnumeration as getEnumerationContent,\n getDictionary,\n getIntlayer,\n getIntlayerAsync,\n getTranslation,\n /**\n * @deprecated Use `getTranslation` instead.\n */\n getTranslation as getTranslationContent,\n getNesting,\n getLocaleLang,\n getHTMLTextDir,\n getPathWithoutLocale,\n getMultilingualUrls,\n getLocalizedUrl,\n localeList,\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,EAGE;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,EAIkB,kBAAlBC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;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 cond,\n enu,\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 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 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,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,EAIkB,kBAAlBC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAGK;AACP,SAAS,YAAY;","names":["getEnumeration","getTranslation"]}
@@ -6,7 +6,7 @@ type Dictionary<T = undefined> = DictionaryCore<T, true>;
6
6
  * @deprecated Use `Dictionary<T>` instead.
7
7
  */
8
8
  type DeclarationContent<T = undefined> = Dictionary<T>;
9
- export type { Dictionary, DeclarationContent };
9
+ export type { DeclarationContent, Dictionary };
10
10
  /**
11
11
  * Rexport using named import because πof Tsup bug in CJS
12
12
  */
@@ -16,14 +16,14 @@ 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 { type LanguageContent, type ContentNode, getLocaleName, enu, cond, md, t, nest, insert, getEnumeration,
19
+ export { cond, enu, getDictionary, getEnumeration,
20
20
  /**
21
21
  * @deprecated Use `getEnumeration` instead.
22
22
  */
23
- getEnumeration as getEnumerationContent, getDictionary, getIntlayer, getIntlayerAsync, getTranslation,
23
+ getEnumeration as getEnumerationContent, getHTMLTextDir, getIntlayer, getIntlayerAsync, getLocaleFromPath, getLocaleLang, getLocaleName, getLocalizedUrl, getMultilingualUrls, getNesting, getPathWithoutLocale, getTranslation,
24
24
  /**
25
25
  * @deprecated Use `getTranslation` instead.
26
26
  */
27
- getTranslation as getTranslationContent, getNesting, getLocaleLang, getHTMLTextDir, getPathWithoutLocale, getMultilingualUrls, getLocalizedUrl, localeList, } from '@intlayer/core';
27
+ getTranslation as getTranslationContent, insert, localeFlatMap, localeList, localeMap, md, nest, t, 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,UAAU,EAAE,kBAAkB,EAAE,CAAC;AAE/C;;GAEG;AACH,OAAO,aAAa,MAAM,wBAAwB,CAAC;AACnD;;GAEG;AACH,QAAA,MAAM,gBAAgB,iDAAsB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,cAAc,EAAE,CAAC;AAE3D,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,aAAa,EACb,GAAG,EACH,IAAI,EACJ,EAAE,EACF,CAAC,EACD,IAAI,EACJ,MAAM,EACN,cAAc;AACd;;GAEG;AACH,cAAc,IAAI,qBAAq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EACD,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.3.12",
3
+ "version": "5.4.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,9 +59,9 @@
59
59
  "./package.json"
60
60
  ],
61
61
  "dependencies": {
62
- "@intlayer/cli": "5.3.12",
63
- "@intlayer/config": "5.3.12",
64
- "@intlayer/core": "5.3.12"
62
+ "@intlayer/cli": "5.4.0-canary.0",
63
+ "@intlayer/core": "5.4.0-canary.0",
64
+ "@intlayer/config": "5.4.0-canary.0"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@changesets/changelog-github": "0.5.1",
@@ -75,15 +75,15 @@
75
75
  "tsc-alias": "^1.8.11",
76
76
  "tsup": "^8.4.0",
77
77
  "typescript": "^5.8.2",
78
+ "@utils/ts-config": "1.0.4",
78
79
  "@utils/eslint-config": "1.0.4",
79
80
  "@utils/ts-config-types": "1.0.4",
80
- "@utils/ts-config": "1.0.4",
81
81
  "@utils/tsup-config": "1.0.4"
82
82
  },
83
83
  "peerDependencies": {
84
- "@intlayer/cli": "5.3.12",
85
- "@intlayer/config": "5.3.12",
86
- "@intlayer/core": "5.3.12"
84
+ "@intlayer/cli": "5.4.0-canary.0",
85
+ "@intlayer/core": "5.4.0-canary.0",
86
+ "@intlayer/config": "5.4.0-canary.0"
87
87
  },
88
88
  "engines": {
89
89
  "node": ">=14.18"