intlayer 5.0.0 → 5.0.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.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import { Locales } from '@intlayer/config/client';\nimport {\n getTranslation as getTranslationCore,\n nest as nestCore,\n t as tCore,\n type TranslationContent,\n type NestedContent,\n type DictionaryKeys,\n type TranslationContentState,\n type Dictionary as DictionaryCore,\n type ValidDotPathsFor,\n} from '@intlayer/core';\n\ninterface IConfigLocales<Content> {\n // This interface should be augmented in the consuming app\n}\n\ntype ConfigLocales = keyof IConfigLocales<unknown>;\n\ntype CustomizableLanguageContent<Content = string> = ConfigLocales extends never\n ? TranslationContentState<Content>\n : IConfigLocales<Content>;\n\n// Re-exporting the following functions from the core package: to use module augmentation\nconst t: <Content = string>(\n content: CustomizableLanguageContent<Content>\n) => TranslationContent<Content> = tCore;\nconst getTranslationContent: <Content = string>(\n languageContent: CustomizableLanguageContent<Content>,\n locale: Locales\n) => Content = getTranslationCore;\nconst nest: <K extends DictionaryKeys>(\n dictionaryKey: K,\n path?: ValidDotPathsFor<K>\n) => NestedContent<K> = nestCore;\n\ntype Dictionary<T = undefined> = DictionaryCore<T, true>;\n/**\n * @deprecated Use `Dictionary<T>` instead.\n */\ntype DeclarationContent<T> = Dictionary<T>;\n\nexport {\n Locales,\n type Dictionary,\n type DeclarationContent,\n type IConfigLocales,\n t,\n getTranslationContent,\n nest,\n};\n\nexport {\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 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;AAAA;AAAA,oBAAwB;AACxB,kBAUO;AAyCP,IAAAA,iBAIO;AACP,IAAAC,eAmBO;AApDP,MAAM,IAE6B,YAAAC;AACnC,MAAM,wBAGS,YAAAC;AACf,MAAM,OAGkB,YAAAC;","names":["import_client","import_core","tCore","getTranslationCore","nestCore"]}
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import { Locales } from '@intlayer/config/client';\nimport {\n getTranslation as getTranslationCore,\n nest as nestCore,\n t as tCore,\n type TranslationContent,\n type NestedContent,\n type DictionaryKeys,\n type TranslationContentState,\n type Dictionary as DictionaryCore,\n type ValidDotPathsFor,\n} from '@intlayer/core';\n\ninterface IConfigLocales<Content> {\n // This interface should be augmented in the consuming app\n}\n\ntype ConfigLocales = keyof IConfigLocales<unknown>;\n\ntype CustomizableLanguageContent<Content = string> = ConfigLocales extends never\n ? TranslationContentState<Content>\n : IConfigLocales<Content>;\n\n// Re-exporting the following functions from the core package: to use module augmentation\nconst t: <Content = string>(\n content: CustomizableLanguageContent<Content>\n) => TranslationContent<Content> = tCore;\nconst getTranslationContent: <Content = string>(\n languageContent: CustomizableLanguageContent<Content>,\n locale: Locales\n) => Content = getTranslationCore;\nconst nest: <K extends DictionaryKeys>(\n dictionaryKey: K,\n path?: ValidDotPathsFor<K>\n) => NestedContent<K> = nestCore;\n\ntype Dictionary<T = undefined> = DictionaryCore<T, true>;\n/**\n * @deprecated Use `Dictionary<T>` instead.\n */\ntype DeclarationContent<T = undefined> = Dictionary<T>;\n\nexport {\n Locales,\n type Dictionary,\n type DeclarationContent,\n type IConfigLocales,\n t,\n getTranslationContent,\n nest,\n};\n\nexport {\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 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;AAAA;AAAA,oBAAwB;AACxB,kBAUO;AAyCP,IAAAA,iBAIO;AACP,IAAAC,eAmBO;AApDP,MAAM,IAE6B,YAAAC;AACnC,MAAM,wBAGS,YAAAC;AACf,MAAM,OAGkB,YAAAC;","names":["import_client","import_core","tCore","getTranslationCore","nestCore"]}
|
package/dist/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import { Locales } from '@intlayer/config/client';\nimport {\n getTranslation as getTranslationCore,\n nest as nestCore,\n t as tCore,\n type TranslationContent,\n type NestedContent,\n type DictionaryKeys,\n type TranslationContentState,\n type Dictionary as DictionaryCore,\n type ValidDotPathsFor,\n} from '@intlayer/core';\n\ninterface IConfigLocales<Content> {\n // This interface should be augmented in the consuming app\n}\n\ntype ConfigLocales = keyof IConfigLocales<unknown>;\n\ntype CustomizableLanguageContent<Content = string> = ConfigLocales extends never\n ? TranslationContentState<Content>\n : IConfigLocales<Content>;\n\n// Re-exporting the following functions from the core package: to use module augmentation\nconst t: <Content = string>(\n content: CustomizableLanguageContent<Content>\n) => TranslationContent<Content> = tCore;\nconst getTranslationContent: <Content = string>(\n languageContent: CustomizableLanguageContent<Content>,\n locale: Locales\n) => Content = getTranslationCore;\nconst nest: <K extends DictionaryKeys>(\n dictionaryKey: K,\n path?: ValidDotPathsFor<K>\n) => NestedContent<K> = nestCore;\n\ntype Dictionary<T = undefined> = DictionaryCore<T, true>;\n/**\n * @deprecated Use `Dictionary<T>` instead.\n */\ntype DeclarationContent<T> = Dictionary<T>;\n\nexport {\n Locales,\n type Dictionary,\n type DeclarationContent,\n type IConfigLocales,\n t,\n getTranslationContent,\n nest,\n};\n\nexport {\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 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,SAAS,eAAe;AACxB;AAAA,EACE,kBAAkB;AAAA,EAClB,QAAQ;AAAA,EACR,KAAK;AAAA,OAOA;AAaP,MAAM,IAE6B;AACnC,MAAM,wBAGS;AACf,MAAM,OAGkB;AAkBxB;AAAA,EAGE;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,OACK;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import { Locales } from '@intlayer/config/client';\nimport {\n getTranslation as getTranslationCore,\n nest as nestCore,\n t as tCore,\n type TranslationContent,\n type NestedContent,\n type DictionaryKeys,\n type TranslationContentState,\n type Dictionary as DictionaryCore,\n type ValidDotPathsFor,\n} from '@intlayer/core';\n\ninterface IConfigLocales<Content> {\n // This interface should be augmented in the consuming app\n}\n\ntype ConfigLocales = keyof IConfigLocales<unknown>;\n\ntype CustomizableLanguageContent<Content = string> = ConfigLocales extends never\n ? TranslationContentState<Content>\n : IConfigLocales<Content>;\n\n// Re-exporting the following functions from the core package: to use module augmentation\nconst t: <Content = string>(\n content: CustomizableLanguageContent<Content>\n) => TranslationContent<Content> = tCore;\nconst getTranslationContent: <Content = string>(\n languageContent: CustomizableLanguageContent<Content>,\n locale: Locales\n) => Content = getTranslationCore;\nconst nest: <K extends DictionaryKeys>(\n dictionaryKey: K,\n path?: ValidDotPathsFor<K>\n) => NestedContent<K> = nestCore;\n\ntype Dictionary<T = undefined> = DictionaryCore<T, true>;\n/**\n * @deprecated Use `Dictionary<T>` instead.\n */\ntype DeclarationContent<T = undefined> = Dictionary<T>;\n\nexport {\n Locales,\n type Dictionary,\n type DeclarationContent,\n type IConfigLocales,\n t,\n getTranslationContent,\n nest,\n};\n\nexport {\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 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,SAAS,eAAe;AACxB;AAAA,EACE,kBAAkB;AAAA,EAClB,QAAQ;AAAA,EACR,KAAK;AAAA,OAOA;AAaP,MAAM,IAE6B;AACnC,MAAM,wBAGS;AACf,MAAM,OAGkB;AAkBxB;AAAA,EAGE;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,OACK;","names":[]}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ type Dictionary<T = undefined> = DictionaryCore<T, true>;
|
|
|
11
11
|
/**
|
|
12
12
|
* @deprecated Use `Dictionary<T>` instead.
|
|
13
13
|
*/
|
|
14
|
-
type DeclarationContent<T> = Dictionary<T>;
|
|
14
|
+
type DeclarationContent<T = undefined> = Dictionary<T>;
|
|
15
15
|
export { Locales, type Dictionary, type DeclarationContent, type IConfigLocales, t, getTranslationContent, nest, };
|
|
16
16
|
export { type CustomIntlayerConfig as IntlayerConfig, type LocalesValues, getConfiguration, } from '@intlayer/config/client';
|
|
17
17
|
export { type LanguageContent, type ContentNode, getLocaleName, enu, cond, md, getEnumeration, getDictionary, getIntlayer, getIntlayerAsync, getTranslation, getNesting, getLocaleLang, getHTMLTextDir, getPathWithoutLocale, getMultilingualUrls, getLocalizedUrl, localeList, } from '@intlayer/core';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAIL,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,uBAAuB,EAC5B,KAAK,UAAU,IAAI,cAAc,EACjC,KAAK,gBAAgB,EACtB,MAAM,gBAAgB,CAAC;AAExB,UAAU,cAAc,CAAC,OAAO;CAE/B;AAED,KAAK,aAAa,GAAG,MAAM,cAAc,CAAC,OAAO,CAAC,CAAC;AAEnD,KAAK,2BAA2B,CAAC,OAAO,GAAG,MAAM,IAAI,aAAa,SAAS,KAAK,GAC5E,uBAAuB,CAAC,OAAO,CAAC,GAChC,cAAc,CAAC,OAAO,CAAC,CAAC;AAG5B,QAAA,MAAM,CAAC,EAAE,CAAC,OAAO,GAAG,MAAM,EACxB,OAAO,EAAE,2BAA2B,CAAC,OAAO,CAAC,KAC1C,kBAAkB,CA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5C,eAAe,EAAE,2BAA2B,CAAC,OAAO,CAAC,EACrD,MAAM,EAAE,OAAO,KACZ,OAA4B,CAAC;AAClC,QAAA,MAAM,IAAI,EAAE,CAAC,CAAC,SAAS,cAAc,EACnC,aAAa,EAAE,CAAC,EAChB,IAAI,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,KACvB,aAAa,CAAC,CAAC,CAAY,CAAC;AAEjC,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,OAAO,EACL,OAAO,EACP,KAAK,UAAU,EACf,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,CAAC,EACD,qBAAqB,EACrB,IAAI,GACL,CAAC;AAEF,OAAO,EACL,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,aAAa,EACb,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,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.1",
|
|
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/
|
|
62
|
-
"@intlayer/
|
|
63
|
-
"@intlayer/core": "^5.0.
|
|
61
|
+
"@intlayer/cli": "5.0.1",
|
|
62
|
+
"@intlayer/config": "5.0.1",
|
|
63
|
+
"@intlayer/core": "^5.0.1"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@changesets/changelog-github": "0.5.0",
|
|
@@ -75,14 +75,14 @@
|
|
|
75
75
|
"tsup": "^8.3.5",
|
|
76
76
|
"typescript": "^5.7.3",
|
|
77
77
|
"@utils/eslint-config": "1.0.4",
|
|
78
|
+
"@utils/tsup-config": "1.0.4",
|
|
78
79
|
"@utils/ts-config": "1.0.4",
|
|
79
|
-
"@utils/ts-config-types": "1.0.4"
|
|
80
|
-
"@utils/tsup-config": "1.0.4"
|
|
80
|
+
"@utils/ts-config-types": "1.0.4"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
|
-
"@intlayer/cli": "5.0.
|
|
84
|
-
"@intlayer/config": "5.0.
|
|
85
|
-
"@intlayer/core": "^5.0.
|
|
83
|
+
"@intlayer/cli": "5.0.1",
|
|
84
|
+
"@intlayer/config": "5.0.1",
|
|
85
|
+
"@intlayer/core": "^5.0.1"
|
|
86
86
|
},
|
|
87
87
|
"engines": {
|
|
88
88
|
"node": ">=14.18"
|