intlayer 8.5.2 → 8.6.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.
@@ -50,6 +50,18 @@ Object.defineProperty(exports, 'Intl', {
50
50
  return _intlayer_core_formatters.Intl;
51
51
  }
52
52
  });
53
+ Object.defineProperty(exports, 'LocaleStorageClient', {
54
+ enumerable: true,
55
+ get: function () {
56
+ return _intlayer_core_utils.LocaleStorageClient;
57
+ }
58
+ });
59
+ Object.defineProperty(exports, 'LocaleStorageServer', {
60
+ enumerable: true,
61
+ get: function () {
62
+ return _intlayer_core_utils.LocaleStorageServer;
63
+ }
64
+ });
53
65
  Object.defineProperty(exports, 'Locales', {
54
66
  enumerable: true,
55
67
  get: function () {
@@ -100,6 +112,18 @@ Object.defineProperty(exports, 'gender', {
100
112
  return _intlayer_core_transpiler.gender;
101
113
  }
102
114
  });
115
+ Object.defineProperty(exports, 'generateSitemap', {
116
+ enumerable: true,
117
+ get: function () {
118
+ return _intlayer_core_localization.generateSitemap;
119
+ }
120
+ });
121
+ Object.defineProperty(exports, 'generateSitemapUrl', {
122
+ enumerable: true,
123
+ get: function () {
124
+ return _intlayer_core_localization.generateSitemapUrl;
125
+ }
126
+ });
103
127
  Object.defineProperty(exports, 'getBrowserLocale', {
104
128
  enumerable: true,
105
129
  get: function () {
@@ -167,6 +191,18 @@ Object.defineProperty(exports, 'getLocaleFromStorage', {
167
191
  return _intlayer_core_utils.getLocaleFromStorage;
168
192
  }
169
193
  });
194
+ Object.defineProperty(exports, 'getLocaleFromStorageClient', {
195
+ enumerable: true,
196
+ get: function () {
197
+ return _intlayer_core_utils.getLocaleFromStorageClient;
198
+ }
199
+ });
200
+ Object.defineProperty(exports, 'getLocaleFromStorageServer', {
201
+ enumerable: true,
202
+ get: function () {
203
+ return _intlayer_core_utils.getLocaleFromStorageServer;
204
+ }
205
+ });
170
206
  Object.defineProperty(exports, 'getLocaleLang', {
171
207
  enumerable: true,
172
208
  get: function () {
@@ -319,6 +355,18 @@ Object.defineProperty(exports, 'setLocaleInStorage', {
319
355
  return _intlayer_core_utils.setLocaleInStorage;
320
356
  }
321
357
  });
358
+ Object.defineProperty(exports, 'setLocaleInStorageClient', {
359
+ enumerable: true,
360
+ get: function () {
361
+ return _intlayer_core_utils.setLocaleInStorageClient;
362
+ }
363
+ });
364
+ Object.defineProperty(exports, 'setLocaleInStorageServer', {
365
+ enumerable: true,
366
+ get: function () {
367
+ return _intlayer_core_utils.setLocaleInStorageServer;
368
+ }
369
+ });
322
370
  Object.defineProperty(exports, 't', {
323
371
  enumerable: true,
324
372
  get: function () {
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":["configuration"],"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 type {\n LocalesValues,\n StrictModeLocaleMap,\n} from '@intlayer/types/module_augmentation';\n\nimport * as Locales from '@intlayer/types/locales';\nexport type { DeclarationContent, Dictionary, IntlayerConfig };\n\n/**\n * Rexport using named import because πof Tsup bug in CJS\n */\n/**\n * The configuration of Intlayer.\n */\nimport configuration from '@intlayer/config/built';\n\n/**\n * Returns the configuration of Intlayer.\n */\nconst getConfiguration = () => configuration;\n\n/**\n * The locales defined in the configuration.\n */\nconst locales = configuration.internationalization.locales;\n\n/**\n * The required locales defined in the configuration.\n */\nconst requiredLocales = configuration.internationalization.requiredLocales;\n\n/**\n * The default locale defined in the configuration.\n */\nconst defaultLocale = configuration.internationalization.defaultLocale;\n\n// Reexport here for CJS compatibility\n// Fix ReferenceError: Cannot access 'xxx' before initialization\nexport {\n configuration,\n getConfiguration,\n locales,\n requiredLocales,\n defaultLocale,\n Locales,\n};\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 {\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 t,\n} from '@intlayer/core/transpiler';\nexport {\n getCookie,\n getLocaleFromStorage,\n setLocaleInStorage,\n} from '@intlayer/core/utils';\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":";;;;;;;;;;;;;;;;;;;;;;;;;AAqDA,MAAM,yBAAyBA;;;;AAK/B,MAAM,UAAUA,+BAAc,qBAAqB;;;;AAKnD,MAAM,kBAAkBA,+BAAc,qBAAqB;;;;AAK3D,MAAM,gBAAgBA,+BAAc,qBAAqB"}
1
+ {"version":3,"file":"index.cjs","names":["configuration"],"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 type {\n LocalesValues,\n StrictModeLocaleMap,\n} from '@intlayer/types/module_augmentation';\n\nimport * as Locales from '@intlayer/types/locales';\n\nexport type { DeclarationContent, Dictionary, IntlayerConfig };\n\n/**\n * Rexport using named import because πof Tsup bug in CJS\n */\n/**\n * The configuration of Intlayer.\n */\nimport configuration from '@intlayer/config/built';\n\n/**\n * Returns the configuration of Intlayer.\n */\nconst getConfiguration = () => configuration;\n\n/**\n * The locales defined in the configuration.\n */\nconst locales = configuration.internationalization.locales;\n\n/**\n * The required locales defined in the configuration.\n */\nconst requiredLocales = configuration.internationalization.requiredLocales;\n\n/**\n * The default locale defined in the configuration.\n */\nconst defaultLocale = configuration.internationalization.defaultLocale;\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 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// Reexport here for CJS compatibility\n// Fix ReferenceError: Cannot access 'xxx' before initialization\nexport {\n configuration,\n defaultLocale,\n getConfiguration,\n Locales,\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":";;;;;;;;;;;;;;;;;;;;;;;;;AAsDA,MAAM,yBAAyBA;;;;AAK/B,MAAM,UAAUA,+BAAc,qBAAqB;;;;AAKnD,MAAM,kBAAkBA,+BAAc,qBAAqB;;;;AAK3D,MAAM,gBAAgBA,+BAAc,qBAAqB"}
@@ -4,10 +4,10 @@ import configuration from "@intlayer/config/built";
4
4
  import { file } from "@intlayer/core/file";
5
5
  import { Intl, compact, currency, date, number, percentage, relativeTime, units } from "@intlayer/core/formatters";
6
6
  import { getDictionary, getEnumeration, getEnumeration as getEnumerationContent, getIntlayer, getNesting, getTranslation, getTranslation as getTranslationContent } from "@intlayer/core/interpreter";
7
- import { getBrowserLocale, getCanonicalPath, getHTMLTextDir, getLocale, getLocaleFromPath, getLocaleLang, getLocaleName, getLocalizedPath, getLocalizedUrl, getMultilingualUrls, getPathWithoutLocale, getPrefix, getRewriteRules, localeDetector, localeFlatMap, localeMap, localeRecord, localeResolver, validatePrefix } from "@intlayer/core/localization";
7
+ import { generateSitemap, generateSitemapUrl, getBrowserLocale, getCanonicalPath, getHTMLTextDir, getLocale, getLocaleFromPath, getLocaleLang, getLocaleName, getLocalizedPath, getLocalizedUrl, getMultilingualUrls, getPathWithoutLocale, getPrefix, getRewriteRules, localeDetector, localeFlatMap, localeMap, localeRecord, localeResolver, validatePrefix } from "@intlayer/core/localization";
8
8
  import { getMarkdownMetadata } from "@intlayer/core/markdown";
9
9
  import { cond, enu, gender, html, insert, md, nest, t } from "@intlayer/core/transpiler";
10
- import { getCookie, getLocaleFromStorage, setLocaleInStorage } from "@intlayer/core/utils";
10
+ import { LocaleStorageClient, LocaleStorageServer, getCookie, getLocaleFromStorage, getLocaleFromStorageClient, getLocaleFromStorageServer, setLocaleInStorage, setLocaleInStorageClient, setLocaleInStorageServer } from "@intlayer/core/utils";
11
11
 
12
12
  //#region src/index.ts
13
13
  /**
@@ -34,5 +34,5 @@ const requiredLocales = configuration.internationalization.requiredLocales;
34
34
  const defaultLocale = configuration.internationalization.defaultLocale;
35
35
 
36
36
  //#endregion
37
- export { ALL_LOCALES, Intl, Locales, compact, cond, configuration, currency, date, defaultLocale, enu, file, gender, getBrowserLocale, getCanonicalPath, getConfiguration, getCookie, getDictionary, getEnumeration, getEnumerationContent, getHTMLTextDir, getIntlayer, getLocale, getLocaleFromPath, getLocaleFromStorage, getLocaleLang, getLocaleName, getLocalizedPath, getLocalizedUrl, getMarkdownMetadata, getMultilingualUrls, getNesting, getPathWithoutLocale, getPrefix, getRewriteRules, getTranslation, getTranslationContent, html, insert, localeDetector, localeFlatMap, localeMap, localeRecord, localeResolver, locales, md, nest, number, percentage, relativeTime, requiredLocales, setLocaleInStorage, t, units, validatePrefix };
37
+ export { ALL_LOCALES, Intl, LocaleStorageClient, LocaleStorageServer, Locales, compact, cond, configuration, currency, date, defaultLocale, 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, relativeTime, requiredLocales, setLocaleInStorage, setLocaleInStorageClient, setLocaleInStorageServer, t, units, validatePrefix };
38
38
  //# sourceMappingURL=index.mjs.map
@@ -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 type {\n LocalesValues,\n StrictModeLocaleMap,\n} from '@intlayer/types/module_augmentation';\n\nimport * as Locales from '@intlayer/types/locales';\nexport type { DeclarationContent, Dictionary, IntlayerConfig };\n\n/**\n * Rexport using named import because πof Tsup bug in CJS\n */\n/**\n * The configuration of Intlayer.\n */\nimport configuration from '@intlayer/config/built';\n\n/**\n * Returns the configuration of Intlayer.\n */\nconst getConfiguration = () => configuration;\n\n/**\n * The locales defined in the configuration.\n */\nconst locales = configuration.internationalization.locales;\n\n/**\n * The required locales defined in the configuration.\n */\nconst requiredLocales = configuration.internationalization.requiredLocales;\n\n/**\n * The default locale defined in the configuration.\n */\nconst defaultLocale = configuration.internationalization.defaultLocale;\n\n// Reexport here for CJS compatibility\n// Fix ReferenceError: Cannot access 'xxx' before initialization\nexport {\n configuration,\n getConfiguration,\n locales,\n requiredLocales,\n defaultLocale,\n Locales,\n};\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 {\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 t,\n} from '@intlayer/core/transpiler';\nexport {\n getCookie,\n getLocaleFromStorage,\n setLocaleInStorage,\n} from '@intlayer/core/utils';\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":";;;;;;;;;;;;;;;;;;;;;AAqDA,MAAM,yBAAyB;;;;AAK/B,MAAM,UAAU,cAAc,qBAAqB;;;;AAKnD,MAAM,kBAAkB,cAAc,qBAAqB;;;;AAK3D,MAAM,gBAAgB,cAAc,qBAAqB"}
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 type {\n LocalesValues,\n StrictModeLocaleMap,\n} from '@intlayer/types/module_augmentation';\n\nimport * as Locales from '@intlayer/types/locales';\n\nexport type { DeclarationContent, Dictionary, IntlayerConfig };\n\n/**\n * Rexport using named import because πof Tsup bug in CJS\n */\n/**\n * The configuration of Intlayer.\n */\nimport configuration from '@intlayer/config/built';\n\n/**\n * Returns the configuration of Intlayer.\n */\nconst getConfiguration = () => configuration;\n\n/**\n * The locales defined in the configuration.\n */\nconst locales = configuration.internationalization.locales;\n\n/**\n * The required locales defined in the configuration.\n */\nconst requiredLocales = configuration.internationalization.requiredLocales;\n\n/**\n * The default locale defined in the configuration.\n */\nconst defaultLocale = configuration.internationalization.defaultLocale;\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 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// Reexport here for CJS compatibility\n// Fix ReferenceError: Cannot access 'xxx' before initialization\nexport {\n configuration,\n defaultLocale,\n getConfiguration,\n Locales,\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":";;;;;;;;;;;;;;;;;;;;;AAsDA,MAAM,yBAAyB;;;;AAK/B,MAAM,UAAU,cAAc,qBAAqB;;;;AAKnD,MAAM,kBAAkB,cAAc,qBAAqB;;;;AAK3D,MAAM,gBAAgB,cAAc,qBAAqB"}
@@ -1,6 +1,6 @@
1
- import * as _intlayer_types_config0 from "@intlayer/types/config";
1
+ import * as _$_intlayer_types_config0 from "@intlayer/types/config";
2
2
  import { CustomIntlayerConfig as IntlayerConfig } from "@intlayer/types/config";
3
- import * as _intlayer_types_allLocales0 from "@intlayer/types/allLocales";
3
+ import * as _$_intlayer_types_allLocales0 from "@intlayer/types/allLocales";
4
4
  import { ALL_LOCALES, Locale } from "@intlayer/types/allLocales";
5
5
  import { ContentNode, Dictionary as Dictionary$1 } from "@intlayer/types/dictionary";
6
6
  import { LocalesValues, SchemaKeys, StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
@@ -9,10 +9,10 @@ import configuration from "@intlayer/config/built";
9
9
  import { file } from "@intlayer/core/file";
10
10
  import { Intl, compact, currency, date, number, percentage, relativeTime, units } from "@intlayer/core/formatters";
11
11
  import { getDictionary, getEnumeration, getEnumeration as getEnumerationContent, getIntlayer, getNesting, getTranslation, getTranslation as getTranslationContent } from "@intlayer/core/interpreter";
12
- import { getBrowserLocale, getCanonicalPath, getHTMLTextDir, getLocale, getLocaleFromPath, getLocaleLang, getLocaleName, getLocalizedPath, getLocalizedUrl, getMultilingualUrls, getPathWithoutLocale, getPrefix, getRewriteRules, localeDetector, localeFlatMap, localeMap, localeRecord, localeResolver, validatePrefix } from "@intlayer/core/localization";
12
+ import { GenerateSitemapOptions, SitemapUrlEntry, generateSitemap, generateSitemapUrl, getBrowserLocale, getCanonicalPath, getHTMLTextDir, getLocale, getLocaleFromPath, getLocaleLang, getLocaleName, getLocalizedPath, getLocalizedUrl, getMultilingualUrls, getPathWithoutLocale, getPrefix, getRewriteRules, localeDetector, localeFlatMap, localeMap, localeRecord, localeResolver, validatePrefix } from "@intlayer/core/localization";
13
13
  import { getMarkdownMetadata } from "@intlayer/core/markdown";
14
14
  import { cond, enu, gender, html, insert, md, nest, t } from "@intlayer/core/transpiler";
15
- import { getCookie, getLocaleFromStorage, setLocaleInStorage } from "@intlayer/core/utils";
15
+ import { LocaleStorageClient, LocaleStorageServer, getCookie, getLocaleFromStorage, getLocaleFromStorageClient, getLocaleFromStorageServer, setLocaleInStorage, setLocaleInStorageClient, setLocaleInStorageServer } from "@intlayer/core/utils";
16
16
 
17
17
  //#region src/index.d.ts
18
18
  /**
@@ -36,19 +36,19 @@ type DeclarationContent<T = undefined, SchemaKey extends SchemaKeys | undefined
36
36
  /**
37
37
  * Returns the configuration of Intlayer.
38
38
  */
39
- declare const getConfiguration: () => _intlayer_types_config0.IntlayerConfig;
39
+ declare const getConfiguration: () => _$_intlayer_types_config0.IntlayerConfig;
40
40
  /**
41
41
  * The locales defined in the configuration.
42
42
  */
43
- declare const locales: _intlayer_types_allLocales0.Locale[];
43
+ declare const locales: _$_intlayer_types_allLocales0.Locale[];
44
44
  /**
45
45
  * The required locales defined in the configuration.
46
46
  */
47
- declare const requiredLocales: _intlayer_types_allLocales0.Locale[];
47
+ declare const requiredLocales: _$_intlayer_types_allLocales0.Locale[];
48
48
  /**
49
49
  * The default locale defined in the configuration.
50
50
  */
51
- declare const defaultLocale: _intlayer_types_allLocales0.Locale;
51
+ declare const defaultLocale: _$_intlayer_types_allLocales0.Locale;
52
52
  interface __DictionaryRegistry {}
53
53
  interface __DeclaredLocalesRegistry {}
54
54
  interface __RequiredLocalesRegistry {}
@@ -56,5 +56,5 @@ interface __SchemaRegistry {}
56
56
  interface __StrictModeRegistry {}
57
57
  interface __EditorRegistry {}
58
58
  //#endregion
59
- export { ALL_LOCALES, type ContentNode, type DeclarationContent, type Dictionary, Intl, type IntlayerConfig, type Locale, Locales, type LocalesValues, type StrictModeLocaleMap, __DeclaredLocalesRegistry, __DictionaryRegistry, __EditorRegistry, __RequiredLocalesRegistry, __SchemaRegistry, __StrictModeRegistry, compact, cond, configuration, currency, date, defaultLocale, enu, file, gender, getBrowserLocale, getCanonicalPath, getConfiguration, getCookie, getDictionary, getEnumeration, getEnumerationContent, getHTMLTextDir, getIntlayer, getLocale, getLocaleFromPath, getLocaleFromStorage, getLocaleLang, getLocaleName, getLocalizedPath, getLocalizedUrl, getMarkdownMetadata, getMultilingualUrls, getNesting, getPathWithoutLocale, getPrefix, getRewriteRules, getTranslation, getTranslationContent, html, insert, localeDetector, localeFlatMap, localeMap, localeRecord, localeResolver, locales, md, nest, number, percentage, relativeTime, requiredLocales, setLocaleInStorage, t, units, validatePrefix };
59
+ export { ALL_LOCALES, type ContentNode, type DeclarationContent, type Dictionary, type GenerateSitemapOptions, Intl, type IntlayerConfig, type Locale, LocaleStorageClient, LocaleStorageServer, Locales, type LocalesValues, type SitemapUrlEntry, type StrictModeLocaleMap, __DeclaredLocalesRegistry, __DictionaryRegistry, __EditorRegistry, __RequiredLocalesRegistry, __SchemaRegistry, __StrictModeRegistry, compact, cond, configuration, currency, date, defaultLocale, 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, relativeTime, requiredLocales, setLocaleInStorage, setLocaleInStorageClient, setLocaleInStorageServer, t, units, validatePrefix };
60
60
  //# sourceMappingURL=index.d.ts.map
@@ -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;;AAhBgD;;;;KAuBjE,kBAAA,kCAEe,UAAA,4BAChB,UAAA,CAAW,CAAA,EAAG,SAAA;AAVa;;;AAAA,cAiCzB,gBAAA,QAAsC,uBAAA,CAAtB,cAAA;;;;cAKhB,OAAA,EAAoD,2BAAA,CAA7C,MAAA;;;;cAKP,eAAA,EAAoE,2BAAA,CAArD,MAAA;;;;cAKf,aAAA,EAAgE,2BAAA,CAAnD,MAAA;AAAA,UA8EF,oBAAA;AAAA,UACA,yBAAA;AAAA,UACA,yBAAA;AAAA,UACA,gBAAA;AAAA,UACA,oBAAA;AAAA,UACA,gBAAA"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;KAiBK,UAAA,kCAEe,UAAA,4BAChB,YAAA,CAAe,CAAA,EAAG,SAAA;;AAhBgD;;;;KAuBjE,kBAAA,kCAEe,UAAA,4BAChB,UAAA,CAAW,CAAA,EAAG,SAAA;AAVa;;;AAAA,cAkCzB,gBAAA,QAAsC,yBAAA,CAAtB,cAAA;;;;cAKhB,OAAA,EAAoD,6BAAA,CAA7C,MAAA;;;;cAKP,eAAA,EAAoE,6BAAA,CAArD,MAAA;;;;cAKf,aAAA,EAAgE,6BAAA,CAAnD,MAAA;AAAA,UA+FF,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.5.2",
3
+ "version": "8.6.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": [
@@ -98,10 +98,10 @@
98
98
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
99
99
  },
100
100
  "dependencies": {
101
- "@intlayer/cli": "8.5.2",
102
- "@intlayer/config": "8.5.1",
103
- "@intlayer/core": "8.5.2",
104
- "@intlayer/types": "8.5.2"
101
+ "@intlayer/cli": "8.6.1",
102
+ "@intlayer/config": "8.6.1",
103
+ "@intlayer/core": "8.6.1",
104
+ "@intlayer/types": "8.6.1"
105
105
  },
106
106
  "devDependencies": {
107
107
  "@types/node": "25.5.0",
@@ -109,9 +109,9 @@
109
109
  "@utils/ts-config-types": "1.0.4",
110
110
  "@utils/tsdown-config": "1.0.4",
111
111
  "rimraf": "6.1.3",
112
- "tsdown": "0.21.4",
112
+ "tsdown": "0.21.7",
113
113
  "typescript": "6.0.2",
114
- "vitest": "4.1.1"
114
+ "vitest": "4.1.2"
115
115
  },
116
116
  "engines": {
117
117
  "node": ">=14.18"