intlayer 3.4.9 → 3.5.1
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/index.cjs
CHANGED
|
@@ -18,12 +18,15 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var src_exports = {};
|
|
20
20
|
__export(src_exports, {
|
|
21
|
-
Locales: () =>
|
|
21
|
+
Locales: () => import_client2.Locales,
|
|
22
22
|
enu: () => import_core2.enu,
|
|
23
|
+
getConfiguration: () => import_client.getConfiguration,
|
|
23
24
|
getEnumerationContent: () => import_core2.getEnumerationContent,
|
|
24
25
|
getHTMLLang: () => import_core2.getHTMLLang,
|
|
25
26
|
getHTMLTextDir: () => import_core2.getHTMLTextDir,
|
|
26
27
|
getLocaleName: () => import_core2.getLocaleName,
|
|
28
|
+
getMultilingualUrls: () => import_core2.getMultilingualUrls,
|
|
29
|
+
getPathWithoutLocale: () => import_core2.getPathWithoutLocale,
|
|
27
30
|
getTranslationContent: () => getTranslationContent,
|
|
28
31
|
localeList: () => import_core2.localeList,
|
|
29
32
|
t: () => t
|
|
@@ -32,16 +35,20 @@ module.exports = __toCommonJS(src_exports);
|
|
|
32
35
|
var import_core = require("@intlayer/core");
|
|
33
36
|
var import_core2 = require("@intlayer/core");
|
|
34
37
|
var import_client = require("@intlayer/config/client");
|
|
38
|
+
var import_client2 = require("@intlayer/config/client");
|
|
35
39
|
const t = import_core.t;
|
|
36
40
|
const getTranslationContent = import_core.getTranslationContent;
|
|
37
41
|
// Annotate the CommonJS export names for ESM import in node:
|
|
38
42
|
0 && (module.exports = {
|
|
39
43
|
Locales,
|
|
40
44
|
enu,
|
|
45
|
+
getConfiguration,
|
|
41
46
|
getEnumerationContent,
|
|
42
47
|
getHTMLLang,
|
|
43
48
|
getHTMLTextDir,
|
|
44
49
|
getLocaleName,
|
|
50
|
+
getMultilingualUrls,
|
|
51
|
+
getPathWithoutLocale,
|
|
45
52
|
getTranslationContent,
|
|
46
53
|
localeList,
|
|
47
54
|
t
|
package/dist/cjs/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import type { Locales } from '@intlayer/config/client';\nimport {\n type TranslationContent,\n t as tCore,\n getTranslationContent as getTranslationContentCore,\n type LanguageContent,\n} from '@intlayer/core';\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import type { Locales } from '@intlayer/config/client';\nimport {\n type TranslationContent,\n t as tCore,\n getTranslationContent as getTranslationContentCore,\n type LanguageContent,\n} from '@intlayer/core';\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\nexport interface IConfigLocales<Content> {\n // This interface should be augmented in the consuming app\n}\n\ntype ConfigLocales = keyof IConfigLocales<unknown>;\n\nexport type CustomizableLanguageContent<Content = string> =\n ConfigLocales extends never\n ? LanguageContent<Content>\n : IConfigLocales<Content>;\n\n// Re-exporting the following functions from the core package: to use module augmentation\nexport const t: <Content = string>(\n content?: CustomizableLanguageContent<Content>\n) => TranslationContent<Content> = tCore;\nexport const getTranslationContent: <Content = string>(\n languageContent: CustomizableLanguageContent<Content>,\n locale: Locales\n) => Content = getTranslationContentCore;\n\nexport type {\n LanguageContent,\n QuantityContent,\n ContentValue,\n DeclarationContent,\n} from '@intlayer/core';\nexport {\n getLocaleName,\n enu,\n getEnumerationContent,\n getHTMLLang,\n getHTMLTextDir,\n getPathWithoutLocale,\n getMultilingualUrls,\n localeList,\n} from '@intlayer/core';\nexport {\n type CustomIntlayerConfig as IntlayerConfig,\n type LocalesValues,\n getConfiguration,\n} from '@intlayer/config/client';\nexport { Locales } from '@intlayer/config/client';\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,kBAKO;AA8BP,IAAAA,eASO;AACP,oBAIO;AACP,IAAAC,iBAAwB;AA7BjB,MAAM,IAEsB,YAAAC;AAC5B,MAAM,wBAGE,YAAAC;","names":["import_core","import_client","tCore","getTranslationContentCore"]}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -10,16 +10,24 @@ import {
|
|
|
10
10
|
getEnumerationContent,
|
|
11
11
|
getHTMLLang,
|
|
12
12
|
getHTMLTextDir,
|
|
13
|
+
getPathWithoutLocale,
|
|
14
|
+
getMultilingualUrls,
|
|
13
15
|
localeList
|
|
14
16
|
} from "@intlayer/core";
|
|
17
|
+
import {
|
|
18
|
+
getConfiguration
|
|
19
|
+
} from "@intlayer/config/client";
|
|
15
20
|
import { Locales } from "@intlayer/config/client";
|
|
16
21
|
export {
|
|
17
22
|
Locales,
|
|
18
23
|
enu,
|
|
24
|
+
getConfiguration,
|
|
19
25
|
getEnumerationContent,
|
|
20
26
|
getHTMLLang,
|
|
21
27
|
getHTMLTextDir,
|
|
22
28
|
getLocaleName,
|
|
29
|
+
getMultilingualUrls,
|
|
30
|
+
getPathWithoutLocale,
|
|
23
31
|
getTranslationContent,
|
|
24
32
|
localeList,
|
|
25
33
|
t
|
package/dist/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import type { Locales } from '@intlayer/config/client';\nimport {\n type TranslationContent,\n t as tCore,\n getTranslationContent as getTranslationContentCore,\n type LanguageContent,\n} from '@intlayer/core';\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import type { Locales } from '@intlayer/config/client';\nimport {\n type TranslationContent,\n t as tCore,\n getTranslationContent as getTranslationContentCore,\n type LanguageContent,\n} from '@intlayer/core';\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\nexport interface IConfigLocales<Content> {\n // This interface should be augmented in the consuming app\n}\n\ntype ConfigLocales = keyof IConfigLocales<unknown>;\n\nexport type CustomizableLanguageContent<Content = string> =\n ConfigLocales extends never\n ? LanguageContent<Content>\n : IConfigLocales<Content>;\n\n// Re-exporting the following functions from the core package: to use module augmentation\nexport const t: <Content = string>(\n content?: CustomizableLanguageContent<Content>\n) => TranslationContent<Content> = tCore;\nexport const getTranslationContent: <Content = string>(\n languageContent: CustomizableLanguageContent<Content>,\n locale: Locales\n) => Content = getTranslationContentCore;\n\nexport type {\n LanguageContent,\n QuantityContent,\n ContentValue,\n DeclarationContent,\n} from '@intlayer/core';\nexport {\n getLocaleName,\n enu,\n getEnumerationContent,\n getHTMLLang,\n getHTMLTextDir,\n getPathWithoutLocale,\n getMultilingualUrls,\n localeList,\n} from '@intlayer/core';\nexport {\n type CustomIntlayerConfig as IntlayerConfig,\n type LocalesValues,\n getConfiguration,\n} from '@intlayer/config/client';\nexport { Locales } from '@intlayer/config/client';\n"],"mappings":"AACA;AAAA,EAEE,KAAK;AAAA,EACL,yBAAyB;AAAA,OAEpB;AAgBA,MAAM,IAEsB;AAC5B,MAAM,wBAGE;AAQf;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP;AAAA,EAGE;AAAA,OACK;AACP,SAAS,eAAe;","names":[]}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export type CustomizableLanguageContent<Content = string> = ConfigLocales extend
|
|
|
7
7
|
export declare const t: <Content = string>(content?: CustomizableLanguageContent<Content>) => TranslationContent<Content>;
|
|
8
8
|
export declare const getTranslationContent: <Content = string>(languageContent: CustomizableLanguageContent<Content>, locale: Locales) => Content;
|
|
9
9
|
export type { LanguageContent, QuantityContent, ContentValue, DeclarationContent, } from '@intlayer/core';
|
|
10
|
-
export { getLocaleName, enu, getEnumerationContent, getHTMLLang, getHTMLTextDir, localeList, } from '@intlayer/core';
|
|
11
|
-
export
|
|
10
|
+
export { getLocaleName, enu, getEnumerationContent, getHTMLLang, getHTMLTextDir, getPathWithoutLocale, getMultilingualUrls, localeList, } from '@intlayer/core';
|
|
11
|
+
export { type CustomIntlayerConfig as IntlayerConfig, type LocalesValues, getConfiguration, } from '@intlayer/config/client';
|
|
12
12
|
export { Locales } from '@intlayer/config/client';
|
|
13
13
|
//# 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,OAAO,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EACL,KAAK,kBAAkB,EAGvB,KAAK,eAAe,EACrB,MAAM,gBAAgB,CAAC;AAIxB,MAAM,WAAW,cAAc,CAAC,OAAO;CAEtC;AAED,KAAK,aAAa,GAAG,MAAM,cAAc,CAAC,OAAO,CAAC,CAAC;AAEnD,MAAM,MAAM,2BAA2B,CAAC,OAAO,GAAG,MAAM,IACtD,aAAa,SAAS,KAAK,GACvB,eAAe,CAAC,OAAO,CAAC,GACxB,cAAc,CAAC,OAAO,CAAC,CAAC;AAG9B,eAAO,MAAM,CAAC,EAAE,CAAC,OAAO,GAAG,MAAM,EAC/B,OAAO,CAAC,EAAE,2BAA2B,CAAC,OAAO,CAAC,KAC3C,kBAAkB,CAAC,OAAO,CAAS,CAAC;AACzC,eAAO,MAAM,qBAAqB,EAAE,CAAC,OAAO,GAAG,MAAM,EACnD,eAAe,EAAE,2BAA2B,CAAC,OAAO,CAAC,EACrD,MAAM,EAAE,OAAO,KACZ,OAAmC,CAAC;AAEzC,YAAY,EACV,eAAe,EACf,eAAe,EACf,YAAY,EACZ,kBAAkB,GACnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,aAAa,EACb,GAAG,EACH,qBAAqB,EACrB,WAAW,EACX,cAAc,EACd,UAAU,GACX,MAAM,gBAAgB,CAAC;AACxB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EACL,KAAK,kBAAkB,EAGvB,KAAK,eAAe,EACrB,MAAM,gBAAgB,CAAC;AAIxB,MAAM,WAAW,cAAc,CAAC,OAAO;CAEtC;AAED,KAAK,aAAa,GAAG,MAAM,cAAc,CAAC,OAAO,CAAC,CAAC;AAEnD,MAAM,MAAM,2BAA2B,CAAC,OAAO,GAAG,MAAM,IACtD,aAAa,SAAS,KAAK,GACvB,eAAe,CAAC,OAAO,CAAC,GACxB,cAAc,CAAC,OAAO,CAAC,CAAC;AAG9B,eAAO,MAAM,CAAC,EAAE,CAAC,OAAO,GAAG,MAAM,EAC/B,OAAO,CAAC,EAAE,2BAA2B,CAAC,OAAO,CAAC,KAC3C,kBAAkB,CAAC,OAAO,CAAS,CAAC;AACzC,eAAO,MAAM,qBAAqB,EAAE,CAAC,OAAO,GAAG,MAAM,EACnD,eAAe,EAAE,2BAA2B,CAAC,OAAO,CAAC,EACrD,MAAM,EAAE,OAAO,KACZ,OAAmC,CAAC;AAEzC,YAAY,EACV,eAAe,EACf,eAAe,EACf,YAAY,EACZ,kBAAkB,GACnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,aAAa,EACb,GAAG,EACH,qBAAqB,EACrB,WAAW,EACX,cAAc,EACd,oBAAoB,EACpB,mBAAmB,EACnB,UAAU,GACX,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,KAAK,oBAAoB,IAAI,cAAc,EAC3C,KAAK,aAAa,EAClB,gBAAgB,GACjB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "intlayer",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Manage internationalization in a simple way, through TypeScript, declaration file, declare your multilingual every where in your code.",
|
|
6
6
|
"keywords": [
|
|
@@ -58,9 +58,9 @@
|
|
|
58
58
|
"./package.json"
|
|
59
59
|
],
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@intlayer/
|
|
62
|
-
"@intlayer/
|
|
63
|
-
"@intlayer/cli": "^3.
|
|
61
|
+
"@intlayer/config": "^3.5.1",
|
|
62
|
+
"@intlayer/core": "^3.5.1",
|
|
63
|
+
"@intlayer/cli": "^3.5.1"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@changesets/changelog-github": "0.5.0",
|
|
@@ -73,15 +73,15 @@
|
|
|
73
73
|
"tsc-alias": "^1.8.10",
|
|
74
74
|
"tsup": "^8.3.5",
|
|
75
75
|
"typescript": "^5.7.2",
|
|
76
|
-
"@utils/eslint-config": "^1.0.4",
|
|
77
76
|
"@utils/ts-config-types": "^1.0.4",
|
|
77
|
+
"@utils/tsup-config": "^1.0.4",
|
|
78
78
|
"@utils/ts-config": "^1.0.4",
|
|
79
|
-
"@utils/
|
|
79
|
+
"@utils/eslint-config": "^1.0.4"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
|
-
"@intlayer/cli": "^3.
|
|
83
|
-
"@intlayer/config": "^3.
|
|
84
|
-
"@intlayer/core": "^3.
|
|
82
|
+
"@intlayer/cli": "^3.5.1",
|
|
83
|
+
"@intlayer/config": "^3.5.1",
|
|
84
|
+
"@intlayer/core": "^3.5.1"
|
|
85
85
|
},
|
|
86
86
|
"engines": {
|
|
87
87
|
"node": ">=14.18"
|