intlayer 5.0.3 → 5.0.5
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 +2 -2
- package/dist/cjs/index.cjs +4 -0
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.mjs +4 -0
- package/dist/esm/index.mjs.map +1 -1
- package/dist/types/index.d.ts +9 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -280,8 +280,8 @@ To use Intlayer in your Express application, you can use [express-intlayer](http
|
|
|
280
280
|
The `intlayer` package also provides some functions to help you to internationalize your application.
|
|
281
281
|
|
|
282
282
|
- [`getConfiguration()`](https://intlayer.org/doc/packages/intlayer/getConfiguration)
|
|
283
|
-
- [`
|
|
284
|
-
- [`
|
|
283
|
+
- [`getTranslation()`](https://intlayer.org/doc/packages/intlayer/getTranslation)
|
|
284
|
+
- [`getEnumeration()`](https://intlayer.org/doc/packages/intlayer/getEnumeration)
|
|
285
285
|
- [`getLocaleName()`](https://intlayer.org/doc/packages/intlayer/getLocaleName)
|
|
286
286
|
- [`getLocaleLang()`](https://intlayer.org/doc/packages/intlayer/getLocaleLang)
|
|
287
287
|
- [`getHTMLTextDir()`](https://intlayer.org/doc/packages/intlayer/getHTMLTextDir)
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -24,6 +24,7 @@ __export(index_exports, {
|
|
|
24
24
|
getConfiguration: () => import_client.getConfiguration,
|
|
25
25
|
getDictionary: () => import_core.getDictionary,
|
|
26
26
|
getEnumeration: () => import_core.getEnumeration,
|
|
27
|
+
getEnumerationContent: () => import_core.getEnumeration,
|
|
27
28
|
getHTMLTextDir: () => import_core.getHTMLTextDir,
|
|
28
29
|
getIntlayer: () => import_core.getIntlayer,
|
|
29
30
|
getIntlayerAsync: () => import_core.getIntlayerAsync,
|
|
@@ -34,6 +35,7 @@ __export(index_exports, {
|
|
|
34
35
|
getNesting: () => import_core.getNesting,
|
|
35
36
|
getPathWithoutLocale: () => import_core.getPathWithoutLocale,
|
|
36
37
|
getTranslation: () => import_core.getTranslation,
|
|
38
|
+
getTranslationContent: () => import_core.getTranslation,
|
|
37
39
|
localeList: () => import_core.localeList,
|
|
38
40
|
md: () => import_core.md,
|
|
39
41
|
nest: () => import_core.nest,
|
|
@@ -50,6 +52,7 @@ var import_core = require("@intlayer/core");
|
|
|
50
52
|
getConfiguration,
|
|
51
53
|
getDictionary,
|
|
52
54
|
getEnumeration,
|
|
55
|
+
getEnumerationContent,
|
|
53
56
|
getHTMLTextDir,
|
|
54
57
|
getIntlayer,
|
|
55
58
|
getIntlayerAsync,
|
|
@@ -60,6 +63,7 @@ var import_core = require("@intlayer/core");
|
|
|
60
63
|
getNesting,
|
|
61
64
|
getPathWithoutLocale,
|
|
62
65
|
getTranslation,
|
|
66
|
+
getTranslationContent,
|
|
63
67
|
localeList,
|
|
64
68
|
md,
|
|
65
69
|
nest,
|
package/dist/cjs/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import 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\nexport {\n Locales,\n type CustomIntlayerConfig as IntlayerConfig,\n type LocalesValues,\n getConfiguration,\n} from '@intlayer/config/client';\nexport {\n type LanguageContent,\n type ContentNode,\n getLocaleName,\n enu,\n cond,\n md,\n t,\n nest,\n getEnumeration,\n getDictionary,\n getIntlayer,\n getIntlayerAsync,\n getTranslation,\n getNesting,\n getLocaleLang,\n getHTMLTextDir,\n getPathWithoutLocale,\n getMultilingualUrls,\n getLocalizedUrl,\n localeList,\n} from '@intlayer/core';\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUA,oBAKO;AACP,
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import 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\nexport {\n Locales,\n type CustomIntlayerConfig as IntlayerConfig,\n type LocalesValues,\n getConfiguration,\n} from '@intlayer/config/client';\nexport {\n type LanguageContent,\n type ContentNode,\n getLocaleName,\n enu,\n cond,\n md,\n t,\n nest,\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';\n"],"mappings":";;;;;;;;;;;;;;;;;;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;AAUA,oBAKO;AACP,kBA6BO;","names":[]}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -10,10 +10,12 @@ import {
|
|
|
10
10
|
t,
|
|
11
11
|
nest,
|
|
12
12
|
getEnumeration,
|
|
13
|
+
getEnumeration as getEnumeration2,
|
|
13
14
|
getDictionary,
|
|
14
15
|
getIntlayer,
|
|
15
16
|
getIntlayerAsync,
|
|
16
17
|
getTranslation,
|
|
18
|
+
getTranslation as getTranslation2,
|
|
17
19
|
getNesting,
|
|
18
20
|
getLocaleLang,
|
|
19
21
|
getHTMLTextDir,
|
|
@@ -29,6 +31,7 @@ export {
|
|
|
29
31
|
getConfiguration,
|
|
30
32
|
getDictionary,
|
|
31
33
|
getEnumeration,
|
|
34
|
+
getEnumeration2 as getEnumerationContent,
|
|
32
35
|
getHTMLTextDir,
|
|
33
36
|
getIntlayer,
|
|
34
37
|
getIntlayerAsync,
|
|
@@ -39,6 +42,7 @@ export {
|
|
|
39
42
|
getNesting,
|
|
40
43
|
getPathWithoutLocale,
|
|
41
44
|
getTranslation,
|
|
45
|
+
getTranslation2 as getTranslationContent,
|
|
42
46
|
localeList,
|
|
43
47
|
md,
|
|
44
48
|
nest,
|
package/dist/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import 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\nexport {\n Locales,\n type CustomIntlayerConfig as IntlayerConfig,\n type LocalesValues,\n getConfiguration,\n} from '@intlayer/config/client';\nexport {\n type LanguageContent,\n type ContentNode,\n getLocaleName,\n enu,\n cond,\n md,\n t,\n nest,\n getEnumeration,\n getDictionary,\n getIntlayer,\n getIntlayerAsync,\n getTranslation,\n getNesting,\n getLocaleLang,\n getHTMLTextDir,\n getPathWithoutLocale,\n getMultilingualUrls,\n getLocalizedUrl,\n localeList,\n} from '@intlayer/core';\n"],"mappings":"AAUA;AAAA,EACE;AAAA,EAGA;AAAA,OACK;AACP;AAAA,EAGE;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,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import 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\nexport {\n Locales,\n type CustomIntlayerConfig as IntlayerConfig,\n type LocalesValues,\n getConfiguration,\n} from '@intlayer/config/client';\nexport {\n type LanguageContent,\n type ContentNode,\n getLocaleName,\n enu,\n cond,\n md,\n t,\n nest,\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';\n"],"mappings":"AAUA;AAAA,EACE;AAAA,EAGA;AAAA,OACK;AACP;AAAA,EAGE;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;","names":["getEnumeration","getTranslation"]}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -6,5 +6,13 @@ type Dictionary<T = undefined> = DictionaryCore<T, true>;
|
|
|
6
6
|
type DeclarationContent<T = undefined> = Dictionary<T>;
|
|
7
7
|
export type { Dictionary, DeclarationContent };
|
|
8
8
|
export { Locales, type CustomIntlayerConfig as IntlayerConfig, type LocalesValues, getConfiguration, } from '@intlayer/config/client';
|
|
9
|
-
export { type LanguageContent, type ContentNode, getLocaleName, enu, cond, md, t, nest, getEnumeration,
|
|
9
|
+
export { type LanguageContent, type ContentNode, getLocaleName, enu, cond, md, t, nest, getEnumeration,
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated Use `getEnumeration` instead.
|
|
12
|
+
*/
|
|
13
|
+
getEnumeration as getEnumerationContent, getDictionary, getIntlayer, getIntlayerAsync, getTranslation,
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated Use `getTranslation` instead.
|
|
16
|
+
*/
|
|
17
|
+
getTranslation as getTranslationContent, getNesting, getLocaleLang, getHTMLTextDir, getPathWithoutLocale, getMultilingualUrls, getLocalizedUrl, localeList, } from '@intlayer/core';
|
|
10
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,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,OAAO,EACL,OAAO,EACP,KAAK,oBAAoB,IAAI,cAAc,EAC3C,KAAK,aAAa,EAClB,gBAAgB,GACjB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,aAAa,EACb,GAAG,EACH,IAAI,EACJ,EAAE,EACF,CAAC,EACD,IAAI,EACJ,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,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,OAAO,EACL,OAAO,EACP,KAAK,oBAAoB,IAAI,cAAc,EAC3C,KAAK,aAAa,EAClB,gBAAgB,GACjB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,aAAa,EACb,GAAG,EACH,IAAI,EACJ,EAAE,EACF,CAAC,EACD,IAAI,EACJ,cAAc;AACd;;GAEG;AACH,cAAc,IAAI,qBAAqB,EACvC,aAAa,EACb,WAAW,EACX,gBAAgB,EAChB,cAAc;AACd;;GAEG;AACH,cAAc,IAAI,qBAAqB,EACvC,UAAU,EACV,aAAa,EACb,cAAc,EACd,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,EACf,UAAU,GACX,MAAM,gBAAgB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "intlayer",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.5",
|
|
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": [
|
|
@@ -58,9 +58,9 @@
|
|
|
58
58
|
"./package.json"
|
|
59
59
|
],
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@intlayer/cli": "5.0.
|
|
62
|
-
"@intlayer/config": "5.0.
|
|
63
|
-
"@intlayer/core": "^5.0.
|
|
61
|
+
"@intlayer/cli": "5.0.5",
|
|
62
|
+
"@intlayer/config": "5.0.5",
|
|
63
|
+
"@intlayer/core": "^5.0.5"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@changesets/changelog-github": "0.5.0",
|
|
@@ -74,15 +74,15 @@
|
|
|
74
74
|
"tsc-alias": "^1.8.10",
|
|
75
75
|
"tsup": "^8.3.5",
|
|
76
76
|
"typescript": "^5.7.3",
|
|
77
|
-
"@utils/ts-config-types": "1.0.4",
|
|
78
77
|
"@utils/tsup-config": "1.0.4",
|
|
79
|
-
"@utils/
|
|
80
|
-
"@utils/ts-config": "1.0.4"
|
|
78
|
+
"@utils/ts-config-types": "1.0.4",
|
|
79
|
+
"@utils/ts-config": "1.0.4",
|
|
80
|
+
"@utils/eslint-config": "1.0.4"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
|
-
"@intlayer/
|
|
84
|
-
"@intlayer/
|
|
85
|
-
"@intlayer/config": "5.0.
|
|
83
|
+
"@intlayer/core": "^5.0.5",
|
|
84
|
+
"@intlayer/cli": "5.0.5",
|
|
85
|
+
"@intlayer/config": "5.0.5"
|
|
86
86
|
},
|
|
87
87
|
"engines": {
|
|
88
88
|
"node": ">=14.18"
|