intlayer 9.4.3 → 9.4.4

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.
@@ -53,13 +53,13 @@ declare const configuration: Pick<IntlayerConfig, 'editor' | 'internationalizati
53
53
  * Returns the configuration of Intlayer.
54
54
  */
55
55
  declare const getConfiguration: () => Pick<IntlayerConfig, "editor" | "internationalization" | "log" | "routing">;
56
- interface __DictionaryRegistry {}
57
- interface __DeclaredLocalesRegistry {}
58
- interface __RequiredLocalesRegistry {}
59
- interface __SchemaRegistry {}
60
- interface __StrictModeRegistry {}
61
- interface __EditorRegistry {}
62
- interface __RoutingRegistry {}
56
+ export interface __DictionaryRegistry {}
57
+ export interface __DeclaredLocalesRegistry {}
58
+ export interface __RequiredLocalesRegistry {}
59
+ export interface __SchemaRegistry {}
60
+ export interface __StrictModeRegistry {}
61
+ export interface __EditorRegistry {}
62
+ export interface __RoutingRegistry {}
63
63
  //#endregion
64
- export { ALL_LOCALES, type ContentNode, type DeclarationContent, type DeclaredLocales, type Dictionary, type GenerateSitemapOptions, Intl, type CustomIntlayerConfig as IntlayerConfig, type Locale, LocaleStorageClient, LocaleStorageServer, Locales, type LocalesValues, type RequiredLocales, type SitemapUrlEntry, type StrictModeLocaleMap, __DeclaredLocalesRegistry, __DictionaryRegistry, __EditorRegistry, __RequiredLocalesRegistry, __RoutingRegistry, __SchemaRegistry, __StrictModeRegistry, compact, comparePaths, cond, configuration, currency, date, defaultLocale, editor, enu, file, gender, generateSitemap, generateSitemapUrl, getBrowserLocale, getCanonicalPath, getConfiguration, getCookie, getDictionary, getDictionaryAsync, getEnumeration, getEnumerationContent, getHTMLTextDir, getIntlayer, getIntlayerAsync, getLocale, getLocaleFromPath, getLocaleFromStorage, getLocaleFromStorageClient, getLocaleFromStorageServer, getLocaleLang, getLocaleName, getLocalizedPath, getLocalizedUrl, getMarkdownMetadata, getMultilingualUrls, getNesting, getPathWithoutLocale, getPrefix, getRewriteRules, getTranslation, getTranslationContent, html, insert, isDeclaredLocale, localeDetector, localeFlatMap, localeMap, localeRecord, localeResolver, locales, md, nest, normalizePath, number, percentage, plural, relativeTime, requiredLocales, select, setLocaleInStorage, setLocaleInStorageClient, setLocaleInStorageServer, t, units, validatePrefix };
64
+ export { ALL_LOCALES, type ContentNode, type DeclarationContent, type DeclaredLocales, type Dictionary, type GenerateSitemapOptions, Intl, type CustomIntlayerConfig as IntlayerConfig, type Locale, LocaleStorageClient, LocaleStorageServer, Locales, type LocalesValues, type RequiredLocales, type SitemapUrlEntry, type StrictModeLocaleMap, compact, comparePaths, cond, configuration, currency, date, defaultLocale, editor, enu, file, gender, generateSitemap, generateSitemapUrl, getBrowserLocale, getCanonicalPath, getConfiguration, getCookie, getDictionary, getDictionaryAsync, getEnumeration, getEnumerationContent, getHTMLTextDir, getIntlayer, getIntlayerAsync, getLocale, getLocaleFromPath, getLocaleFromStorage, getLocaleFromStorageClient, getLocaleFromStorageServer, getLocaleLang, getLocaleName, getLocalizedPath, getLocalizedUrl, getMarkdownMetadata, getMultilingualUrls, getNesting, getPathWithoutLocale, getPrefix, getRewriteRules, getTranslation, getTranslationContent, html, insert, isDeclaredLocale, localeDetector, localeFlatMap, localeMap, localeRecord, localeResolver, locales, md, nest, normalizePath, number, percentage, plural, relativeTime, requiredLocales, select, setLocaleInStorage, setLocaleInStorageClient, setLocaleInStorageServer, t, units, validatePrefix };
65
65
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;KAoBK,WACH,eACA,kBAAkB,sCAChB,aAAe,GAAG;;;;;;KAOjB,mBACH,eACA,kBAAkB,sCAChB,WAAW,GAAG;;;;cAgCZ;;;;cAKA;;;;cAKA;;;;;;;cAQA,eAAe,KACnB;;;;cAaI,wBAAgB,KAAA;UA0GL;UACA;UACA;UACA;UACA;UACA;UACA"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;KAoBK,WACH,eACA,kBAAkB,sCAChB,aAAe,GAAG;;;;;;KAOjB,mBACH,eACA,kBAAkB,sCAChB,WAAW,GAAG;;;;cAgCZ;;;;cAKA;;;;cAKA;;;;;;;cAQA,eAAe,KACnB;;;;cAaI,wBAAgB,KAAA;iBA0GL;iBACA;iBACA;iBACA;iBACA;iBACA;iBACA"}
@@ -9,7 +9,7 @@ import { StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
9
9
  * - Optional catch-all: `[[...slug]]` (0+)
10
10
  * - Locale: `[locale]`
11
11
  */
12
- declare const nextjsRewrite: <T extends string = string>(rules: Record<T, Partial<StrictModeLocaleMap<string>>>) => RewriteObject;
12
+ export declare const nextjsRewrite: <T extends string = string>(rules: Record<T, Partial<StrictModeLocaleMap<string>>>) => RewriteObject;
13
13
  /**
14
14
  * Formatter for SvelteKit style rewrites.
15
15
  * Patterns use SvelteKit dynamic routing syntax:
@@ -17,7 +17,7 @@ declare const nextjsRewrite: <T extends string = string>(rules: Record<T, Partia
17
17
  * - Catch-all: `[...slug]` (0+)
18
18
  * - Locale: `[locale]`
19
19
  */
20
- declare const svelteKitRewrite: <T extends string = string>(rules: Record<T, Partial<StrictModeLocaleMap<string>>>) => RewriteObject;
20
+ export declare const svelteKitRewrite: <T extends string = string>(rules: Record<T, Partial<StrictModeLocaleMap<string>>>) => RewriteObject;
21
21
  /**
22
22
  * Formatter for React Router style rewrites.
23
23
  * Patterns use React Router dynamic routing syntax:
@@ -26,7 +26,7 @@ declare const svelteKitRewrite: <T extends string = string>(rules: Record<T, Par
26
26
  * - Catch-all: `*`
27
27
  * - Locale: `:locale`
28
28
  */
29
- declare const reactRouterRewrite: <T extends string = string>(rules: Record<T, Partial<StrictModeLocaleMap<string>>>) => RewriteObject;
29
+ export declare const reactRouterRewrite: <T extends string = string>(rules: Record<T, Partial<StrictModeLocaleMap<string>>>) => RewriteObject;
30
30
  /**
31
31
  * Formatter for Vue style rewrites.
32
32
  * Patterns use Vue Router 4 dynamic routing syntax:
@@ -35,7 +35,7 @@ declare const reactRouterRewrite: <T extends string = string>(rules: Record<T, P
35
35
  * - Catch-all: `:slug*` or `:slug+`
36
36
  * - Locale: `:locale`
37
37
  */
38
- declare const vueRouterRewrite: <T extends string = string>(rules: Record<T, Partial<StrictModeLocaleMap<string>>>) => RewriteObject;
38
+ export declare const vueRouterRewrite: <T extends string = string>(rules: Record<T, Partial<StrictModeLocaleMap<string>>>) => RewriteObject;
39
39
  /**
40
40
  * Formatter for Solid Router style rewrites.
41
41
  * Patterns use Solid Router dynamic routing syntax:
@@ -43,7 +43,7 @@ declare const vueRouterRewrite: <T extends string = string>(rules: Record<T, Par
43
43
  * - Catch-all: `*slug`
44
44
  * - Locale: `:locale`
45
45
  */
46
- declare const solidRouterRewrite: <T extends string = string>(rules: Record<T, Partial<StrictModeLocaleMap<string>>>) => RewriteObject;
46
+ export declare const solidRouterRewrite: <T extends string = string>(rules: Record<T, Partial<StrictModeLocaleMap<string>>>) => RewriteObject;
47
47
  /**
48
48
  * Formatter for Nuxt style rewrites.
49
49
  * Patterns use Nuxt 3 dynamic routing syntax:
@@ -51,7 +51,7 @@ declare const solidRouterRewrite: <T extends string = string>(rules: Record<T, P
51
51
  * - Catch-all: `[...slug]` (0+)
52
52
  * - Locale: `[locale]`
53
53
  */
54
- declare const nuxtRewrite: <T extends string = string>(rules: Record<T, Partial<StrictModeLocaleMap<string>>>) => RewriteObject;
54
+ export declare const nuxtRewrite: <T extends string = string>(rules: Record<T, Partial<StrictModeLocaleMap<string>>>) => RewriteObject;
55
55
  /**
56
56
  * Formatter for TanStack Router style rewrites.
57
57
  * Patterns use TanStack Router dynamic routing syntax:
@@ -59,12 +59,11 @@ declare const nuxtRewrite: <T extends string = string>(rules: Record<T, Partial<
59
59
  * - Catch-all: `*`
60
60
  * - Locale: `$locale`
61
61
  */
62
- declare const tanstackRouterRewrite: <T extends string = string>(rules: Record<T, Partial<StrictModeLocaleMap<string>>>) => RewriteObject;
62
+ export declare const tanstackRouterRewrite: <T extends string = string>(rules: Record<T, Partial<StrictModeLocaleMap<string>>>) => RewriteObject;
63
63
  /**
64
64
  * Generic formatter for Vite-based projects.
65
65
  * Supports most dynamic routing syntaxes and normalizes them for the Vite proxy.
66
66
  */
67
- declare const viteRewrite: <T extends string = string>(rules: Record<T, Partial<StrictModeLocaleMap<string>>>) => RewriteObject;
67
+ export declare const viteRewrite: <T extends string = string>(rules: Record<T, Partial<StrictModeLocaleMap<string>>>) => RewriteObject;
68
68
  //#endregion
69
- export { nextjsRewrite, nuxtRewrite, reactRouterRewrite, solidRouterRewrite, svelteKitRewrite, tanstackRouterRewrite, viteRewrite, vueRouterRewrite };
70
69
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/routing/index.ts"],"mappings":";;;;;;;;;;;cAyGa,gBAtBV,2BAAgB,OACR,OAAO,GAAG,QAAQ,kCACxB;;;;;;;;cA6BQ,mBA/BV,2BAAgB,OACR,OAAO,GAAG,QAAQ,kCACxB;;;;;;;;;cAuCQ,qBAzCV,2BAAgB,OACR,OAAO,GAAG,QAAQ,kCACxB;;;;;;;;;cAiDQ,mBAnDV,2BAAgB,OACR,OAAO,GAAG,QAAQ,kCACxB;;;;;;;;cA0DQ,qBA5DV,2BAAgB,OACR,OAAO,GAAG,QAAQ,kCACxB;;;;;;;;cAmEQ,cArEV,2BAAgB,OACR,OAAO,GAAG,QAAQ,kCACxB;;;;;;;;cA4EQ,wBA9EV,2BAAgB,OACR,OAAO,GAAG,QAAQ,kCACxB;;;;;cAkFQ,cApFV,2BAAgB,OACR,OAAO,GAAG,QAAQ,kCACxB"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/routing/index.ts"],"mappings":";;;;;;;;;;;qBAyGa,gBAtBV,2BAAgB,OACR,OAAO,GAAG,QAAQ,kCACxB;;;;;;;;qBA6BQ,mBA/BV,2BAAgB,OACR,OAAO,GAAG,QAAQ,kCACxB;;;;;;;;;qBAuCQ,qBAzCV,2BAAgB,OACR,OAAO,GAAG,QAAQ,kCACxB;;;;;;;;;qBAiDQ,mBAnDV,2BAAgB,OACR,OAAO,GAAG,QAAQ,kCACxB;;;;;;;;qBA0DQ,qBA5DV,2BAAgB,OACR,OAAO,GAAG,QAAQ,kCACxB;;;;;;;;qBAmEQ,cArEV,2BAAgB,OACR,OAAO,GAAG,QAAQ,kCACxB;;;;;;;;qBA4EQ,wBA9EV,2BAAgB,OACR,OAAO,GAAG,QAAQ,kCACxB;;;;;qBAkFQ,cApFV,2BAAgB,OACR,OAAO,GAAG,QAAQ,kCACxB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intlayer",
3
- "version": "9.4.3",
3
+ "version": "9.4.4",
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": "9.4.3",
99
- "@intlayer/config": "9.4.3",
100
- "@intlayer/core": "9.4.3",
101
- "@intlayer/types": "9.4.3"
98
+ "@intlayer/cli": "9.4.4",
99
+ "@intlayer/config": "9.4.4",
100
+ "@intlayer/core": "9.4.4",
101
+ "@intlayer/types": "9.4.4"
102
102
  },
103
103
  "devDependencies": {
104
104
  "@types/node": "26.4.1",
@@ -106,9 +106,9 @@
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.14",
109
+ "tsdown": "0.23.0",
110
110
  "typescript": "7.0.2",
111
- "vitest": "4.1.11"
111
+ "vitest": "5.0.0"
112
112
  },
113
113
  "engines": {
114
114
  "node": ">=14.18"