intlayer 8.11.1 → 8.11.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/cli/script.cjs +0 -1
- package/dist/cjs/cli/script.cjs.map +1 -1
- package/dist/cjs/index.cjs +19 -13
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.mjs +18 -10
- package/dist/esm/index.mjs.map +1 -1
- package/dist/types/index.d.ts +13 -10
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +6 -6
package/dist/cjs/cli/script.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"script.cjs","names":[],"sources":["../../../src/cli/script.ts"],"sourcesContent":["#!/usr/bin/env node\nimport { setAPI } from '@intlayer/cli';\n\nsetAPI();\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"script.cjs","names":[],"sources":["../../../src/cli/script.ts"],"sourcesContent":["#!/usr/bin/env node\nimport { setAPI } from '@intlayer/cli';\n\nsetAPI();\n"],"mappings":";;;;0BAGO"}
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -30,7 +30,6 @@ let _intlayer_types_allLocales = require("@intlayer/types/allLocales");
|
|
|
30
30
|
let _intlayer_types_locales = require("@intlayer/types/locales");
|
|
31
31
|
_intlayer_types_locales = __toESM(_intlayer_types_locales);
|
|
32
32
|
let _intlayer_config_built = require("@intlayer/config/built");
|
|
33
|
-
_intlayer_config_built = __toESM(_intlayer_config_built);
|
|
34
33
|
let _intlayer_core_file = require("@intlayer/core/file");
|
|
35
34
|
let _intlayer_core_formatters = require("@intlayer/core/formatters");
|
|
36
35
|
let _intlayer_core_interpreter = require("@intlayer/core/interpreter");
|
|
@@ -41,25 +40,33 @@ let _intlayer_core_utils = require("@intlayer/core/utils");
|
|
|
41
40
|
|
|
42
41
|
//#region src/index.ts
|
|
43
42
|
/**
|
|
44
|
-
* Returns the configuration of Intlayer.
|
|
45
|
-
*/
|
|
46
|
-
const getConfiguration = () => _intlayer_config_built.default;
|
|
47
|
-
/**
|
|
48
43
|
* The locales defined in the configuration.
|
|
49
44
|
*/
|
|
50
|
-
const locales = _intlayer_config_built.
|
|
45
|
+
const locales = _intlayer_config_built.internationalization.locales;
|
|
51
46
|
/**
|
|
52
47
|
* The required locales defined in the configuration.
|
|
53
48
|
*/
|
|
54
|
-
const requiredLocales = _intlayer_config_built.
|
|
49
|
+
const requiredLocales = _intlayer_config_built.internationalization.requiredLocales;
|
|
55
50
|
/**
|
|
56
51
|
* The default locale defined in the configuration.
|
|
57
52
|
*/
|
|
58
|
-
const defaultLocale = _intlayer_config_built.
|
|
53
|
+
const defaultLocale = _intlayer_config_built.internationalization.defaultLocale;
|
|
59
54
|
/**
|
|
60
|
-
*
|
|
55
|
+
* @deprecated Use `defaultLocale`, `locales`, `requiredLocales` or `editor` instead.
|
|
56
|
+
*
|
|
57
|
+
* Configuration of Intlayer.
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
60
|
+
const configuration = {
|
|
61
|
+
editor: _intlayer_config_built.editor,
|
|
62
|
+
internationalization: _intlayer_config_built.internationalization,
|
|
63
|
+
log: _intlayer_config_built.log,
|
|
64
|
+
routing: _intlayer_config_built.routing
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Returns the configuration of Intlayer.
|
|
61
68
|
*/
|
|
62
|
-
const
|
|
69
|
+
const getConfiguration = () => configuration;
|
|
63
70
|
|
|
64
71
|
//#endregion
|
|
65
72
|
Object.defineProperty(exports, 'ALL_LOCALES', {
|
|
@@ -92,7 +99,6 @@ Object.defineProperty(exports, 'Locales', {
|
|
|
92
99
|
return _intlayer_types_locales;
|
|
93
100
|
}
|
|
94
101
|
});
|
|
95
|
-
exports.__toESM = __toESM;
|
|
96
102
|
Object.defineProperty(exports, 'compact', {
|
|
97
103
|
enumerable: true,
|
|
98
104
|
get: function () {
|
|
@@ -105,7 +111,7 @@ Object.defineProperty(exports, 'cond', {
|
|
|
105
111
|
return _intlayer_core_transpiler.cond;
|
|
106
112
|
}
|
|
107
113
|
});
|
|
108
|
-
exports.configuration =
|
|
114
|
+
exports.configuration = configuration;
|
|
109
115
|
Object.defineProperty(exports, 'currency', {
|
|
110
116
|
enumerable: true,
|
|
111
117
|
get: function () {
|
|
@@ -119,7 +125,7 @@ Object.defineProperty(exports, 'date', {
|
|
|
119
125
|
}
|
|
120
126
|
});
|
|
121
127
|
exports.defaultLocale = defaultLocale;
|
|
122
|
-
exports.editor = editor;
|
|
128
|
+
exports.editor = _intlayer_config_built.editor;
|
|
123
129
|
Object.defineProperty(exports, 'enu', {
|
|
124
130
|
enumerable: true,
|
|
125
131
|
get: function () {
|
package/dist/cjs/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["internationalization"],"sources":["../../src/index.ts"],"sourcesContent":["/** biome-ignore-all lint/suspicious/noEmptyInterface: Intlayer module augmentation registries */\n\nimport type { CustomIntlayerConfig as IntlayerConfig } from '@intlayer/types/config';\nimport type { Dictionary as DictionaryCore } from '@intlayer/types/dictionary';\nimport type { SchemaKeys } from '@intlayer/types/module_augmentation';\n\n/**\n * The dictionary type used to define the structure of a dictionary.\n * It is used to provide type safety and autocompletion when defining a dictionary.\n *\n * @example\n * ```ts\n * import { Dictionary } from 'intlayer';\n *\n * const dictionary: Dictionary = { ... };\n * ```\n */\ntype Dictionary<\n T = undefined,\n SchemaKey extends SchemaKeys | undefined = undefined,\n> = DictionaryCore<T, SchemaKey, true>;\n\n/**\n * The content of a dictionary.\n *\n * @deprecated Use `Dictionary<T>` instead.\n */\ntype DeclarationContent<\n T = undefined,\n SchemaKey extends SchemaKeys | undefined = undefined,\n> = Dictionary<T, SchemaKey>;\n\nexport { ALL_LOCALES, type Locale } from '@intlayer/types/allLocales';\nexport type { ContentNode } from '@intlayer/types/dictionary';\nexport * as Locales from '@intlayer/types/locales';\nexport type {\n DeclaredLocales,\n LocalesValues,\n RequiredLocales,\n StrictModeLocaleMap,\n} from '@intlayer/types/module_augmentation';\n\nexport type { DeclarationContent, Dictionary, IntlayerConfig };\n\nimport {\n /**\n * The editor configuration defined in the configuration.\n */\n editor,\n internationalization,\n log,\n routing,\n} from '@intlayer/config/built';\n\n/**\n * The locales defined in the configuration.\n */\nconst locales = internationalization.locales;\n\n/**\n * The required locales defined in the configuration.\n */\nconst requiredLocales = internationalization.requiredLocales;\n\n/**\n * The default locale defined in the configuration.\n */\nconst defaultLocale = internationalization.defaultLocale;\n\n/**\n * @deprecated Use `defaultLocale`, `locales`, `requiredLocales` or `editor` instead.\n *\n * Configuration of Intlayer.\n *\n */\nconst configuration: Pick<\n IntlayerConfig,\n 'editor' | 'internationalization' | 'log' | 'routing'\n> = {\n editor,\n internationalization,\n log,\n routing,\n};\n\n/**\n * Returns the configuration of Intlayer.\n */\nconst getConfiguration = () => configuration;\n\nexport { file } from '@intlayer/core/file'; // Include specific export for browser because of node js function that can't be used in browser\nexport {\n compact,\n currency,\n date,\n Intl,\n number,\n percentage,\n relativeTime,\n units,\n} from '@intlayer/core/formatters';\nexport {\n getDictionary,\n getEnumeration,\n /**\n * @deprecated Use `getEnumeration` instead.\n */\n getEnumeration as getEnumerationContent,\n getIntlayer,\n getNesting,\n getTranslation,\n /**\n * @deprecated Use `getTranslation` instead.\n */\n getTranslation as getTranslationContent,\n} from '@intlayer/core/interpreter';\nexport type {\n GenerateSitemapOptions,\n SitemapUrlEntry,\n} from '@intlayer/core/localization';\nexport {\n generateSitemap,\n generateSitemapUrl,\n getBrowserLocale,\n getCanonicalPath,\n getHTMLTextDir,\n getLocale,\n getLocaleFromPath,\n getLocaleLang,\n getLocaleName,\n getLocalizedPath,\n getLocalizedUrl,\n getMultilingualUrls,\n getPathWithoutLocale,\n getPrefix,\n getRewriteRules,\n localeDetector,\n localeFlatMap,\n localeMap,\n localeRecord,\n localeResolver,\n validatePrefix,\n} from '@intlayer/core/localization';\nexport { getMarkdownMetadata } from '@intlayer/core/markdown';\nexport {\n cond,\n enu,\n gender,\n html,\n insert,\n md,\n nest,\n plural,\n t,\n} from '@intlayer/core/transpiler';\nexport {\n getCookie,\n /**\n * @deprecated Use `getLocaleFromStorageClient` or `getLocaleFromStorageServer` instead.\n */\n getLocaleFromStorage,\n getLocaleFromStorageClient,\n getLocaleFromStorageServer,\n LocaleStorageClient,\n LocaleStorageServer,\n /**\n * @deprecated Use `setLocaleInStorageClient` or `setLocaleInStorageServer` instead.\n */\n setLocaleInStorage,\n setLocaleInStorageClient,\n setLocaleInStorageServer,\n} from '@intlayer/core/utils';\n\n// Reexport here for CJS compatibility\n// Fix ReferenceError: Cannot access 'xxx' before initialization\nexport {\n /**\n * @deprecated Use `defaultLocale`, `locales`, `requiredLocales` or `editor` instead.\n */\n configuration,\n defaultLocale,\n editor,\n getConfiguration,\n locales,\n requiredLocales,\n};\n\n// --- Registries to be augmented by the generator ---\nexport interface __DictionaryRegistry {} // id -> interfaceof ictionary\nexport interface __DeclaredLocalesRegistry {} // 'fr': 1, 'en': 1, ...\nexport interface __RequiredLocalesRegistry {} // 'en': 1, ...\nexport interface __SchemaRegistry {} // id -> interface of schema\nexport interface __StrictModeRegistry {} // one of: { strict: true } | { inclusive: true } | { loose: true }\nexport interface __EditorRegistry {} // one of: { enabled: true } | { enabled: false }\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyDA,MAAM,UAAUA,4CAAqB;;;;AAKrC,MAAM,kBAAkBA,4CAAqB;;;;AAK7C,MAAM,gBAAgBA,4CAAqB;;;;;;;AAQ3C,MAAM,gBAGF;CACF;CACA;CACA;CACA;AACF;;;;AAKA,MAAM,yBAAyB"}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { editor, internationalization, log, routing } from "@intlayer/config/built";
|
|
2
2
|
import { file } from "@intlayer/core/file";
|
|
3
3
|
import { Intl, compact, currency, date, number, percentage, relativeTime, units } from "@intlayer/core/formatters";
|
|
4
4
|
import { getDictionary, getEnumeration, getEnumeration as getEnumerationContent, getIntlayer, getNesting, getTranslation, getTranslation as getTranslationContent } from "@intlayer/core/interpreter";
|
|
@@ -9,25 +9,33 @@ import { LocaleStorageClient, LocaleStorageServer, getCookie, getLocaleFromStora
|
|
|
9
9
|
|
|
10
10
|
//#region src/index.ts
|
|
11
11
|
/**
|
|
12
|
-
* Returns the configuration of Intlayer.
|
|
13
|
-
*/
|
|
14
|
-
const getConfiguration = () => configuration;
|
|
15
|
-
/**
|
|
16
12
|
* The locales defined in the configuration.
|
|
17
13
|
*/
|
|
18
|
-
const locales =
|
|
14
|
+
const locales = internationalization.locales;
|
|
19
15
|
/**
|
|
20
16
|
* The required locales defined in the configuration.
|
|
21
17
|
*/
|
|
22
|
-
const requiredLocales =
|
|
18
|
+
const requiredLocales = internationalization.requiredLocales;
|
|
23
19
|
/**
|
|
24
20
|
* The default locale defined in the configuration.
|
|
25
21
|
*/
|
|
26
|
-
const defaultLocale =
|
|
22
|
+
const defaultLocale = internationalization.defaultLocale;
|
|
27
23
|
/**
|
|
28
|
-
*
|
|
24
|
+
* @deprecated Use `defaultLocale`, `locales`, `requiredLocales` or `editor` instead.
|
|
25
|
+
*
|
|
26
|
+
* Configuration of Intlayer.
|
|
27
|
+
*
|
|
29
28
|
*/
|
|
30
|
-
const
|
|
29
|
+
const configuration = {
|
|
30
|
+
editor,
|
|
31
|
+
internationalization,
|
|
32
|
+
log,
|
|
33
|
+
routing
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Returns the configuration of Intlayer.
|
|
37
|
+
*/
|
|
38
|
+
const getConfiguration = () => configuration;
|
|
31
39
|
|
|
32
40
|
//#endregion
|
|
33
41
|
export { Intl, LocaleStorageClient, LocaleStorageServer, compact, cond, configuration, currency, date, defaultLocale, editor, enu, file, gender, generateSitemap, generateSitemapUrl, getBrowserLocale, getCanonicalPath, getConfiguration, getCookie, getDictionary, getEnumeration, getEnumerationContent, getHTMLTextDir, getIntlayer, getLocale, getLocaleFromPath, getLocaleFromStorage, getLocaleFromStorageClient, getLocaleFromStorageServer, getLocaleLang, getLocaleName, getLocalizedPath, getLocalizedUrl, getMarkdownMetadata, getMultilingualUrls, getNesting, getPathWithoutLocale, getPrefix, getRewriteRules, getTranslation, getTranslationContent, html, insert, localeDetector, localeFlatMap, localeMap, localeRecord, localeResolver, locales, md, nest, number, percentage, plural, relativeTime, requiredLocales, setLocaleInStorage, setLocaleInStorageClient, setLocaleInStorageServer, t, units, validatePrefix };
|
package/dist/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../../src/index.ts"],"sourcesContent":["/** biome-ignore-all lint/suspicious/noEmptyInterface: Intlayer module augmentation registries */\n\nimport type { CustomIntlayerConfig as IntlayerConfig } from '@intlayer/types/config';\nimport type { Dictionary as DictionaryCore } from '@intlayer/types/dictionary';\nimport type { SchemaKeys } from '@intlayer/types/module_augmentation';\n\n/**\n * The dictionary type used to define the structure of a dictionary.\n * It is used to provide type safety and autocompletion when defining a dictionary.\n *\n * @example\n * ```ts\n * import { Dictionary } from 'intlayer';\n *\n * const dictionary: Dictionary = { ... };\n * ```\n */\ntype Dictionary<\n T = undefined,\n SchemaKey extends SchemaKeys | undefined = undefined,\n> = DictionaryCore<T, SchemaKey, true>;\n\n/**\n * The content of a dictionary.\n *\n * @deprecated Use `Dictionary<T>` instead.\n */\ntype DeclarationContent<\n T = undefined,\n SchemaKey extends SchemaKeys | undefined = undefined,\n> = Dictionary<T, SchemaKey>;\n\nexport { ALL_LOCALES, type Locale } from '@intlayer/types/allLocales';\nexport type { ContentNode } from '@intlayer/types/dictionary';\nexport * as Locales from '@intlayer/types/locales';\nexport type {\n DeclaredLocales,\n LocalesValues,\n RequiredLocales,\n StrictModeLocaleMap,\n} from '@intlayer/types/module_augmentation';\n\nexport type { DeclarationContent, Dictionary, IntlayerConfig };\n\nimport {
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../src/index.ts"],"sourcesContent":["/** biome-ignore-all lint/suspicious/noEmptyInterface: Intlayer module augmentation registries */\n\nimport type { CustomIntlayerConfig as IntlayerConfig } from '@intlayer/types/config';\nimport type { Dictionary as DictionaryCore } from '@intlayer/types/dictionary';\nimport type { SchemaKeys } from '@intlayer/types/module_augmentation';\n\n/**\n * The dictionary type used to define the structure of a dictionary.\n * It is used to provide type safety and autocompletion when defining a dictionary.\n *\n * @example\n * ```ts\n * import { Dictionary } from 'intlayer';\n *\n * const dictionary: Dictionary = { ... };\n * ```\n */\ntype Dictionary<\n T = undefined,\n SchemaKey extends SchemaKeys | undefined = undefined,\n> = DictionaryCore<T, SchemaKey, true>;\n\n/**\n * The content of a dictionary.\n *\n * @deprecated Use `Dictionary<T>` instead.\n */\ntype DeclarationContent<\n T = undefined,\n SchemaKey extends SchemaKeys | undefined = undefined,\n> = Dictionary<T, SchemaKey>;\n\nexport { ALL_LOCALES, type Locale } from '@intlayer/types/allLocales';\nexport type { ContentNode } from '@intlayer/types/dictionary';\nexport * as Locales from '@intlayer/types/locales';\nexport type {\n DeclaredLocales,\n LocalesValues,\n RequiredLocales,\n StrictModeLocaleMap,\n} from '@intlayer/types/module_augmentation';\n\nexport type { DeclarationContent, Dictionary, IntlayerConfig };\n\nimport {\n /**\n * The editor configuration defined in the configuration.\n */\n editor,\n internationalization,\n log,\n routing,\n} from '@intlayer/config/built';\n\n/**\n * The locales defined in the configuration.\n */\nconst locales = internationalization.locales;\n\n/**\n * The required locales defined in the configuration.\n */\nconst requiredLocales = internationalization.requiredLocales;\n\n/**\n * The default locale defined in the configuration.\n */\nconst defaultLocale = internationalization.defaultLocale;\n\n/**\n * @deprecated Use `defaultLocale`, `locales`, `requiredLocales` or `editor` instead.\n *\n * Configuration of Intlayer.\n *\n */\nconst configuration: Pick<\n IntlayerConfig,\n 'editor' | 'internationalization' | 'log' | 'routing'\n> = {\n editor,\n internationalization,\n log,\n routing,\n};\n\n/**\n * Returns the configuration of Intlayer.\n */\nconst getConfiguration = () => configuration;\n\nexport { file } from '@intlayer/core/file'; // Include specific export for browser because of node js function that can't be used in browser\nexport {\n compact,\n currency,\n date,\n Intl,\n number,\n percentage,\n relativeTime,\n units,\n} from '@intlayer/core/formatters';\nexport {\n getDictionary,\n getEnumeration,\n /**\n * @deprecated Use `getEnumeration` instead.\n */\n getEnumeration as getEnumerationContent,\n getIntlayer,\n getNesting,\n getTranslation,\n /**\n * @deprecated Use `getTranslation` instead.\n */\n getTranslation as getTranslationContent,\n} from '@intlayer/core/interpreter';\nexport type {\n GenerateSitemapOptions,\n SitemapUrlEntry,\n} from '@intlayer/core/localization';\nexport {\n generateSitemap,\n generateSitemapUrl,\n getBrowserLocale,\n getCanonicalPath,\n getHTMLTextDir,\n getLocale,\n getLocaleFromPath,\n getLocaleLang,\n getLocaleName,\n getLocalizedPath,\n getLocalizedUrl,\n getMultilingualUrls,\n getPathWithoutLocale,\n getPrefix,\n getRewriteRules,\n localeDetector,\n localeFlatMap,\n localeMap,\n localeRecord,\n localeResolver,\n validatePrefix,\n} from '@intlayer/core/localization';\nexport { getMarkdownMetadata } from '@intlayer/core/markdown';\nexport {\n cond,\n enu,\n gender,\n html,\n insert,\n md,\n nest,\n plural,\n t,\n} from '@intlayer/core/transpiler';\nexport {\n getCookie,\n /**\n * @deprecated Use `getLocaleFromStorageClient` or `getLocaleFromStorageServer` instead.\n */\n getLocaleFromStorage,\n getLocaleFromStorageClient,\n getLocaleFromStorageServer,\n LocaleStorageClient,\n LocaleStorageServer,\n /**\n * @deprecated Use `setLocaleInStorageClient` or `setLocaleInStorageServer` instead.\n */\n setLocaleInStorage,\n setLocaleInStorageClient,\n setLocaleInStorageServer,\n} from '@intlayer/core/utils';\n\n// Reexport here for CJS compatibility\n// Fix ReferenceError: Cannot access 'xxx' before initialization\nexport {\n /**\n * @deprecated Use `defaultLocale`, `locales`, `requiredLocales` or `editor` instead.\n */\n configuration,\n defaultLocale,\n editor,\n getConfiguration,\n locales,\n requiredLocales,\n};\n\n// --- Registries to be augmented by the generator ---\nexport interface __DictionaryRegistry {} // id -> interfaceof ictionary\nexport interface __DeclaredLocalesRegistry {} // 'fr': 1, 'en': 1, ...\nexport interface __RequiredLocalesRegistry {} // 'en': 1, ...\nexport interface __SchemaRegistry {} // id -> interface of schema\nexport interface __StrictModeRegistry {} // one of: { strict: true } | { inclusive: true } | { loose: true }\nexport interface __EditorRegistry {} // one of: { enabled: true } | { enabled: false }\n"],"mappings":";;;;;;;;;;;;;;;AAyDA,MAAM,UAAU,qBAAqB;;;;AAKrC,MAAM,kBAAkB,qBAAqB;;;;AAK7C,MAAM,gBAAgB,qBAAqB;;;;;;;AAQ3C,MAAM,gBAGF;CACF;CACA;CACA;CACA;AACF;;;;AAKA,MAAM,yBAAyB"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { ContentNode, Dictionary as Dictionary$1 } from "@intlayer/types/diction
|
|
|
3
3
|
import { DeclaredLocales, LocalesValues, RequiredLocales, SchemaKeys, StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
|
|
4
4
|
import { ALL_LOCALES, Locale } from "@intlayer/types/allLocales";
|
|
5
5
|
import * as Locales from "@intlayer/types/locales";
|
|
6
|
-
import
|
|
6
|
+
import { editor } from "@intlayer/config/built";
|
|
7
7
|
import { file } from "@intlayer/core/file";
|
|
8
8
|
import { Intl, compact, currency, date, number, percentage, relativeTime, units } from "@intlayer/core/formatters";
|
|
9
9
|
import { getDictionary, getEnumeration, getEnumeration as getEnumerationContent, getIntlayer, getNesting, getTranslation, getTranslation as getTranslationContent } from "@intlayer/core/interpreter";
|
|
@@ -31,26 +31,29 @@ type Dictionary<T = undefined, SchemaKey extends SchemaKeys | undefined = undefi
|
|
|
31
31
|
* @deprecated Use `Dictionary<T>` instead.
|
|
32
32
|
*/
|
|
33
33
|
type DeclarationContent<T = undefined, SchemaKey extends SchemaKeys | undefined = undefined> = Dictionary<T, SchemaKey>;
|
|
34
|
-
/**
|
|
35
|
-
* Returns the configuration of Intlayer.
|
|
36
|
-
*/
|
|
37
|
-
declare const getConfiguration: () => import("@intlayer/types").IntlayerConfig;
|
|
38
34
|
/**
|
|
39
35
|
* The locales defined in the configuration.
|
|
40
36
|
*/
|
|
41
|
-
declare const locales:
|
|
37
|
+
declare const locales: any;
|
|
42
38
|
/**
|
|
43
39
|
* The required locales defined in the configuration.
|
|
44
40
|
*/
|
|
45
|
-
declare const requiredLocales:
|
|
41
|
+
declare const requiredLocales: any;
|
|
46
42
|
/**
|
|
47
43
|
* The default locale defined in the configuration.
|
|
48
44
|
*/
|
|
49
|
-
declare const defaultLocale:
|
|
45
|
+
declare const defaultLocale: any;
|
|
46
|
+
/**
|
|
47
|
+
* @deprecated Use `defaultLocale`, `locales`, `requiredLocales` or `editor` instead.
|
|
48
|
+
*
|
|
49
|
+
* Configuration of Intlayer.
|
|
50
|
+
*
|
|
51
|
+
*/
|
|
52
|
+
declare const configuration: Pick<IntlayerConfig, 'editor' | 'internationalization' | 'log' | 'routing'>;
|
|
50
53
|
/**
|
|
51
|
-
*
|
|
54
|
+
* Returns the configuration of Intlayer.
|
|
52
55
|
*/
|
|
53
|
-
declare const
|
|
56
|
+
declare const getConfiguration: () => Pick<IntlayerConfig, "editor" | "internationalization" | "log" | "routing">;
|
|
54
57
|
interface __DictionaryRegistry {}
|
|
55
58
|
interface __DeclaredLocalesRegistry {}
|
|
56
59
|
interface __RequiredLocalesRegistry {}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;KAiBK,UAAA,kCAEe,UAAA,4BAChB,YAAA,CAAe,CAAA,EAAG,SAAA;;;;;;KAOjB,kBAAA,kCAEe,UAAA,4BAChB,UAAA,CAAW,CAAA,EAAG,SAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;KAiBK,UAAA,kCAEe,UAAA,4BAChB,YAAA,CAAe,CAAA,EAAG,SAAA;;;;;;KAOjB,kBAAA,kCAEe,UAAA,4BAChB,UAAA,CAAW,CAAA,EAAG,SAAA;AAVa;;;AAAA,cAqCzB,OAAA;;;;cAKA,eAAA;;;;cAKA,aAAA;;;;;AArCqB;AAsBK;cAuB1B,aAAA,EAAe,IAAI,CACvB,cAAA;;;AAnB0C;cA+BtC,gBAAA,QAAgB,IAAA,CAAA,cAAA;AAAA,UAoGL,oBAAA;AAAA,UACA,yBAAA;AAAA,UACA,yBAAA;AAAA,UACA,gBAAA;AAAA,UACA,oBAAA;AAAA,UACA,gBAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "intlayer",
|
|
3
|
-
"version": "8.11.
|
|
3
|
+
"version": "8.11.3",
|
|
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": [
|
|
@@ -95,10 +95,10 @@
|
|
|
95
95
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
96
96
|
},
|
|
97
97
|
"dependencies": {
|
|
98
|
-
"@intlayer/cli": "8.11.
|
|
99
|
-
"@intlayer/config": "8.11.
|
|
100
|
-
"@intlayer/core": "8.11.
|
|
101
|
-
"@intlayer/types": "8.11.
|
|
98
|
+
"@intlayer/cli": "8.11.3",
|
|
99
|
+
"@intlayer/config": "8.11.3",
|
|
100
|
+
"@intlayer/core": "8.11.3",
|
|
101
|
+
"@intlayer/types": "8.11.3"
|
|
102
102
|
},
|
|
103
103
|
"devDependencies": {
|
|
104
104
|
"@types/node": "25.9.1",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"@utils/ts-config-types": "1.0.4",
|
|
107
107
|
"@utils/tsdown-config": "1.0.4",
|
|
108
108
|
"rimraf": "6.1.3",
|
|
109
|
-
"tsdown": "0.22.
|
|
109
|
+
"tsdown": "0.22.1",
|
|
110
110
|
"typescript": "6.0.3",
|
|
111
111
|
"vitest": "4.1.7"
|
|
112
112
|
},
|