@intlayer/core 5.0.1 → 5.0.3
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/dictionaryManipulator/getSectionType.cjs.map +1 -1
- package/dist/cjs/interpreter/getContent/getContent.cjs.map +1 -1
- package/dist/cjs/interpreter/getContent/plugins.cjs.map +1 -1
- package/dist/cjs/interpreter/getDictionary.cjs.map +1 -1
- package/dist/cjs/interpreter/getIntlayer.cjs.map +1 -1
- package/dist/cjs/interpreter/getIntlayerAsync.cjs.map +1 -1
- package/dist/cjs/interpreter/getNesting.cjs.map +1 -1
- package/dist/cjs/interpreter/getTranslation.cjs.map +1 -1
- package/dist/cjs/localization/getHTMLTextDir.cjs.map +1 -1
- package/dist/cjs/localization/getLocaleLang.cjs.map +1 -1
- package/dist/cjs/localization/getLocaleName.cjs.map +1 -1
- package/dist/cjs/localization/getLocalizedUrl.cjs.map +1 -1
- package/dist/cjs/localization/getMultilingualUrls.cjs.map +1 -1
- package/dist/cjs/localization/getPathWithoutLocale.cjs.map +1 -1
- package/dist/cjs/transpiler/condition/condition.cjs +1 -4
- package/dist/cjs/transpiler/condition/condition.cjs.map +1 -1
- package/dist/cjs/transpiler/enumeration/enumeration.cjs +1 -4
- package/dist/cjs/transpiler/enumeration/enumeration.cjs.map +1 -1
- package/dist/cjs/transpiler/markdown/markdown.cjs +1 -4
- package/dist/cjs/transpiler/markdown/markdown.cjs.map +1 -1
- package/dist/cjs/transpiler/nesting/nesting.cjs +3 -6
- package/dist/cjs/transpiler/nesting/nesting.cjs.map +1 -1
- package/dist/cjs/transpiler/translation/translation.cjs +1 -4
- package/dist/cjs/transpiler/translation/translation.cjs.map +1 -1
- package/dist/cjs/transpiler/translation/types.cjs.map +1 -1
- package/dist/cjs/types/dictionary.cjs.map +1 -1
- package/dist/cjs/types/nodeType.cjs +8 -2
- package/dist/cjs/types/nodeType.cjs.map +1 -1
- package/dist/esm/dictionaryManipulator/getSectionType.mjs.map +1 -1
- package/dist/esm/interpreter/getContent/getContent.mjs +3 -1
- package/dist/esm/interpreter/getContent/getContent.mjs.map +1 -1
- package/dist/esm/interpreter/getContent/plugins.mjs.map +1 -1
- package/dist/esm/interpreter/getDictionary.mjs.map +1 -1
- package/dist/esm/interpreter/getIntlayer.mjs.map +1 -1
- package/dist/esm/interpreter/getIntlayerAsync.mjs.map +1 -1
- package/dist/esm/interpreter/getNesting.mjs.map +1 -1
- package/dist/esm/interpreter/getTranslation.mjs.map +1 -1
- package/dist/esm/localization/getHTMLTextDir.mjs.map +1 -1
- package/dist/esm/localization/getLocaleLang.mjs.map +1 -1
- package/dist/esm/localization/getLocaleName.mjs.map +1 -1
- package/dist/esm/localization/getLocalizedUrl.mjs.map +1 -1
- package/dist/esm/localization/getMultilingualUrls.mjs.map +1 -1
- package/dist/esm/localization/getPathWithoutLocale.mjs +3 -1
- package/dist/esm/localization/getPathWithoutLocale.mjs.map +1 -1
- package/dist/esm/transpiler/condition/condition.mjs +5 -5
- package/dist/esm/transpiler/condition/condition.mjs.map +1 -1
- package/dist/esm/transpiler/enumeration/enumeration.mjs +2 -5
- package/dist/esm/transpiler/enumeration/enumeration.mjs.map +1 -1
- package/dist/esm/transpiler/markdown/markdown.mjs +5 -5
- package/dist/esm/transpiler/markdown/markdown.mjs.map +1 -1
- package/dist/esm/transpiler/nesting/nesting.mjs +7 -7
- package/dist/esm/transpiler/nesting/nesting.mjs.map +1 -1
- package/dist/esm/transpiler/translation/translation.mjs +2 -5
- package/dist/esm/transpiler/translation/translation.mjs.map +1 -1
- package/dist/esm/types/nodeType.mjs +6 -1
- package/dist/esm/types/nodeType.mjs.map +1 -1
- package/dist/types/dictionaryManipulator/getSectionType.d.ts.map +1 -1
- package/dist/types/interpreter/getContent/getContent.d.ts +2 -2
- package/dist/types/interpreter/getContent/getContent.d.ts.map +1 -1
- package/dist/types/interpreter/getContent/plugins.d.ts +2 -2
- package/dist/types/interpreter/getContent/plugins.d.ts.map +1 -1
- package/dist/types/interpreter/getDictionary.d.ts +2 -2
- package/dist/types/interpreter/getDictionary.d.ts.map +1 -1
- package/dist/types/interpreter/getIntlayer.d.ts +2 -2
- package/dist/types/interpreter/getIntlayer.d.ts.map +1 -1
- package/dist/types/interpreter/getIntlayerAsync.d.ts +2 -2
- package/dist/types/interpreter/getIntlayerAsync.d.ts.map +1 -1
- package/dist/types/interpreter/getNesting.d.ts.map +1 -1
- package/dist/types/interpreter/getTranslation.d.ts +2 -2
- package/dist/types/interpreter/getTranslation.d.ts.map +1 -1
- package/dist/types/localization/getHTMLTextDir.d.ts +2 -2
- package/dist/types/localization/getHTMLTextDir.d.ts.map +1 -1
- package/dist/types/localization/getLocaleLang.d.ts +2 -2
- package/dist/types/localization/getLocaleLang.d.ts.map +1 -1
- package/dist/types/localization/getLocaleName.d.ts +2 -2
- package/dist/types/localization/getLocaleName.d.ts.map +1 -1
- package/dist/types/localization/getLocalizedUrl.d.ts +2 -2
- package/dist/types/localization/getLocalizedUrl.d.ts.map +1 -1
- package/dist/types/localization/getMultilingualUrls.d.ts +2 -2
- package/dist/types/localization/getMultilingualUrls.d.ts.map +1 -1
- package/dist/types/localization/getPathWithoutLocale.d.ts +2 -2
- package/dist/types/localization/getPathWithoutLocale.d.ts.map +1 -1
- package/dist/types/transpiler/condition/condition.d.ts +3 -13
- package/dist/types/transpiler/condition/condition.d.ts.map +1 -1
- package/dist/types/transpiler/enumeration/enumeration.d.ts +3 -24
- package/dist/types/transpiler/enumeration/enumeration.d.ts.map +1 -1
- package/dist/types/transpiler/markdown/markdown.d.ts +2 -5
- package/dist/types/transpiler/markdown/markdown.d.ts.map +1 -1
- package/dist/types/transpiler/nesting/nesting.d.ts +2 -5
- package/dist/types/transpiler/nesting/nesting.d.ts.map +1 -1
- package/dist/types/transpiler/translation/translation.d.ts +3 -2
- package/dist/types/transpiler/translation/translation.d.ts.map +1 -1
- package/dist/types/transpiler/translation/types.d.ts +7 -40
- package/dist/types/transpiler/translation/types.d.ts.map +1 -1
- package/dist/types/types/dictionary.d.ts +12 -14
- package/dist/types/types/dictionary.d.ts.map +1 -1
- package/dist/types/types/nodeType.d.ts +6 -0
- package/dist/types/types/nodeType.d.ts.map +1 -1
- package/package.json +11 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Locales } from '@intlayer/config/client';
|
|
1
|
+
import type { Locales, LocalesValues } from '@intlayer/config/client';
|
|
2
2
|
import { type DictionaryKeys, type KeyPath, NodeType } from '../../types/index';
|
|
3
3
|
import { type GetNestingResult } from '../getNesting';
|
|
4
4
|
/** ---------------------------------------------
|
|
@@ -23,7 +23,7 @@ export type TranslationCond<T, S> = T extends {
|
|
|
23
23
|
[NodeType.Translation]: object;
|
|
24
24
|
} ? DeepTransformContent<T[NodeType.Translation][keyof T[NodeType.Translation]], S> : never;
|
|
25
25
|
/** Translation plugin. Replaces node with a locale string if nodeType = Translation. */
|
|
26
|
-
export declare const translationPlugin: (locale:
|
|
26
|
+
export declare const translationPlugin: (locale: LocalesValues) => Plugins;
|
|
27
27
|
/** ---------------------------------------------
|
|
28
28
|
* ENUMERATION PLUGIN
|
|
29
29
|
* --------------------------------------------- */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../src/interpreter/getContent/plugins.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../src/interpreter/getContent/plugins.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAEtE,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAUhF,OAAO,EAAE,KAAK,gBAAgB,EAAc,MAAM,eAAe,CAAC;AAElE;;oDAEoD;AAEpD;;;;;;GAMG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BAAkB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Locales } from '@intlayer/config/client';
|
|
1
|
+
import type { Locales, LocalesValues } from '@intlayer/config/client';
|
|
2
2
|
import type { Dictionary } from '../types';
|
|
3
3
|
import type { Plugins, DeepTransformContent } from './getContent';
|
|
4
4
|
/**
|
|
@@ -9,5 +9,5 @@ import type { Plugins, DeepTransformContent } from './getContent';
|
|
|
9
9
|
* @param additionalPlugins An array of NodeTransformer that define how to transform recognized nodes.
|
|
10
10
|
* If omitted, we’ll use a default set of plugins.
|
|
11
11
|
*/
|
|
12
|
-
export declare const getDictionary: <T extends Dictionary, L extends
|
|
12
|
+
export declare const getDictionary: <T extends Dictionary, L extends LocalesValues = Locales>(dictionary: T, locale?: L, plugins?: Plugins[]) => DeepTransformContent<T["content"]>;
|
|
13
13
|
//# sourceMappingURL=getDictionary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDictionary.d.ts","sourceRoot":"","sources":["../../../src/interpreter/getDictionary.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"getDictionary.d.ts","sourceRoot":"","sources":["../../../src/interpreter/getDictionary.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,OAAO,KAAK,EAAE,OAAO,EAAa,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAE7E;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,GACxB,CAAC,SAAS,UAAU,EACpB,CAAC,SAAS,aAAa,wBAEX,CAAC,WACJ,CAAC,YACA,OAAO,EAAE,KAcP,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC,CAC9C,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { LocalesValues } from '@intlayer/config';
|
|
2
2
|
import type { DictionaryKeys } from '../types';
|
|
3
3
|
import { IntlayerDictionaryTypesConnector } from 'intlayer';
|
|
4
4
|
import type { DeepTransformContent, Plugins } from './getContent/plugins';
|
|
5
|
-
export declare const getIntlayer: <T extends DictionaryKeys, L extends
|
|
5
|
+
export declare const getIntlayer: <T extends DictionaryKeys, L extends LocalesValues>(key: T, locale?: L, plugins?: Plugins[]) => DeepTransformContent<IntlayerDictionaryTypesConnector[T]["content"]>;
|
|
6
6
|
//# sourceMappingURL=getIntlayer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getIntlayer.d.ts","sourceRoot":"","sources":["../../../src/interpreter/getIntlayer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getIntlayer.d.ts","sourceRoot":"","sources":["../../../src/interpreter/getIntlayer.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAOtD,OAAO,KAAK,EAAc,cAAc,EAAE,MAAM,UAAU,CAAC;AAG3D,OAAO,EAAE,gCAAgC,EAAE,MAAM,UAAU,CAAC;AAC5D,OAAO,KAAK,EAAE,oBAAoB,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE1E,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,cAAc,EAAE,CAAC,SAAS,aAAa,OACtE,CAAC,WACG,CAAC,YACA,OAAO,EAAE,KAYP,oBAAoB,CAC9B,gCAAgC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAEjD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { LocalesValues } from '@intlayer/config/client';
|
|
2
2
|
import type { DictionaryKeys } from '../types';
|
|
3
3
|
import type { Plugins } from './getContent';
|
|
4
4
|
/**
|
|
@@ -9,5 +9,5 @@ import type { Plugins } from './getContent';
|
|
|
9
9
|
*
|
|
10
10
|
* If the locale is not provided, it will use the locale from the client context
|
|
11
11
|
*/
|
|
12
|
-
export declare const getIntlayerAsync: <T extends DictionaryKeys, L extends
|
|
12
|
+
export declare const getIntlayerAsync: <T extends DictionaryKeys, L extends LocalesValues>(key: T, locale?: L, plugins?: Plugins[]) => Promise<any>;
|
|
13
13
|
//# sourceMappingURL=getIntlayerAsync.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getIntlayerAsync.d.ts","sourceRoot":"","sources":["../../../src/interpreter/getIntlayerAsync.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"getIntlayerAsync.d.ts","sourceRoot":"","sources":["../../../src/interpreter/getIntlayerAsync.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,GAC3B,CAAC,SAAS,cAAc,EACxB,CAAC,SAAS,aAAa,OAElB,CAAC,WACG,CAAC,YACA,OAAO,EAAE,iBASpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getNesting.d.ts","sourceRoot":"","sources":["../../../src/interpreter/getNesting.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getNesting.d.ts","sourceRoot":"","sources":["../../../src/interpreter/getNesting.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,KAAK,EACV,oBAAoB,EACpB,uBAAuB,EACvB,SAAS,EACV,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,gCAAgC,EAAE,MAAM,UAAU,CAAC;AAE5D,KAAK,UAAU,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,IAAI,MAAM,IAAI,EAAE,GACxD,CAAC,SAAS,MAAM,CAAC,GACf,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,GACtB,KAAK,GACP,CAAC,SAAS,MAAM,CAAC,GACf,CAAC,CAAC,CAAC,CAAC,GACJ,CAAC,CAAC;AAER,MAAM,MAAM,gBAAgB,CAC1B,CAAC,SAAS,cAAc,EACxB,CAAC,GAAG,SAAS,EACb,CAAC,GAAG,uBAAuB,IACzB,UAAU,CACZ,oBAAoB,CAAC,gCAAgC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,EACvE,CAAC,CACF,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,cAAc,EAAE,CAAC,iBACrC,CAAC,SACT,CAAC,SAAS,gBAAgB,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,UACxC,SAAS,KAChB,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAqBvB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type LocalesValues } from '@intlayer/config/client';
|
|
2
2
|
import type { LanguageContent } from '../transpiler/translation/types';
|
|
3
3
|
/**
|
|
4
4
|
*
|
|
@@ -21,5 +21,5 @@ import type { LanguageContent } from '../transpiler/translation/types';
|
|
|
21
21
|
* - this function will require each locale to be defined if defined in the project configuration.
|
|
22
22
|
* - If a locale is missing, it will make each existing locale optional and raise an error if the locale is not found.
|
|
23
23
|
*/
|
|
24
|
-
export declare const getTranslation: <Content = string>(languageContent: LanguageContent<Content>, locale?:
|
|
24
|
+
export declare const getTranslation: <Content = string>(languageContent: LanguageContent<Content>, locale?: LocalesValues) => Content;
|
|
25
25
|
//# sourceMappingURL=getTranslation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTranslation.d.ts","sourceRoot":"","sources":["../../../src/interpreter/getTranslation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"getTranslation.d.ts","sourceRoot":"","sources":["../../../src/interpreter/getTranslation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAoB,MAAM,yBAAyB,CAAC;AAC/E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAEvE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,cAAc,GAAI,OAAO,4BACnB,eAAe,CAAC,OAAO,CAAC,WAChC,aAAa,KACrB,OAYF,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type LocalesValues } from '@intlayer/config/client';
|
|
2
2
|
type Dir = 'ltr' | 'rtl' | 'auto';
|
|
3
3
|
/**
|
|
4
4
|
* Returns the text direction of the given locale.
|
|
@@ -13,6 +13,6 @@ type Dir = 'ltr' | 'rtl' | 'auto';
|
|
|
13
13
|
* @param locale The locale to get the text direction for.
|
|
14
14
|
* @returns The text direction of the given locale.
|
|
15
15
|
*/
|
|
16
|
-
export declare const getHTMLTextDir: (locale?:
|
|
16
|
+
export declare const getHTMLTextDir: (locale?: LocalesValues) => Dir;
|
|
17
17
|
export {};
|
|
18
18
|
//# sourceMappingURL=getHTMLTextDir.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getHTMLTextDir.d.ts","sourceRoot":"","sources":["../../../src/localization/getHTMLTextDir.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"getHTMLTextDir.d.ts","sourceRoot":"","sources":["../../../src/localization/getHTMLTextDir.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAEtE,KAAK,GAAG,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,CAAC;AAElC;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,cAAc,YAAa,aAAa,KAAG,GAsOvD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { LocalesValues } from '@intlayer/config/client';
|
|
2
2
|
/**
|
|
3
3
|
* Returns the language code of the given locale for locales including the country code.
|
|
4
4
|
*
|
|
@@ -12,5 +12,5 @@ import type { Locales } from '@intlayer/config/client';
|
|
|
12
12
|
* @param locale The locale to get the language code for.
|
|
13
13
|
* @returns The language code of the given locale.
|
|
14
14
|
*/
|
|
15
|
-
export declare const getLocaleLang: (locale?:
|
|
15
|
+
export declare const getLocaleLang: (locale?: LocalesValues) => string;
|
|
16
16
|
//# sourceMappingURL=getLocaleLang.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getLocaleLang.d.ts","sourceRoot":"","sources":["../../../src/localization/getLocaleLang.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"getLocaleLang.d.ts","sourceRoot":"","sources":["../../../src/localization/getLocaleLang.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE7D;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,aAAa,YAAa,aAAa,KAAG,MAC1B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type LocalesValues } from '@intlayer/config/client';
|
|
2
2
|
/**
|
|
3
3
|
* Given a displayLocale (the locale in which you want the name displayed)
|
|
4
4
|
* and a targetLocale (the locale whose name you want),
|
|
@@ -6,5 +6,5 @@ import { Locales } from '@intlayer/config/client';
|
|
|
6
6
|
*
|
|
7
7
|
* If no targetLocale is provided, the displayLocale's own name is returned.
|
|
8
8
|
*/
|
|
9
|
-
export declare const getLocaleName: (displayLocale:
|
|
9
|
+
export declare const getLocaleName: (displayLocale: LocalesValues, targetLocale?: LocalesValues) => string;
|
|
10
10
|
//# sourceMappingURL=getLocaleName.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getLocaleName.d.ts","sourceRoot":"","sources":["../../../src/localization/getLocaleName.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"getLocaleName.d.ts","sourceRoot":"","sources":["../../../src/localization/getLocaleName.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,aAAa,EAAE,MAAM,yBAAyB,CAAC;AA6PtE;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,kBACT,aAAa,iBACb,aAAa,KAC3B,MAWF,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type LocalesValues } from '@intlayer/config/client';
|
|
2
2
|
/**
|
|
3
3
|
* Generate URL by prefixing the given URL with the referenced locale.
|
|
4
4
|
* Handles both absolute and relative URLs appropriately.
|
|
@@ -26,5 +26,5 @@ import { Locales } from '@intlayer/config/client';
|
|
|
26
26
|
* @param prefixDefault - Whether to prefix the default locale. Defaults to `prefixDefaultDefault`.
|
|
27
27
|
* @returns An object mapping each locale to its corresponding multilingual URL.
|
|
28
28
|
*/
|
|
29
|
-
export declare const getLocalizedUrl: (url: string, currentLocale:
|
|
29
|
+
export declare const getLocalizedUrl: (url: string, currentLocale: LocalesValues, locales?: LocalesValues[], defaultLocale?: LocalesValues, prefixDefault?: boolean) => string;
|
|
30
30
|
//# sourceMappingURL=getLocalizedUrl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getLocalizedUrl.d.ts","sourceRoot":"","sources":["../../../src/localization/getLocalizedUrl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,
|
|
1
|
+
{"version":3,"file":"getLocalizedUrl.d.ts","sourceRoot":"","sources":["../../../src/localization/getLocalizedUrl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAS/E;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,eAAe,QACrB,MAAM,iBACI,aAAa,YACnB,aAAa,EAAE,kBACT,aAAa,kBACb,OAAO,KACrB,MAYF,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type LocalesValues } from '@intlayer/config/client';
|
|
2
2
|
import type { IConfigLocales } from 'intlayer';
|
|
3
3
|
/**
|
|
4
4
|
* Generates multilingual URLs by prefixing the given URL with each supported locale.
|
|
@@ -21,5 +21,5 @@ import type { IConfigLocales } from 'intlayer';
|
|
|
21
21
|
* @param prefixDefault - Whether to prefix the default locale. Defaults to `prefixDefaultDefault`.
|
|
22
22
|
* @returns An object mapping each locale to its corresponding multilingual URL.
|
|
23
23
|
*/
|
|
24
|
-
export declare const getMultilingualUrls: (url: string, locales?:
|
|
24
|
+
export declare const getMultilingualUrls: (url: string, locales?: LocalesValues[], defaultLocale?: LocalesValues, prefixDefault?: boolean) => IConfigLocales<string>;
|
|
25
25
|
//# sourceMappingURL=getMultilingualUrls.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getMultilingualUrls.d.ts","sourceRoot":"","sources":["../../../src/localization/getMultilingualUrls.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,
|
|
1
|
+
{"version":3,"file":"getMultilingualUrls.d.ts","sourceRoot":"","sources":["../../../src/localization/getMultilingualUrls.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE/E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAU/C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,mBAAmB,QACzB,MAAM,YACF,aAAa,EAAE,kBACT,aAAa,kBACb,OAAO,KACrB,cAAc,CAAC,MAAM,CAwDvB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type LocalesValues } from '@intlayer/config/client';
|
|
2
2
|
/**
|
|
3
3
|
* Removes the locale segment from the given URL or pathname if present.
|
|
4
4
|
*
|
|
@@ -20,5 +20,5 @@ import { type Locales } from '@intlayer/config/client';
|
|
|
20
20
|
* @param locales - Optional array of supported locales. Defaults to `localesDefault`.
|
|
21
21
|
* @returns The URL string or pathname without the locale segment.
|
|
22
22
|
*/
|
|
23
|
-
export declare const getPathWithoutLocale: (inputUrl: string, locales?:
|
|
23
|
+
export declare const getPathWithoutLocale: (inputUrl: string, locales?: LocalesValues[]) => string;
|
|
24
24
|
//# sourceMappingURL=getPathWithoutLocale.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPathWithoutLocale.d.ts","sourceRoot":"","sources":["../../../src/localization/getPathWithoutLocale.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"getPathWithoutLocale.d.ts","sourceRoot":"","sources":["../../../src/localization/getPathWithoutLocale.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,aAAa,EACnB,MAAM,yBAAyB,CAAC;AAMjC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,oBAAoB,aACrB,MAAM,YACP,aAAa,EAAE,KACvB,MAuCF,CAAC"}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import { NodeType } from '../../types/index';
|
|
1
|
+
import { NodeType, type TypedNodeModel } from '../../types/index';
|
|
2
2
|
export type ConditionContentStates<Content> = Record<`${boolean}`, Content> & {
|
|
3
3
|
fallback?: Content;
|
|
4
4
|
};
|
|
5
|
-
export type ConditionContent<Content = unknown> =
|
|
6
|
-
nodeType: NodeType.Condition;
|
|
7
|
-
[NodeType.Condition]: ConditionContentStates<Content>;
|
|
8
|
-
};
|
|
5
|
+
export type ConditionContent<Content = unknown> = TypedNodeModel<NodeType.Condition, ConditionContentStates<Content>>;
|
|
9
6
|
/**
|
|
10
7
|
* Function intended to be used to build intlayer dictionaries.
|
|
11
8
|
*
|
|
@@ -23,13 +20,6 @@ export type ConditionContent<Content = unknown> = {
|
|
|
23
20
|
* The last key provided will be used as the fallback value.
|
|
24
21
|
*
|
|
25
22
|
*/
|
|
26
|
-
declare const condition: <Content>(content?: ConditionContentStates<Content>) =>
|
|
27
|
-
nodeType: NodeType;
|
|
28
|
-
condition: {
|
|
29
|
-
false: Content;
|
|
30
|
-
true: Content;
|
|
31
|
-
fallback?: Content;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
23
|
+
declare const condition: <Content>(content?: ConditionContentStates<Content>) => TypedNodeModel<NodeType.Condition, ConditionContentStates<Content>>;
|
|
34
24
|
export { condition as cond };
|
|
35
25
|
//# sourceMappingURL=condition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"condition.d.ts","sourceRoot":"","sources":["../../../../src/transpiler/condition/condition.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"condition.d.ts","sourceRoot":"","sources":["../../../../src/transpiler/condition/condition.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EACR,KAAK,cAAc,EACpB,MAAM,mBAAmB,CAAC;AAE3B,MAAM,MAAM,sBAAsB,CAAC,OAAO,IAAI,MAAM,CAAC,GAAG,OAAO,EAAE,EAAE,OAAO,CAAC,GAAG;IAC5E,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,gBAAgB,CAAC,OAAO,GAAG,OAAO,IAAI,cAAc,CAC9D,QAAQ,CAAC,SAAS,EAClB,sBAAsB,CAAC,OAAO,CAAC,CAChC,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,QAAA,MAAM,SAAS,GAAI,OAAO,YAAY,sBAAsB,CAAC,OAAO,CAAC,wEACxB,CAAC;AAE9C,OAAO,EAAE,SAAS,IAAI,IAAI,EAAE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NodeType } from '../../types/index';
|
|
1
|
+
import { NodeType, TypedNodeModel } from '../../types/index';
|
|
2
2
|
type Positif = number | `${number}`;
|
|
3
3
|
type Negatif = `-${number}`;
|
|
4
4
|
type Numbers = Positif | Negatif;
|
|
@@ -12,10 +12,7 @@ export type EnterFormat = Equal | EqualString | Superior | SuperiorOrEqual | Inf
|
|
|
12
12
|
export type EnumerationContentState<Content> = Partial<Record<EnterFormat, Content>> & {
|
|
13
13
|
fallback?: Content;
|
|
14
14
|
};
|
|
15
|
-
export type EnumerationContent<Content = unknown> =
|
|
16
|
-
nodeType: NodeType.Enumeration;
|
|
17
|
-
[NodeType.Enumeration]: EnumerationContentState<Content>;
|
|
18
|
-
};
|
|
15
|
+
export type EnumerationContent<Content = unknown> = TypedNodeModel<NodeType.Enumeration, EnumerationContentState<Content>>;
|
|
19
16
|
/**
|
|
20
17
|
* Function intended to be used to build intlayer dictionaries.
|
|
21
18
|
*
|
|
@@ -35,24 +32,6 @@ export type EnumerationContent<Content = unknown> = {
|
|
|
35
32
|
* > The order of the keys will define the priority of the content.
|
|
36
33
|
*
|
|
37
34
|
*/
|
|
38
|
-
declare const enumeration: <Content>(content?: EnumerationContentState<Content>) =>
|
|
39
|
-
nodeType: NodeType;
|
|
40
|
-
enumeration: {
|
|
41
|
-
[x: number]: Content;
|
|
42
|
-
[x: `${number}`]: Content;
|
|
43
|
-
[x: `-${number}`]: Content;
|
|
44
|
-
[x: `=${number}`]: Content;
|
|
45
|
-
[x: `=-${number}`]: Content;
|
|
46
|
-
[x: `>${number}`]: Content;
|
|
47
|
-
[x: `>-${number}`]: Content;
|
|
48
|
-
[x: `>=${number}`]: Content;
|
|
49
|
-
[x: `>=-${number}`]: Content;
|
|
50
|
-
[x: `<${number}`]: Content;
|
|
51
|
-
[x: `<-${number}`]: Content;
|
|
52
|
-
[x: `<=${number}`]: Content;
|
|
53
|
-
[x: `<=-${number}`]: Content;
|
|
54
|
-
fallback?: Content;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
35
|
+
declare const enumeration: <Content>(content?: EnumerationContentState<Content>) => TypedNodeModel<NodeType.Enumeration, EnumerationContentState<Content>>;
|
|
57
36
|
export { enumeration as enu };
|
|
58
37
|
//# sourceMappingURL=enumeration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enumeration.d.ts","sourceRoot":"","sources":["../../../../src/transpiler/enumeration/enumeration.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"enumeration.d.ts","sourceRoot":"","sources":["../../../../src/transpiler/enumeration/enumeration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,QAAQ,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAE7E,KAAK,OAAO,GAAG,MAAM,GAAG,GAAG,MAAM,EAAE,CAAC;AACpC,KAAK,OAAO,GAAG,IAAI,MAAM,EAAE,CAAC;AAC5B,KAAK,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;AAEjC,KAAK,KAAK,GAAG,OAAO,CAAC;AACrB,KAAK,WAAW,GAAG,IAAI,OAAO,EAAE,CAAC;AACjC,KAAK,QAAQ,GAAG,IAAI,OAAO,EAAE,CAAC;AAC9B,KAAK,eAAe,GAAG,KAAK,OAAO,EAAE,CAAC;AACtC,KAAK,QAAQ,GAAG,IAAI,OAAO,EAAE,CAAC;AAC9B,KAAK,eAAe,GAAG,KAAK,OAAO,EAAE,CAAC;AAEtC,MAAM,MAAM,WAAW,GACnB,KAAK,GACL,WAAW,GACX,QAAQ,GACR,eAAe,GACf,QAAQ,GACR,eAAe,CAAC;AAEpB,MAAM,MAAM,uBAAuB,CAAC,OAAO,IAAI,OAAO,CACpD,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAC7B,GAAG;IACF,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,kBAAkB,CAAC,OAAO,GAAG,OAAO,IAAI,cAAc,CAChE,QAAQ,CAAC,WAAW,EACpB,uBAAuB,CAAC,OAAO,CAAC,CACjC,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,QAAA,MAAM,WAAW,GAAI,OAAO,YAAY,uBAAuB,CAAC,OAAO,CAAC,2EACzB,CAAC;AAEhD,OAAO,EAAE,WAAW,IAAI,GAAG,EAAE,CAAC"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import { NodeType } from '../../types/index';
|
|
1
|
+
import { NodeType, type TypedNodeModel } from '../../types/index';
|
|
2
2
|
export type MarkdownContentState = string;
|
|
3
|
-
export type MarkdownContent =
|
|
4
|
-
nodeType: NodeType.Markdown;
|
|
5
|
-
[NodeType.Markdown]: MarkdownContentState;
|
|
6
|
-
};
|
|
3
|
+
export type MarkdownContent = TypedNodeModel<NodeType.Markdown, MarkdownContentState>;
|
|
7
4
|
/**
|
|
8
5
|
* Function intended to be used to build intlayer dictionaries.
|
|
9
6
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../../../src/transpiler/markdown/markdown.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../../../src/transpiler/markdown/markdown.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EACR,KAAK,cAAc,EACpB,MAAM,mBAAmB,CAAC;AAE3B,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC;AAE1C,MAAM,MAAM,eAAe,GAAG,cAAc,CAC1C,QAAQ,CAAC,QAAQ,EACjB,oBAAoB,CACrB,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,QAAQ,YAAa,MAAM,KAAG,eACQ,CAAC;AAE7C,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IntlayerDictionaryTypesConnector } from 'intlayer';
|
|
2
2
|
import type { DictionaryKeys } from '../../types/dictionary';
|
|
3
|
-
import { NodeType } from '../../types/index';
|
|
3
|
+
import { NodeType, type TypedNodeModel } from '../../types/index';
|
|
4
4
|
import type { DeepTransformContent } from '../../interpreter';
|
|
5
5
|
/**
|
|
6
6
|
* Recursively builds dot-notation strings for all valid paths in T.
|
|
@@ -30,10 +30,7 @@ export type NestedContentState<K extends DictionaryKeys> = {
|
|
|
30
30
|
*/
|
|
31
31
|
path?: ValidDotPathsFor<K>;
|
|
32
32
|
};
|
|
33
|
-
export type NestedContent<K extends DictionaryKeys = never> =
|
|
34
|
-
nodeType: NodeType.Nested;
|
|
35
|
-
[NodeType.Nested]: NestedContentState<K>;
|
|
36
|
-
};
|
|
33
|
+
export type NestedContent<K extends DictionaryKeys = never> = TypedNodeModel<NodeType.Nested, NestedContentState<K>>;
|
|
37
34
|
/**
|
|
38
35
|
* Function intended to be used to build intlayer dictionaries.
|
|
39
36
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nesting.d.ts","sourceRoot":"","sources":["../../../../src/transpiler/nesting/nesting.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,UAAU,CAAC;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,
|
|
1
|
+
{"version":3,"file":"nesting.d.ts","sourceRoot":"","sources":["../../../../src/transpiler/nesting/nesting.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,UAAU,CAAC;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAEL,QAAQ,EACR,KAAK,cAAc,EACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KA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Ac,CAC1E,QAAQ,CAAC,MAAM,EACf,kBAAkB,CAAC,CAAC,CAAC,CACtB,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,OAAO,GAAI,CAAC,SAAS,cAAc,iBACxB,CAAC,SACT,gBAAgB,CAAC,CAAC,CAAC,KACzB,aAAa,CAAC,CAAC,CAId,CAAC;AAEL,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { NodeType } from '../../types/index';
|
|
2
|
+
import type { LanguageContent } from './types';
|
|
2
3
|
/**
|
|
3
4
|
*
|
|
4
5
|
* Function intended to be used to build intlayer dictionaries.
|
|
@@ -19,6 +20,6 @@ import type { LanguageContent, TranslationContent } from './types';
|
|
|
19
20
|
* - this function require each locale to be defined if defined in the project configuration.
|
|
20
21
|
* - If a locale is missing, it will make each existing locale optional and raise an error if the locale is not found.
|
|
21
22
|
*/
|
|
22
|
-
declare const translation: <Content =
|
|
23
|
+
declare const translation: <Content = unknown, ContentRecord extends LanguageContent<Content> = import("intlayer").IConfigLocales<Content>>(content: ContentRecord) => import("../..").TypedNodeModel<NodeType.Translation, ContentRecord>;
|
|
23
24
|
export { translation as t };
|
|
24
25
|
//# sourceMappingURL=translation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translation.d.ts","sourceRoot":"","sources":["../../../../src/transpiler/translation/translation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"translation.d.ts","sourceRoot":"","sources":["../../../../src/transpiler/translation/translation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAsB,MAAM,SAAS,CAAC;AAEnE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,QAAA,MAAM,WAAW,GACf,OAAO,YACP,aAAa,SAAS,eAAe,CAAC,OAAO,CAAC,wDAErC,aAAa,wEAKrB,CAAC;AAEJ,OAAO,EAAE,WAAW,IAAI,CAAC,EAAE,CAAC"}
|
|
@@ -1,61 +1,28 @@
|
|
|
1
1
|
/** @ts-nocheck */
|
|
2
2
|
import type { LocalesValues } from '@intlayer/config/client';
|
|
3
3
|
import type { IConfigLocales } from 'intlayer';
|
|
4
|
-
import
|
|
4
|
+
import { NodeType, TypedNodeModel } from '../../types/index';
|
|
5
5
|
/**
|
|
6
6
|
* If module augmented, it will return the configured locales such as Locales.ENGLISH | Locales.FRENCH | Locales.SPANISH | ...
|
|
7
7
|
* If not, it will return never
|
|
8
8
|
*/
|
|
9
9
|
export type ConfigLocales = keyof IConfigLocales<unknown>;
|
|
10
|
-
/**
|
|
11
|
-
* If module augmented, it will return the configured locales such as Locales.ENGLISH | Locales.FRENCH | Locales.SPANISH | ...
|
|
12
|
-
* If not, it will return all available locales such as Locales.ENGLISH | Locales.FRENCH | Locales.SPANISH | ...
|
|
13
|
-
*/
|
|
14
|
-
export type CustomLocales = ConfigLocales extends never ? LocalesValues : ConfigLocales;
|
|
15
10
|
/**
|
|
16
11
|
* Record of locales and content
|
|
17
12
|
*
|
|
18
|
-
* const myVar1:
|
|
13
|
+
* const myVar1: TranslationContentState<string> = {
|
|
19
14
|
* "en": "",
|
|
20
15
|
* "fr": ""
|
|
21
16
|
* }
|
|
22
17
|
*
|
|
23
|
-
* const myVar2:
|
|
18
|
+
* const myVar2: TranslationContentState<{age: number, name: string}> = {
|
|
24
19
|
* "en": {age: 1, name: "test"},
|
|
25
20
|
* "fr": {age: 1, name: "test"}
|
|
26
21
|
* }
|
|
27
22
|
*/
|
|
28
|
-
export type TranslationContentState<Content = unknown> =
|
|
29
|
-
|
|
30
|
-
* Valid
|
|
31
|
-
* const test: CustomizableLanguageContent<string, Locales.ENGLISH | Locales.FRENCH> = {
|
|
32
|
-
* "en": "test",
|
|
33
|
-
* "fr": "test"
|
|
34
|
-
* }
|
|
35
|
-
*
|
|
36
|
-
* const test: CustomizableLanguageContent<number> = {
|
|
37
|
-
* "fr": 1,
|
|
38
|
-
* "en": 1,
|
|
39
|
-
* ... any other available locale
|
|
40
|
-
* }
|
|
41
|
-
*
|
|
42
|
-
* Invalid
|
|
43
|
-
*
|
|
44
|
-
* const test: CustomizableLanguageContent<string> = {
|
|
45
|
-
* "en": "test",
|
|
46
|
-
* "fr": "test",
|
|
47
|
-
* "sss": "test" // Does not exist in Locales
|
|
48
|
-
* }
|
|
49
|
-
*
|
|
50
|
-
* const test: CustomizableLanguageContent<string, Locales.ENGLISH | Locales.FRENCH> = {
|
|
51
|
-
* "fr": "test"
|
|
52
|
-
* // Locales.ENGLISH is missing
|
|
53
|
-
* }
|
|
54
|
-
*
|
|
55
|
-
*/
|
|
56
|
-
export type LanguageContent<Content = string> = ConfigLocales extends never ? IConfigLocales<Content> : TranslationContentState<Content>;
|
|
57
|
-
export type TranslationContent<Content = unknown> = {
|
|
58
|
-
nodeType: NodeType.Translation;
|
|
59
|
-
[NodeType.Translation]: LanguageContent<Content>;
|
|
23
|
+
export type TranslationContentState<Content = unknown> = {
|
|
24
|
+
[locale in LocalesValues]?: Content;
|
|
60
25
|
};
|
|
26
|
+
export type LanguageContent<Content = unknown> = keyof IConfigLocales<unknown> extends never ? TranslationContentState<Content> : IConfigLocales<Content>;
|
|
27
|
+
export type TranslationContent<Content = unknown, RecordContent extends LanguageContent<Content> = LanguageContent<Content>> = TypedNodeModel<NodeType.Translation, RecordContent>;
|
|
61
28
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/transpiler/translation/types.ts"],"names":[],"mappings":"AAAA,kBAAkB;AAElB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/transpiler/translation/types.ts"],"names":[],"mappings":"AAAA,kBAAkB;AAElB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAE7D;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,cAAc,CAAC,OAAO,CAAC,CAAC;AAE1D;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,uBAAuB,CAAC,OAAO,GAAG,OAAO,IAAI;KACtD,MAAM,IAAI,aAAa,CAAC,CAAC,EAAE,OAAO;CACpC,CAAC;AAEF,MAAM,MAAM,eAAe,CAAC,OAAO,GAAG,OAAO,IAC3C,MAAM,cAAc,CAAC,OAAO,CAAC,SAAS,KAAK,GACvC,uBAAuB,CAAC,OAAO,CAAC,GAChC,cAAc,CAAC,OAAO,CAAC,CAAC;AAE9B,MAAM,MAAM,kBAAkB,CAC5B,OAAO,GAAG,OAAO,EACjB,aAAa,SAAS,eAAe,CAAC,OAAO,CAAC,GAAG,eAAe,CAAC,OAAO,CAAC,IACvE,cAAc,CAAC,QAAQ,CAAC,WAAW,EAAE,aAAa,CAAC,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { IntlayerDictionaryTypesConnector } from 'intlayer';
|
|
2
2
|
import type { ConditionContent, EnumerationContent, MarkdownContent, NestedContent, TranslationContent } from '../transpiler/index';
|
|
3
3
|
/**
|
|
4
|
-
* Provides a fallback to string type if the generic type T is
|
|
4
|
+
* Provides a fallback to string type if the generic type T is undefined,
|
|
5
5
|
* otherwise returns T. This is useful for handling cases where no keys are found.
|
|
6
|
-
* Example: StringFallback<
|
|
6
|
+
* Example: StringFallback<undefined> -> string; StringFallback<'key'> -> 'key'
|
|
7
7
|
*/
|
|
8
|
-
export type StringFallback<T> = T extends
|
|
8
|
+
export type StringFallback<T> = T extends undefined ? string : T;
|
|
9
9
|
/**
|
|
10
10
|
* Represents the keys of the IntlayerDictionaryTypesConnector,
|
|
11
11
|
* ensuring they are valid dictionary keys or fallback to string if none exist.
|
|
@@ -18,18 +18,16 @@ export type StringFallback<T> = T extends never ? string : T;
|
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
20
|
export type DictionaryKeys = StringFallback<keyof IntlayerDictionaryTypesConnector>;
|
|
21
|
-
export type TypedNode<NodeType =
|
|
22
|
-
|
|
23
|
-
export type
|
|
24
|
-
export type ContentNode<NodeType = never, FetchableNode = false> = NodeType | TypedNode<NodeType> | {
|
|
25
|
-
[paramKey: string | number]: ContentNode<NodeType[keyof NodeType]>;
|
|
26
|
-
} | ((args?: any) => ContentNode<NodeType>) | (FetchableNode extends true ? FetchableContentNode<NodeType> : never);
|
|
21
|
+
export type TypedNode<NodeType = undefined> = TranslationContent<NodeType> | EnumerationContent<NodeType> | ConditionContent<NodeType> | MarkdownContent | NestedContent<DictionaryKeys>;
|
|
22
|
+
type FetchableContentNode<NodeType> = (args?: any) => ContentNode<NodeType> | Promise<ContentNode<NodeType>>;
|
|
23
|
+
export type ContentNode<NodeType = undefined, FetchableNode = false> = NodeType | TypedNode<NodeType> | ((args?: any) => ContentNode<NodeType>) | (FetchableNode extends true ? FetchableContentNode<NodeType> : undefined);
|
|
27
24
|
type IsArray<T> = T extends any[] ? true : false;
|
|
28
|
-
type ReplaceContentValueArray<T> = T extends (infer U)[] ? ReplaceContentValue<U>[] : ReplaceContentValue<T>;
|
|
29
|
-
type
|
|
30
|
-
[
|
|
25
|
+
type ReplaceContentValueArray<T, FetchableNode> = T extends (infer U)[] ? ReplaceContentValue<U, FetchableNode>[] : ReplaceContentValue<T, FetchableNode>;
|
|
26
|
+
type ReplaceContentValueObject<T, FetchableNode> = {
|
|
27
|
+
[K in keyof T]: ReplaceContentValue<T[K], FetchableNode>;
|
|
31
28
|
};
|
|
32
|
-
|
|
29
|
+
type ReplaceContentValue<NodeType, FetchableNode = true> = NodeType extends object ? IsArray<NodeType> extends true ? ReplaceContentValueArray<NodeType, FetchableNode> : ContentNode<NodeType, FetchableNode> | ReplaceContentValueObject<NodeType, FetchableNode> : ContentNode<NodeType, FetchableNode>;
|
|
30
|
+
export type Dictionary<ContentType = undefined, FetchableNode = false> = {
|
|
33
31
|
$schema?: string;
|
|
34
32
|
key: string;
|
|
35
33
|
title?: string;
|
|
@@ -38,7 +36,7 @@ export type Dictionary<NodeType = undefined, FetchableNode = false> = {
|
|
|
38
36
|
version?: string;
|
|
39
37
|
filePath?: string;
|
|
40
38
|
tags?: string[];
|
|
41
|
-
content:
|
|
39
|
+
content: ContentType extends undefined ? any : ReplaceContentValue<ContentType, FetchableNode> | ContentType;
|
|
42
40
|
};
|
|
43
41
|
export {};
|
|
44
42
|
//# sourceMappingURL=dictionary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dictionary.d.ts","sourceRoot":"","sources":["../../../src/types/dictionary.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gCAAgC,EAAE,MAAM,UAAU,CAAC;AAC5D,OAAO,KAAK,EACV,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,aAAa,EACb,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAE7B;;;;GAIG;AACH,MAAM,MAAM,cAAc,CAAC,CAAC,IAAI,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"dictionary.d.ts","sourceRoot":"","sources":["../../../src/types/dictionary.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gCAAgC,EAAE,MAAM,UAAU,CAAC;AAC5D,OAAO,KAAK,EACV,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,aAAa,EACb,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAE7B;;;;GAIG;AACH,MAAM,MAAM,cAAc,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,MAAM,GAAG,CAAC,C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IAAI,IAClB,QAAQ,SAAS,MAAM,GACvB,OAAO,CAAC,QAAQ,CAAC,SAAS,IAAI,GAC5B,wBAAwB,CAAC,QAAQ,EAAE,aAAa,CAAC,GAE7C,WAAW,CAAC,QAAQ,EAAE,aAAa,CAAC,GACpC,yBAAyB,CAAC,QAAQ,EAAE,aAAa,CAAC,GACxD,WAAW,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;AAEzC,MAAM,MAAM,UAAU,CAAC,WAAW,GAAG,SAAS,EAAE,aAAa,GAAG,KAAK,IAAI;IACvE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,OAAO,EAAE,WAAW,SAAS,SAAS,GAClC,GAAG,GACH,mBAAmB,CAAC,WAAW,EAAE,aAAa,CAAC,GAAG,WAAW,CAAC;CACnE,CAAC"}
|
|
@@ -9,4 +9,10 @@ export declare enum NodeType {
|
|
|
9
9
|
ReactNode = "reactNode",
|
|
10
10
|
Markdown = "markdown"
|
|
11
11
|
}
|
|
12
|
+
export type TypedNodeModel<T extends NodeType, Content> = {
|
|
13
|
+
nodeType: T | `${T}`;
|
|
14
|
+
} & {
|
|
15
|
+
[K in T]: Content;
|
|
16
|
+
};
|
|
17
|
+
export declare const formatNodeType: <T extends NodeType, Content = any>(nodeType: T | `${T}`, content: Content) => TypedNodeModel<T, Content>;
|
|
12
18
|
//# sourceMappingURL=nodeType.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nodeType.d.ts","sourceRoot":"","sources":["../../../src/types/nodeType.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"nodeType.d.ts","sourceRoot":"","sources":["../../../src/types/nodeType.ts"],"names":[],"mappings":"AACA,oBAAY,QAAQ;IAClB,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,QAAQ,aAAa;CACtB;AAED,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,QAAQ,EAAE,OAAO,IAAI;IACxD,QAAQ,EAAE,CAAC,GAAG,GAAG,CAAC,EAAE,CAAC;CACtB,GAAG;KACD,CAAC,IAAI,CAAC,GAAG,OAAO;CAClB,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,QAAQ,EAAE,OAAO,kBAC9C,CAAC,GAAG,GAAG,CAAC,EAAE,WACX,OAAO,KAKV,cAAc,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC"}
|