intlayer 5.5.10 → 5.6.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
@@ -33,7 +33,7 @@
33
33
  <a href="https://www.facebook.com/intlayer" target="blank"><img align="center"
34
34
  src="https://img.shields.io/badge/facebook-4267B2.svg?style=for-the-badge&logo=facebook&logoColor=white"
35
35
  alt="Intlayer Facebook" height="30"/></a>
36
- <a href="https://www.instagram.com/intlayer_org/" target="blank"><img align="center"
36
+ <a href="https://www.instagram.com/intlayer/" target="blank"><img align="center"
37
37
  src="https://img.shields.io/badge/instagram-%23E4405F.svg?style=for-the-badge&logo=Instagram&logoColor=white"
38
38
  alt="Intlayer Instagram" height="30"/></a>
39
39
  <a href="https://x.com/Intlayer183096" target="blank"><img align="center"
@@ -298,15 +298,15 @@ Intlayer is available as a package for your application.
298
298
 
299
299
  ### React Application
300
300
 
301
- To use Intlayer in your React application, you can use [react-intlayer](https://github.com/aymericzip/intlayer/blob/main/docs/en/packages/react-intlayer/index.md).
301
+ To use Intlayer in your React application, you can use [react-intlayer](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/react-intlayer/index.md).
302
302
 
303
303
  ### Next.js Application
304
304
 
305
- To use Intlayer in your Next.js application, you can use [next-intlayer](https://github.com/aymericzip/intlayer/blob/main/docs/en/packages/next-intlayer/index.md).
305
+ To use Intlayer in your Next.js application, you can use [next-intlayer](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/next-intlayer/index.md).
306
306
 
307
307
  ### Express Application
308
308
 
309
- To use Intlayer in your Express application, you can use [express-intlayer](https://github.com/aymericzip/intlayer/blob/main/docs/en/packages/express-intlayer/index.md).
309
+ To use Intlayer in your Express application, you can use [express-intlayer](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/express-intlayer/index.md).
310
310
 
311
311
  ## Functions provided by `intlayer` package
312
312
 
@@ -44,6 +44,7 @@ __export(index_exports, {
44
44
  getLocaleLang: () => import_core.getLocaleLang,
45
45
  getLocaleName: () => import_core.getLocaleName,
46
46
  getLocalizedUrl: () => import_core.getLocalizedUrl,
47
+ getMarkdownMetadata: () => import_core.getMarkdownMetadata,
47
48
  getMultilingualUrls: () => import_core.getMultilingualUrls,
48
49
  getNesting: () => import_core.getNesting,
49
50
  getPathWithoutLocale: () => import_core.getPathWithoutLocale,
@@ -53,6 +54,7 @@ __export(index_exports, {
53
54
  localeFlatMap: () => import_core.localeFlatMap,
54
55
  localeList: () => import_core.localeList,
55
56
  localeMap: () => import_core.localeMap,
57
+ localeRecord: () => import_core.localeRecord,
56
58
  md: () => import_core.md,
57
59
  nest: () => import_core.nest,
58
60
  t: () => import_core.t
@@ -80,6 +82,7 @@ const getConfiguration = () => import_built.default;
80
82
  getLocaleLang,
81
83
  getLocaleName,
82
84
  getLocalizedUrl,
85
+ getMarkdownMetadata,
83
86
  getMultilingualUrls,
84
87
  getNesting,
85
88
  getPathWithoutLocale,
@@ -89,6 +92,7 @@ const getConfiguration = () => import_built.default;
89
92
  localeFlatMap,
90
93
  localeList,
91
94
  localeMap,
95
+ localeRecord,
92
96
  md,
93
97
  nest,
94
98
  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 { 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"]}
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 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,0BAAc,oCAAd;AAeA,mBAA0B;AAO1B,kBAmCO;AACP,kBAAqB;AAvCrB,MAAM,mBAAmB,MAAM,aAAAA;","names":["configuration"]}
@@ -14,6 +14,7 @@ import {
14
14
  getLocaleLang,
15
15
  getLocaleName,
16
16
  getLocalizedUrl,
17
+ getMarkdownMetadata,
17
18
  getMultilingualUrls,
18
19
  getNesting,
19
20
  getPathWithoutLocale,
@@ -23,6 +24,7 @@ import {
23
24
  localeFlatMap,
24
25
  localeList,
25
26
  localeMap,
27
+ localeRecord,
26
28
  md,
27
29
  nest,
28
30
  t
@@ -44,6 +46,7 @@ export {
44
46
  getLocaleLang,
45
47
  getLocaleName,
46
48
  getLocalizedUrl,
49
+ getMarkdownMetadata,
47
50
  getMultilingualUrls,
48
51
  getNesting,
49
52
  getPathWithoutLocale,
@@ -53,6 +56,7 @@ export {
53
56
  localeFlatMap,
54
57
  localeList,
55
58
  localeMap,
59
+ localeRecord,
56
60
  md,
57
61
  nest,
58
62
  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 { 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"]}
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 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,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"]}
@@ -20,10 +20,10 @@ export { cond, enu, getDictionary, getEnumeration,
20
20
  /**
21
21
  * @deprecated Use `getEnumeration` instead.
22
22
  */
23
- getEnumeration as getEnumerationContent, getHTMLTextDir, getIntlayer, getIntlayerAsync, getLocaleFromPath, getLocaleLang, getLocaleName, getLocalizedUrl, getMultilingualUrls, getNesting, getPathWithoutLocale, getTranslation,
23
+ getEnumeration as getEnumerationContent, getHTMLTextDir, getIntlayer, getIntlayerAsync, getLocaleFromPath, getLocaleLang, getLocaleName, getLocalizedUrl, getMarkdownMetadata, getMultilingualUrls, getNesting, getPathWithoutLocale, getTranslation,
24
24
  /**
25
25
  * @deprecated Use `getTranslation` instead.
26
26
  */
27
- getTranslation as getTranslationContent, insert, localeFlatMap, localeList, localeMap, md, nest, t, type ContentNode, type LanguageContent, } from '@intlayer/core';
27
+ getTranslation as getTranslationContent, insert, localeFlatMap, localeList, localeMap, localeRecord, 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,UA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;;GAEG;AACH,QAAA,MAAM,gBAAgB,iDAAsB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,cAAc,EAAE,CAAC;AAE3D,OAAO,EACL,IAAI,EACJ,GAAG,EACH,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,aAAa,EACb,UAAU,EACV,SAAS,EACT,YAAY,EACZ,EAAE,EACF,IAAI,EACJ,CAAC,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.5.10",
3
+ "version": "5.6.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/config": "5.5.10",
63
- "@intlayer/core": "5.5.10",
64
- "@intlayer/cli": "5.5.10"
62
+ "@intlayer/config": "5.6.0",
63
+ "@intlayer/core": "5.6.0",
64
+ "@intlayer/cli": "5.6.0"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@changesets/changelog-github": "0.5.1",
@@ -75,15 +75,16 @@
75
75
  "tsc-alias": "^1.8.16",
76
76
  "tsup": "^8.5.0",
77
77
  "typescript": "^5.8.3",
78
+ "vitest": "^3.2.2",
78
79
  "@utils/eslint-config": "1.0.4",
79
- "@utils/ts-config": "1.0.4",
80
80
  "@utils/ts-config-types": "1.0.4",
81
+ "@utils/ts-config": "1.0.4",
81
82
  "@utils/tsup-config": "1.0.4"
82
83
  },
83
84
  "peerDependencies": {
84
- "@intlayer/cli": "5.5.10",
85
- "@intlayer/config": "5.5.10",
86
- "@intlayer/core": "5.5.10"
85
+ "@intlayer/config": "5.6.0",
86
+ "@intlayer/cli": "5.6.0",
87
+ "@intlayer/core": "5.6.0"
87
88
  },
88
89
  "engines": {
89
90
  "node": ">=14.18"
@@ -102,7 +103,8 @@
102
103
  "prettier": "prettier . --check",
103
104
  "prettier:fix": "prettier . --write",
104
105
  "reset": "pnpm clean & pnpm build",
105
- "test": "",
106
+ "test": "vitest run",
107
+ "test:watch": "vitest",
106
108
  "typecheck": "tsup --project ./tsconfig.json --noEmit"
107
109
  }
108
110
  }