intlayer 7.3.15 → 7.5.0-canary.0
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
|
@@ -277,4 +277,10 @@ Object.defineProperty(exports, 'units', {
|
|
|
277
277
|
return __intlayer_core.units;
|
|
278
278
|
}
|
|
279
279
|
});
|
|
280
|
+
Object.defineProperty(exports, 'validatePrefix', {
|
|
281
|
+
enumerable: true,
|
|
282
|
+
get: function () {
|
|
283
|
+
return __intlayer_core.validatePrefix;
|
|
284
|
+
}
|
|
285
|
+
});
|
|
280
286
|
//# sourceMappingURL=index.cjs.map
|
package/dist/cjs/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["Locales","configuration"],"sources":["../../src/index.ts"],"sourcesContent":["/** biome-ignore-all lint/suspicious/noEmptyInterface: Intlayer module augmentation registries */\nimport {\n type Dictionary as DictionaryCore,\n type CustomIntlayerConfig as IntlayerConfig,\n Locales,\n} from '@intlayer/types';\n\ntype Dictionary<T = undefined> = DictionaryCore<T, true>;\n/**\n * @deprecated Use `Dictionary<T>` instead.\n */\ntype DeclarationContent<T = undefined> = Dictionary<T>;\n\n/**\n * @deprecated\n *\n * Use Locales.All_LOCALES instead\n */\nconst localeList = Locales.ALL_LOCALES;\n\nexport {\n type ContentNode,\n type Locale,\n Locales,\n type LocalesValues,\n type StrictModeLocaleMap,\n} from '@intlayer/types';\nexport type { DeclarationContent, Dictionary, IntlayerConfig, localeList };\n\n/**\n * Rexport using named import because πof Tsup bug in CJS\n */\nimport configuration from '@intlayer/config/built';\n\n/**\n * @deprecated Use `import { configuration } from 'intlayer'` instead.\n */\nconst getConfiguration = () => configuration;\n\n// Reexport here for CJS compatibility\n// Fix ReferenceError: Cannot access 'xxx' before initialization\nexport { configuration, getConfiguration };\n\nexport {\n compact,\n cond,\n currency,\n date,\n enu,\n gender,\n getBrowserLocale,\n getCookie,\n getDictionary,\n getEnumeration,\n /**\n * @deprecated Use `getEnumeration` instead.\n */\n getEnumeration as getEnumerationContent,\n getHTMLTextDir,\n getIntlayer,\n getLocale,\n getLocaleFromPath,\n getLocaleFromStorage,\n getLocaleLang,\n getLocaleName,\n getLocalizedUrl,\n getMarkdownMetadata,\n getMultilingualUrls,\n getNesting,\n getPathWithoutLocale,\n getPrefix,\n getTranslation,\n /**\n * @deprecated Use `getTranslation` instead.\n */\n getTranslation as getTranslationContent,\n Intl,\n insert,\n localeDetector,\n localeFlatMap,\n localeMap,\n localeRecord,\n localeResolver,\n md,\n nest,\n number,\n percentage,\n relativeTime,\n setLocaleInStorage,\n t,\n units,\n} from '@intlayer/core';\nexport { file } from '@intlayer/core/file'; // Include specific export for browser because of node js function that can't be used in browser\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 __StrictModeRegistry {} // one of: { strict: true } | { inclusive: true } | { loose: true }\n"],"mappings":";;;;;;;;;;;;AAkBmBA,yBAAQ;;;;AAmB3B,MAAM,yBAAyBC"}
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["Locales","configuration"],"sources":["../../src/index.ts"],"sourcesContent":["/** biome-ignore-all lint/suspicious/noEmptyInterface: Intlayer module augmentation registries */\nimport {\n type Dictionary as DictionaryCore,\n type CustomIntlayerConfig as IntlayerConfig,\n Locales,\n} from '@intlayer/types';\n\ntype Dictionary<T = undefined> = DictionaryCore<T, true>;\n/**\n * @deprecated Use `Dictionary<T>` instead.\n */\ntype DeclarationContent<T = undefined> = Dictionary<T>;\n\n/**\n * @deprecated\n *\n * Use Locales.All_LOCALES instead\n */\nconst localeList = Locales.ALL_LOCALES;\n\nexport {\n type ContentNode,\n type Locale,\n Locales,\n type LocalesValues,\n type StrictModeLocaleMap,\n} from '@intlayer/types';\nexport type { DeclarationContent, Dictionary, IntlayerConfig, localeList };\n\n/**\n * Rexport using named import because πof Tsup bug in CJS\n */\nimport configuration from '@intlayer/config/built';\n\n/**\n * @deprecated Use `import { configuration } from 'intlayer'` instead.\n */\nconst getConfiguration = () => configuration;\n\n// Reexport here for CJS compatibility\n// Fix ReferenceError: Cannot access 'xxx' before initialization\nexport { configuration, getConfiguration };\n\nexport {\n compact,\n cond,\n currency,\n date,\n enu,\n gender,\n getBrowserLocale,\n getCookie,\n getDictionary,\n getEnumeration,\n /**\n * @deprecated Use `getEnumeration` instead.\n */\n getEnumeration as getEnumerationContent,\n getHTMLTextDir,\n getIntlayer,\n getLocale,\n getLocaleFromPath,\n getLocaleFromStorage,\n getLocaleLang,\n getLocaleName,\n getLocalizedUrl,\n getMarkdownMetadata,\n getMultilingualUrls,\n getNesting,\n getPathWithoutLocale,\n getPrefix,\n getTranslation,\n /**\n * @deprecated Use `getTranslation` instead.\n */\n getTranslation as getTranslationContent,\n Intl,\n insert,\n localeDetector,\n localeFlatMap,\n localeMap,\n localeRecord,\n localeResolver,\n md,\n nest,\n number,\n percentage,\n relativeTime,\n setLocaleInStorage,\n t,\n units,\n validatePrefix,\n} from '@intlayer/core';\nexport { file } from '@intlayer/core/file'; // Include specific export for browser because of node js function that can't be used in browser\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 __StrictModeRegistry {} // one of: { strict: true } | { inclusive: true } | { loose: true }\n"],"mappings":";;;;;;;;;;;;AAkBmBA,yBAAQ;;;;AAmB3B,MAAM,yBAAyBC"}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Locales, Locales as Locales$1 } from "@intlayer/types";
|
|
2
2
|
import configuration from "@intlayer/config/built";
|
|
3
|
-
import { Intl, compact, cond, currency, date, enu, gender, getBrowserLocale, getCookie, getDictionary, getEnumeration, getEnumeration as getEnumerationContent, getHTMLTextDir, getIntlayer, getLocale, getLocaleFromPath, getLocaleFromStorage, getLocaleLang, getLocaleName, getLocalizedUrl, getMarkdownMetadata, getMultilingualUrls, getNesting, getPathWithoutLocale, getPrefix, getTranslation, getTranslation as getTranslationContent, insert, localeDetector, localeFlatMap, localeMap, localeRecord, localeResolver, md, nest, number, percentage, relativeTime, setLocaleInStorage, t, units } from "@intlayer/core";
|
|
3
|
+
import { Intl, compact, cond, currency, date, enu, gender, getBrowserLocale, getCookie, getDictionary, getEnumeration, getEnumeration as getEnumerationContent, getHTMLTextDir, getIntlayer, getLocale, getLocaleFromPath, getLocaleFromStorage, getLocaleLang, getLocaleName, getLocalizedUrl, getMarkdownMetadata, getMultilingualUrls, getNesting, getPathWithoutLocale, getPrefix, getTranslation, getTranslation as getTranslationContent, insert, localeDetector, localeFlatMap, localeMap, localeRecord, localeResolver, md, nest, number, percentage, relativeTime, setLocaleInStorage, t, units, validatePrefix } from "@intlayer/core";
|
|
4
4
|
import { file } from "@intlayer/core/file";
|
|
5
5
|
|
|
6
6
|
//#region src/index.ts
|
|
@@ -15,5 +15,5 @@ Locales$1.ALL_LOCALES;
|
|
|
15
15
|
const getConfiguration = () => configuration;
|
|
16
16
|
|
|
17
17
|
//#endregion
|
|
18
|
-
export { Intl, Locales, compact, cond, configuration, currency, date, enu, file, gender, getBrowserLocale, getConfiguration, getCookie, getDictionary, getEnumeration, getEnumerationContent, getHTMLTextDir, getIntlayer, getLocale, getLocaleFromPath, getLocaleFromStorage, getLocaleLang, getLocaleName, getLocalizedUrl, getMarkdownMetadata, getMultilingualUrls, getNesting, getPathWithoutLocale, getPrefix, getTranslation, getTranslationContent, insert, localeDetector, localeFlatMap, localeMap, localeRecord, localeResolver, md, nest, number, percentage, relativeTime, setLocaleInStorage, t, units };
|
|
18
|
+
export { Intl, Locales, compact, cond, configuration, currency, date, enu, file, gender, getBrowserLocale, getConfiguration, getCookie, getDictionary, getEnumeration, getEnumerationContent, getHTMLTextDir, getIntlayer, getLocale, getLocaleFromPath, getLocaleFromStorage, getLocaleLang, getLocaleName, getLocalizedUrl, getMarkdownMetadata, getMultilingualUrls, getNesting, getPathWithoutLocale, getPrefix, getTranslation, getTranslationContent, insert, localeDetector, localeFlatMap, localeMap, localeRecord, localeResolver, md, nest, number, percentage, relativeTime, setLocaleInStorage, t, units, validatePrefix };
|
|
19
19
|
//# sourceMappingURL=index.mjs.map
|
package/dist/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["Locales"],"sources":["../../src/index.ts"],"sourcesContent":["/** biome-ignore-all lint/suspicious/noEmptyInterface: Intlayer module augmentation registries */\nimport {\n type Dictionary as DictionaryCore,\n type CustomIntlayerConfig as IntlayerConfig,\n Locales,\n} from '@intlayer/types';\n\ntype Dictionary<T = undefined> = DictionaryCore<T, true>;\n/**\n * @deprecated Use `Dictionary<T>` instead.\n */\ntype DeclarationContent<T = undefined> = Dictionary<T>;\n\n/**\n * @deprecated\n *\n * Use Locales.All_LOCALES instead\n */\nconst localeList = Locales.ALL_LOCALES;\n\nexport {\n type ContentNode,\n type Locale,\n Locales,\n type LocalesValues,\n type StrictModeLocaleMap,\n} from '@intlayer/types';\nexport type { DeclarationContent, Dictionary, IntlayerConfig, localeList };\n\n/**\n * Rexport using named import because πof Tsup bug in CJS\n */\nimport configuration from '@intlayer/config/built';\n\n/**\n * @deprecated Use `import { configuration } from 'intlayer'` instead.\n */\nconst getConfiguration = () => configuration;\n\n// Reexport here for CJS compatibility\n// Fix ReferenceError: Cannot access 'xxx' before initialization\nexport { configuration, getConfiguration };\n\nexport {\n compact,\n cond,\n currency,\n date,\n enu,\n gender,\n getBrowserLocale,\n getCookie,\n getDictionary,\n getEnumeration,\n /**\n * @deprecated Use `getEnumeration` instead.\n */\n getEnumeration as getEnumerationContent,\n getHTMLTextDir,\n getIntlayer,\n getLocale,\n getLocaleFromPath,\n getLocaleFromStorage,\n getLocaleLang,\n getLocaleName,\n getLocalizedUrl,\n getMarkdownMetadata,\n getMultilingualUrls,\n getNesting,\n getPathWithoutLocale,\n getPrefix,\n getTranslation,\n /**\n * @deprecated Use `getTranslation` instead.\n */\n getTranslation as getTranslationContent,\n Intl,\n insert,\n localeDetector,\n localeFlatMap,\n localeMap,\n localeRecord,\n localeResolver,\n md,\n nest,\n number,\n percentage,\n relativeTime,\n setLocaleInStorage,\n t,\n units,\n} from '@intlayer/core';\nexport { file } from '@intlayer/core/file'; // Include specific export for browser because of node js function that can't be used in browser\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 __StrictModeRegistry {} // one of: { strict: true } | { inclusive: true } | { loose: true }\n"],"mappings":";;;;;;;;;;AAkBmBA,UAAQ;;;;AAmB3B,MAAM,yBAAyB"}
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["Locales"],"sources":["../../src/index.ts"],"sourcesContent":["/** biome-ignore-all lint/suspicious/noEmptyInterface: Intlayer module augmentation registries */\nimport {\n type Dictionary as DictionaryCore,\n type CustomIntlayerConfig as IntlayerConfig,\n Locales,\n} from '@intlayer/types';\n\ntype Dictionary<T = undefined> = DictionaryCore<T, true>;\n/**\n * @deprecated Use `Dictionary<T>` instead.\n */\ntype DeclarationContent<T = undefined> = Dictionary<T>;\n\n/**\n * @deprecated\n *\n * Use Locales.All_LOCALES instead\n */\nconst localeList = Locales.ALL_LOCALES;\n\nexport {\n type ContentNode,\n type Locale,\n Locales,\n type LocalesValues,\n type StrictModeLocaleMap,\n} from '@intlayer/types';\nexport type { DeclarationContent, Dictionary, IntlayerConfig, localeList };\n\n/**\n * Rexport using named import because πof Tsup bug in CJS\n */\nimport configuration from '@intlayer/config/built';\n\n/**\n * @deprecated Use `import { configuration } from 'intlayer'` instead.\n */\nconst getConfiguration = () => configuration;\n\n// Reexport here for CJS compatibility\n// Fix ReferenceError: Cannot access 'xxx' before initialization\nexport { configuration, getConfiguration };\n\nexport {\n compact,\n cond,\n currency,\n date,\n enu,\n gender,\n getBrowserLocale,\n getCookie,\n getDictionary,\n getEnumeration,\n /**\n * @deprecated Use `getEnumeration` instead.\n */\n getEnumeration as getEnumerationContent,\n getHTMLTextDir,\n getIntlayer,\n getLocale,\n getLocaleFromPath,\n getLocaleFromStorage,\n getLocaleLang,\n getLocaleName,\n getLocalizedUrl,\n getMarkdownMetadata,\n getMultilingualUrls,\n getNesting,\n getPathWithoutLocale,\n getPrefix,\n getTranslation,\n /**\n * @deprecated Use `getTranslation` instead.\n */\n getTranslation as getTranslationContent,\n Intl,\n insert,\n localeDetector,\n localeFlatMap,\n localeMap,\n localeRecord,\n localeResolver,\n md,\n nest,\n number,\n percentage,\n relativeTime,\n setLocaleInStorage,\n t,\n units,\n validatePrefix,\n} from '@intlayer/core';\nexport { file } from '@intlayer/core/file'; // Include specific export for browser because of node js function that can't be used in browser\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 __StrictModeRegistry {} // one of: { strict: true } | { inclusive: true } | { loose: true }\n"],"mappings":";;;;;;;;;;AAkBmBA,UAAQ;;;;AAmB3B,MAAM,yBAAyB"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _intlayer_types0 from "@intlayer/types";
|
|
2
2
|
import { ContentNode, CustomIntlayerConfig as IntlayerConfig, Dictionary as Dictionary$1, Locale, Locales, LocalesValues, StrictModeLocaleMap } from "@intlayer/types";
|
|
3
3
|
import configuration from "@intlayer/config/built";
|
|
4
|
-
import { Intl, compact, cond, currency, date, enu, gender, getBrowserLocale, getCookie, getDictionary, getEnumeration, getEnumeration as getEnumerationContent, getHTMLTextDir, getIntlayer, getLocale, getLocaleFromPath, getLocaleFromStorage, getLocaleLang, getLocaleName, getLocalizedUrl, getMarkdownMetadata, getMultilingualUrls, getNesting, getPathWithoutLocale, getPrefix, getTranslation, getTranslation as getTranslationContent, insert, localeDetector, localeFlatMap, localeMap, localeRecord, localeResolver, md, nest, number, percentage, relativeTime, setLocaleInStorage, t, units } from "@intlayer/core";
|
|
4
|
+
import { Intl, compact, cond, currency, date, enu, gender, getBrowserLocale, getCookie, getDictionary, getEnumeration, getEnumeration as getEnumerationContent, getHTMLTextDir, getIntlayer, getLocale, getLocaleFromPath, getLocaleFromStorage, getLocaleLang, getLocaleName, getLocalizedUrl, getMarkdownMetadata, getMultilingualUrls, getNesting, getPathWithoutLocale, getPrefix, getTranslation, getTranslation as getTranslationContent, insert, localeDetector, localeFlatMap, localeMap, localeRecord, localeResolver, md, nest, number, percentage, relativeTime, setLocaleInStorage, t, units, validatePrefix } from "@intlayer/core";
|
|
5
5
|
import { file } from "@intlayer/core/file";
|
|
6
6
|
|
|
7
7
|
//#region src/index.d.ts
|
|
@@ -305,5 +305,5 @@ interface __DeclaredLocalesRegistry {}
|
|
|
305
305
|
interface __RequiredLocalesRegistry {}
|
|
306
306
|
interface __StrictModeRegistry {}
|
|
307
307
|
//#endregion
|
|
308
|
-
export { type ContentNode, type DeclarationContent, type Dictionary, Intl, type IntlayerConfig, type Locale, Locales, type LocalesValues, type StrictModeLocaleMap, __DeclaredLocalesRegistry, __DictionaryRegistry, __RequiredLocalesRegistry, __StrictModeRegistry, compact, cond, configuration, currency, date, enu, file, gender, getBrowserLocale, getConfiguration, getCookie, getDictionary, getEnumeration, getEnumerationContent, getHTMLTextDir, getIntlayer, getLocale, getLocaleFromPath, getLocaleFromStorage, getLocaleLang, getLocaleName, getLocalizedUrl, getMarkdownMetadata, getMultilingualUrls, getNesting, getPathWithoutLocale, getPrefix, getTranslation, getTranslationContent, insert, localeDetector, localeFlatMap, type localeList, localeMap, localeRecord, localeResolver, md, nest, number, percentage, relativeTime, setLocaleInStorage, t, units };
|
|
308
|
+
export { type ContentNode, type DeclarationContent, type Dictionary, Intl, type IntlayerConfig, type Locale, Locales, type LocalesValues, type StrictModeLocaleMap, __DeclaredLocalesRegistry, __DictionaryRegistry, __RequiredLocalesRegistry, __StrictModeRegistry, compact, cond, configuration, currency, date, enu, file, gender, getBrowserLocale, getConfiguration, getCookie, getDictionary, getEnumeration, getEnumerationContent, getHTMLTextDir, getIntlayer, getLocale, getLocaleFromPath, getLocaleFromStorage, getLocaleLang, getLocaleName, getLocalizedUrl, getMarkdownMetadata, getMultilingualUrls, getNesting, getPathWithoutLocale, getPrefix, getTranslation, getTranslationContent, insert, localeDetector, localeFlatMap, type localeList, localeMap, localeRecord, localeResolver, md, nest, number, percentage, relativeTime, setLocaleInStorage, t, units, validatePrefix };
|
|
309
309
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;KAOK,4BAA4B,aAAe;;;;KAI3C,oCAAoC,WAAW;AAN3B;AAEsB;AAII;AAqBA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;KAOK,4BAA4B,aAAe;;;;KAI3C,oCAAoC,WAAW;AAN3B;AAEsB;AAII;AAqBA;AAgEnD;AACA,cA/EM,UA+EW,EAAA;EACA,SAAA,SAAA,EAAA,IAAA;EACA,SAAA,sBAAoB,EAAA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA9D/B,wBAAsC,gBAAA,CAAtB;UA2DL,oBAAA;UACA,yBAAA;UACA,yBAAA;UACA,oBAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "intlayer",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.5.0-canary.0",
|
|
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": [
|
|
@@ -91,10 +91,10 @@
|
|
|
91
91
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
92
92
|
},
|
|
93
93
|
"dependencies": {
|
|
94
|
-
"@intlayer/cli": "7.
|
|
95
|
-
"@intlayer/config": "7.
|
|
96
|
-
"@intlayer/core": "7.
|
|
97
|
-
"@intlayer/types": "7.
|
|
94
|
+
"@intlayer/cli": "7.5.0-canary.0",
|
|
95
|
+
"@intlayer/config": "7.5.0-canary.0",
|
|
96
|
+
"@intlayer/core": "7.5.0-canary.0",
|
|
97
|
+
"@intlayer/types": "7.5.0-canary.0"
|
|
98
98
|
},
|
|
99
99
|
"devDependencies": {
|
|
100
100
|
"@types/node": "24.10.1",
|