@intlayer/next-intl 9.4.2 → 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.
Files changed (39) hide show
  1. package/dist/types/client/NextIntlClientProvider.d.ts +2 -3
  2. package/dist/types/client/NextIntlClientProvider.d.ts.map +1 -1
  3. package/dist/types/client/useLocale.d.ts +1 -2
  4. package/dist/types/client/useLocale.d.ts.map +1 -1
  5. package/dist/types/getDictionary.d.ts +1 -2
  6. package/dist/types/getDictionary.d.ts.map +1 -1
  7. package/dist/types/getDictionaryDynamic.d.ts +1 -2
  8. package/dist/types/getDictionaryDynamic.d.ts.map +1 -1
  9. package/dist/types/middleware.d.ts +2 -2
  10. package/dist/types/middleware.d.ts.map +1 -1
  11. package/dist/types/navigation/Link.d.ts +2 -3
  12. package/dist/types/navigation/Link.d.ts.map +1 -1
  13. package/dist/types/navigation/createNavigation.d.ts +2 -2
  14. package/dist/types/navigation/createNavigation.d.ts.map +1 -1
  15. package/dist/types/navigation/hooks.d.ts +2 -3
  16. package/dist/types/navigation/hooks.d.ts.map +1 -1
  17. package/dist/types/navigation/localizeHref.d.ts +2 -3
  18. package/dist/types/navigation/localizeHref.d.ts.map +1 -1
  19. package/dist/types/plugin/index.d.ts +2 -2
  20. package/dist/types/plugin/index.d.ts.map +1 -1
  21. package/dist/types/routing.d.ts +2 -3
  22. package/dist/types/routing.d.ts.map +1 -1
  23. package/dist/types/server/getLocale.d.ts +1 -2
  24. package/dist/types/server/getLocale.d.ts.map +1 -1
  25. package/dist/types/server/getMessages.d.ts +1 -2
  26. package/dist/types/server/getMessages.d.ts.map +1 -1
  27. package/dist/types/server/getRequestConfig.d.ts +2 -2
  28. package/dist/types/server/getRequestConfig.d.ts.map +1 -1
  29. package/dist/types/server/getTranslations.d.ts +1 -2
  30. package/dist/types/server/getTranslations.d.ts.map +1 -1
  31. package/dist/types/server/helpers.d.ts +3 -4
  32. package/dist/types/server/helpers.d.ts.map +1 -1
  33. package/dist/types/server/requestLocaleCache.d.ts +2 -3
  34. package/dist/types/server/requestLocaleCache.d.ts.map +1 -1
  35. package/dist/types/server/setLocale.d.ts +1 -2
  36. package/dist/types/server/setLocale.d.ts.map +1 -1
  37. package/dist/types/server/setRequestLocale.d.ts +1 -2
  38. package/dist/types/server/setRequestLocale.d.ts.map +1 -1
  39. package/package.json +12 -12
@@ -7,11 +7,11 @@ import { ComponentProps } from "react";
7
7
  * `messages`, `timeZone`, and `now` are accepted for API compatibility
8
8
  * but have no effect — Intlayer uses its own compiled dictionaries.
9
9
  */
10
- declare const NextIntlClientProvider: typeof NextIntlClientProvider$1;
10
+ export declare const NextIntlClientProvider: typeof NextIntlClientProvider$1;
11
11
  /**
12
12
  *
13
13
  */
14
- type NextIntlClientProviderProps = Omit<ComponentProps<typeof NextIntlClientProvider$1>, 'messages'> & {
14
+ export type NextIntlClientProviderProps = Omit<ComponentProps<typeof NextIntlClientProvider$1>, 'messages'> & {
15
15
  /**
16
16
  * @deprecated
17
17
  * has no use case with intlayer. Messages are loaded automatically under the hood for bundle optimization reason
@@ -23,5 +23,4 @@ type NextIntlClientProviderProps = Omit<ComponentProps<typeof NextIntlClientProv
23
23
  locale: LocalesValues;
24
24
  };
25
25
  //#endregion
26
- export { NextIntlClientProvider, NextIntlClientProviderProps };
27
26
  //# sourceMappingURL=NextIntlClientProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NextIntlClientProvider.d.ts","names":[],"sources":["../../../src/client/NextIntlClientProvider.tsx"],"mappings":";;;;;;;;;cAiBa,+BAA+B;;;;KAsDhC,8BAA8B,KACxC,sBAAsB;;;;;EAOtB;;;;EAIA,QAAQ"}
1
+ {"version":3,"file":"NextIntlClientProvider.d.ts","names":[],"sources":["../../../src/client/NextIntlClientProvider.tsx"],"mappings":";;;;;;;;;qBAiBa,+BAA+B;;;;YAsDhC,8BAA8B,KACxC,sBAAsB;;;;;EAOtB;;;;EAIA,QAAQ"}
@@ -3,7 +3,6 @@ import { useLocale as useLocale$1 } from "next-intl";
3
3
  /**
4
4
  * Drop-in for next-intl's `useLocale`.
5
5
  */
6
- declare const useLocale: typeof useLocale$1;
6
+ export declare const useLocale: typeof useLocale$1;
7
7
  //#endregion
8
- export { useLocale };
9
8
  //# sourceMappingURL=useLocale.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLocale.d.ts","names":[],"sources":["../../../src/client/useLocale.ts"],"mappings":";;;;;cAQa,kBAAkB"}
1
+ {"version":3,"file":"useLocale.d.ts","names":[],"sources":["../../../src/client/useLocale.ts"],"mappings":";;;;;qBAQa,kBAAkB"}
@@ -29,7 +29,6 @@ type GetDictionary = {
29
29
  * `getTranslations` is always awaited, so an async resolver is a drop-in
30
30
  * replacement.
31
31
  */
32
- declare const getDictionary: GetDictionary;
32
+ export declare const getDictionary: GetDictionary;
33
33
  //#endregion
34
- export { getDictionary };
35
34
  //# sourceMappingURL=getDictionary.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getDictionary.d.ts","names":[],"sources":["../../src/getDictionary.ts"],"mappings":";;;;;;;;;;KAkCK;GACF,UAAU,YAAY,uBACrB,YAAY,GACZ,iBAAiB,SAChB,QAAQ,wBAAwB,WAAW,gBAAgB;GAC7D,UAAU,YACT,YAAY,GACZ;IAAY,SAAS;MACpB,QAAQ,kBAAkB,WAAW;;;;;;;;;;;;;;;;;cAkB7B,eASP"}
1
+ {"version":3,"file":"getDictionary.d.ts","names":[],"sources":["../../src/getDictionary.ts"],"mappings":";;;;;;;;;;KAkCK;GACF,UAAU,YAAY,uBACrB,YAAY,GACZ,iBAAiB,SAChB,QAAQ,wBAAwB,WAAW,gBAAgB;GAC7D,UAAU,YACT,YAAY,GACZ;IAAY,SAAS;MACpB,QAAQ,kBAAkB,WAAW;;;;;;;;;;;;;;;;;qBAkB7B,eASP"}
@@ -17,7 +17,6 @@ type GetDictionaryDynamic = {
17
17
  * Counterpart to {@link getDictionary} for dictionaries imported lazily per
18
18
  * locale. Used internally by the build-time optimization.
19
19
  */
20
- declare const getDictionaryDynamic: GetDictionaryDynamic;
20
+ export declare const getDictionaryDynamic: GetDictionaryDynamic;
21
21
  //#endregion
22
- export { getDictionaryDynamic };
23
22
  //# sourceMappingURL=getDictionaryDynamic.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getDictionaryDynamic.d.ts","names":[],"sources":["../../src/getDictionaryDynamic.ts"],"mappings":";;;;;;;;;KAmBK;GACF,UAAU,YAAY,UAAU,gBAC/B,mBAAmB,0BAA0B,QAAQ,KACrD,KAAK,IACJ,QAAQ,kBAAkB;GAC5B,UAAU,YAAY,UAAU,gBAAgB,uBAC/C,mBAAmB,0BAA0B,QAAQ,KACrD,KAAK,GACL,iBAAiB,SAChB,QAAQ,wBAAwB,GAAG;;;;;;;;cAS3B,sBAYP"}
1
+ {"version":3,"file":"getDictionaryDynamic.d.ts","names":[],"sources":["../../src/getDictionaryDynamic.ts"],"mappings":";;;;;;;;;KAmBK;GACF,UAAU,YAAY,UAAU,gBAC/B,mBAAmB,0BAA0B,QAAQ,KACrD,KAAK,IACJ,QAAQ,kBAAkB;GAC5B,UAAU,YAAY,UAAU,gBAAgB,uBAC/C,mBAAmB,0BAA0B,QAAQ,KACrD,KAAK,GACL,iBAAiB,SAChB,QAAQ,wBAAwB,GAAG;;;;;;;;qBAS3B,sBAYP"}
@@ -15,7 +15,7 @@ import _createMiddleware from "next-intl/middleware";
15
15
  * export const config = { matcher: ['/((?!api|_next|.*\\..*).*)'] };
16
16
  * ```
17
17
  */
18
- declare const createMiddleware: typeof _createMiddleware;
18
+ export declare const createMiddleware: typeof _createMiddleware;
19
19
  //#endregion
20
- export { createMiddleware, createMiddleware as default };
20
+ export { createMiddleware as default };
21
21
  //# sourceMappingURL=middleware.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"middleware.d.ts","names":[],"sources":["../../src/middleware.ts"],"mappings":";;;;;;;;;;;;;;;;;cAmBa,yBAAyB"}
1
+ {"version":3,"file":"middleware.d.ts","names":[],"sources":["../../src/middleware.ts"],"mappings":";;;;;;;;;;;;;;;;;qBAmBa,yBAAyB"}
@@ -6,7 +6,7 @@ import NextLink from "next/link";
6
6
  * Props for the compat `Link`: identical to `next/link` except `href` accepts a
7
7
  * `next-intl` href and an optional `locale` overrides the current one.
8
8
  */
9
- type LinkProps = Omit<ComponentPropsWithoutRef<typeof NextLink>, 'href' | 'locale'> & {
9
+ export type LinkProps = Omit<ComponentPropsWithoutRef<typeof NextLink>, 'href' | 'locale'> & {
10
10
  href: NextIntlHref;
11
11
  locale?: string;
12
12
  };
@@ -15,12 +15,11 @@ type LinkProps = Omit<ComponentPropsWithoutRef<typeof NextLink>, 'href' | 'local
15
15
  * `href` with the active locale (or the `locale` prop) before delegating to
16
16
  * `next/link`.
17
17
  */
18
- declare const Link: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, keyof import("next/link").LinkProps<any>> & import("next/link").LinkProps<any> & {
18
+ export declare const Link: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, keyof import("next/link").LinkProps<any>> & import("next/link").LinkProps<any> & {
19
19
  children?: React.ReactNode | undefined;
20
20
  } & import("react").RefAttributes<HTMLAnchorElement>, "ref">, "href" | "locale"> & {
21
21
  href: NextIntlHref;
22
22
  locale?: string;
23
23
  } & import("react").RefAttributes<HTMLAnchorElement>>;
24
24
  //#endregion
25
- export { Link, LinkProps };
26
25
  //# sourceMappingURL=Link.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Link.d.ts","names":[],"sources":["../../../src/navigation/Link.tsx"],"mappings":";;;;;;;;KAWY,YAAY,KACtB,gCAAgC;EAGhC,MAAM;EACN;;;;;;;cAQW,sBAAI,0BAAA,KAAA,KAAA,qBAAA,qBAAA,8CAAA,sCAAA;;;EATT,MAAA;EACG;oBAiBV,cAAA"}
1
+ {"version":3,"file":"Link.d.ts","names":[],"sources":["../../../src/navigation/Link.tsx"],"mappings":";;;;;;;;YAWY,YAAY,KACtB,gCAAgC;EAGhC,MAAM;EACN;;;;;;;qBAQW,sBAAI,0BAAA,KAAA,KAAA,qBAAA,qBAAA,8CAAA,sCAAA;;;EATT,MAAA;EACG;oBAiBV,cAAA"}
@@ -14,7 +14,7 @@ import { createNavigation as createNavigation$1 } from "next-intl/navigation";
14
14
  * createNavigation();
15
15
  * ```
16
16
  */
17
- declare const createNavigation: typeof createNavigation$1;
17
+ export declare const createNavigation: typeof createNavigation$1;
18
18
  //#endregion
19
- export { createNavigation, createNavigation as default };
19
+ export { createNavigation as default };
20
20
  //# sourceMappingURL=createNavigation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createNavigation.d.ts","names":[],"sources":["../../../src/navigation/createNavigation.ts"],"mappings":";;;;;;;;;;;;;;;;cA6Ba,yBAAyB"}
1
+ {"version":3,"file":"createNavigation.d.ts","names":[],"sources":["../../../src/navigation/createNavigation.ts"],"mappings":";;;;;;;;;;;;;;;;qBA6Ba,yBAAyB"}
@@ -11,13 +11,13 @@ type NavigateOptions = {
11
11
  * Drop-in for the `usePathname` returned by next-intl's `createNavigation`.
12
12
  * Returns the current pathname with the locale prefix stripped.
13
13
  */
14
- declare const usePathname: () => string;
14
+ export declare const usePathname: () => string;
15
15
  /**
16
16
  * Drop-in for the `useRouter` returned by next-intl's `createNavigation`.
17
17
  * Wraps the Next.js router so `push`/`replace`/`prefetch` localize their href
18
18
  * (honouring an optional `locale` option) before navigating.
19
19
  */
20
- declare const useRouter: () => {
20
+ export declare const useRouter: () => {
21
21
  back(): void;
22
22
  forward(): void;
23
23
  refresh(): void;
@@ -28,5 +28,4 @@ declare const useRouter: () => {
28
28
  prefetch: (href: NextIntlHref, options?: NavigateOptions) => void;
29
29
  };
30
30
  //#endregion
31
- export { usePathname, useRouter };
32
31
  //# sourceMappingURL=hooks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.d.ts","names":[],"sources":["../../../src/navigation/hooks.ts"],"mappings":";;;;;;KAaK;EAAoB;IAAoB;;;;;cAMhC;;;;;;cAeA;;;;;;EASI,OAAA,MAAA,cAAY,UAAY;EAKrB,UAAA,MAAA,cAAY,UAAY;EAKvB,WAAA,MAAA,cAAY,UAAY"}
1
+ {"version":3,"file":"hooks.d.ts","names":[],"sources":["../../../src/navigation/hooks.ts"],"mappings":";;;;;;KAaK;EAAoB;IAAoB;;;;;qBAMhC;;;;;;qBAeA;;;;;;EASI,OAAA,MAAA,cAAY,UAAY;EAKrB,UAAA,MAAA,cAAY,UAAY;EAKvB,WAAA,MAAA,cAAY,UAAY"}
@@ -4,7 +4,7 @@
4
4
  * `pathname` and optional `query`. The `pathnames` (typed routes) feature is
5
5
  * accepted for API compatibility but not interpolated.
6
6
  */
7
- type NextIntlHref = string | {
7
+ export type NextIntlHref = string | {
8
8
  pathname: string;
9
9
  query?: Record<string, string | number | (string | number)[]>;
10
10
  params?: Record<string, string | number | (string | number)[]>;
@@ -17,7 +17,6 @@ type NextIntlHref = string | {
17
17
  * @param locale - The locale to localize the href for.
18
18
  * @returns The localized URL string.
19
19
  */
20
- declare const localizeHref: (href: NextIntlHref, locale: string) => string;
20
+ export declare const localizeHref: (href: NextIntlHref, locale: string) => string;
21
21
  //#endregion
22
- export { NextIntlHref, localizeHref };
23
22
  //# sourceMappingURL=localizeHref.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"localizeHref.d.ts","names":[],"sources":["../../../src/navigation/localizeHref.ts"],"mappings":";;;;;;KAQY;EAGN;EACA,QAAQ;EACR,SAAS;;;;;;;;;;cAWF,eAAY,MAAU,cAAY"}
1
+ {"version":3,"file":"localizeHref.d.ts","names":[],"sources":["../../../src/navigation/localizeHref.ts"],"mappings":";;;;;;YAQY;EAGN;EACA,QAAQ;EACR,SAAS;;;;;;;;;;qBAWF,eAAY,MAAU,cAAY"}
@@ -5,7 +5,7 @@ import { NextConfig } from "next";
5
5
  * and configures resolve aliases so `next-intl` imports are served by
6
6
  * `@intlayer/next-intl`.
7
7
  */
8
- declare const createNextIntlPlugin: (_i18nPath?: string) => (nextConfig?: NextConfig) => Promise<NextConfig>;
8
+ export declare const createNextIntlPlugin: (_i18nPath?: string) => (nextConfig?: NextConfig) => Promise<NextConfig>;
9
9
  //#endregion
10
- export { createNextIntlPlugin, createNextIntlPlugin as default };
10
+ export { createNextIntlPlugin as default };
11
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/plugin/index.ts"],"mappings":";;;;;;;cAiHa,uBAAoB,wBAAsB,aAC3B,eAAkB,QAAQ"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/plugin/index.ts"],"mappings":";;;;;;;qBAiHa,uBAAoB,wBAAsB,aAC3B,eAAkB,QAAQ"}
@@ -1,6 +1,6 @@
1
1
  import { LocalesValues } from "@intlayer/types/module_augmentation";
2
2
  //#region src/routing.d.ts
3
- type Routing = {
3
+ export type Routing = {
4
4
  locales: LocalesValues[];
5
5
  defaultLocale: LocalesValues;
6
6
  localePrefix?: 'always' | 'as-needed' | 'never';
@@ -21,7 +21,6 @@ type Routing = {
21
21
  * });
22
22
  * ```
23
23
  */
24
- declare const defineRouting: (config?: Partial<Routing>) => Routing;
24
+ export declare const defineRouting: (config?: Partial<Routing>) => Routing;
25
25
  //#endregion
26
- export { Routing, defineRouting };
27
26
  //# sourceMappingURL=routing.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"routing.d.ts","names":[],"sources":["../../src/routing.ts"],"mappings":";;KAGY;EACV,SAAS;EACT,eAAe;EACf;EACA,YAAY,wBAAwB;;;;;;;;;;;;;;;;;cAkBzB,gBAAgB,SAAS,QAAQ,aAAa"}
1
+ {"version":3,"file":"routing.d.ts","names":[],"sources":["../../src/routing.ts"],"mappings":";;YAGY;EACV,SAAS;EACT,eAAe;EACf;EACA,YAAY,wBAAwB;;;;;;;;;;;;;;;;;qBAkBzB,gBAAgB,SAAS,QAAQ,aAAa"}
@@ -12,7 +12,6 @@ import { getLocale as getLocale$1 } from "next-intl/server";
12
12
  * 2. Otherwise Intlayer's own resolution (cookie / header / Accept-Language),
13
13
  * for apps that drive the locale from storage rather than the route.
14
14
  */
15
- declare const getLocale: typeof getLocale$1;
15
+ export declare const getLocale: typeof getLocale$1;
16
16
  //#endregion
17
- export { getLocale };
18
17
  //# sourceMappingURL=getLocale.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getLocale.d.ts","names":[],"sources":["../../../src/server/getLocale.ts"],"mappings":";;;;;;;;;;;;;;cAgBa,kBAAkB"}
1
+ {"version":3,"file":"getLocale.d.ts","names":[],"sources":["../../../src/server/getLocale.ts"],"mappings":";;;;;;;;;;;;;;qBAgBa,kBAAkB"}
@@ -15,7 +15,6 @@ import { getMessages as getMessages$1 } from "next-intl/server";
15
15
  * @deprecated getMessages has no use case with intlayer.
16
16
  * Messages are loaded automatically under the hood
17
17
  */
18
- declare const getMessages: typeof getMessages$1;
18
+ export declare const getMessages: typeof getMessages$1;
19
19
  //#endregion
20
- export { getMessages };
21
20
  //# sourceMappingURL=getMessages.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getMessages.d.ts","names":[],"sources":["../../../src/server/getMessages.ts"],"mappings":";;;;;;;;;;;;;;;;;cAoBa,oBAAoB"}
1
+ {"version":3,"file":"getMessages.d.ts","names":[],"sources":["../../../src/server/getMessages.ts"],"mappings":";;;;;;;;;;;;;;;;;qBAoBa,oBAAoB"}
@@ -12,7 +12,7 @@ import { getRequestConfig as getRequestConfig$1 } from "next-intl/server";
12
12
  * @deprecated getRequestConfig has no use case with intlayer. The locale and
13
13
  * messages are resolved automatically; the file can be removed.
14
14
  */
15
- declare const getRequestConfig: typeof getRequestConfig$1;
15
+ export declare const getRequestConfig: typeof getRequestConfig$1;
16
16
  //#endregion
17
- export { getRequestConfig as default, getRequestConfig };
17
+ export { getRequestConfig as default };
18
18
  //# sourceMappingURL=getRequestConfig.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getRequestConfig.d.ts","names":[],"sources":["../../../src/server/getRequestConfig.ts"],"mappings":";;;;;;;;;;;;;;cAiBa,yBAAyB"}
1
+ {"version":3,"file":"getRequestConfig.d.ts","names":[],"sources":["../../../src/server/getRequestConfig.ts"],"mappings":";;;;;;;;;;;;;;qBAiBa,yBAAyB"}
@@ -59,7 +59,6 @@ type GetTranslations = {
59
59
  * t.rich('terms', { link: (chunks) => <a href="/terms">{chunks}</a> });
60
60
  * ```
61
61
  */
62
- declare const getTranslations: GetTranslations;
62
+ export declare const getTranslations: GetTranslations;
63
63
  //#endregion
64
- export { getTranslations };
65
64
  //# sourceMappingURL=getTranslations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getTranslations.d.ts","names":[],"sources":["../../../src/server/getTranslations.ts"],"mappings":";;;;;;KAeK,uBAAuB,UAAU;;EAEpC,YAAY;;EAEZ,SAAS;;;;;;;;;;;;;;;;;KAkBN;GACF,UAAU,gBAAgB,WAAW,IAAI,QAAQ,kBAAkB;GACnE,UAAU,gBACT,SAAS,uBAAuB,KAC/B,QAAQ,kBAAkB;GAC5B,iCACC,WAAW,IACV,QAAQ,8BAA8B;MACrC,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA+BD,iBAAiB"}
1
+ {"version":3,"file":"getTranslations.d.ts","names":[],"sources":["../../../src/server/getTranslations.ts"],"mappings":";;;;;;KAeK,uBAAuB,UAAU;;EAEpC,YAAY;;EAEZ,SAAS;;;;;;;;;;;;;;;;;KAkBN;GACF,UAAU,gBAAgB,WAAW,IAAI,QAAQ,kBAAkB;GACnE,UAAU,gBACT,SAAS,uBAAuB,KAC/B,QAAQ,kBAAkB;GAC5B,iCACC,WAAW,IACV,QAAQ,8BAA8B;MACrC,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA+BD,iBAAiB"}
@@ -5,17 +5,16 @@ import { getFormatter as getFormatter$1, getNow as getNow$1, getTimeZone as getT
5
5
  * Returns locale-aware formatters backed by the native `Intl.*` APIs,
6
6
  * built by `@intlayer/use-intl`'s `createFormatter`.
7
7
  */
8
- declare const getFormatter: typeof getFormatter$1;
8
+ export declare const getFormatter: typeof getFormatter$1;
9
9
  /**
10
10
  * Drop-in for next-intl's server `getNow()`.
11
11
  * Returns the current `Date`.
12
12
  */
13
- declare const getNow: typeof getNow$1;
13
+ export declare const getNow: typeof getNow$1;
14
14
  /**
15
15
  * Drop-in for next-intl's server `getTimeZone()`.
16
16
  * Returns the system time zone resolved from `Intl.DateTimeFormat`.
17
17
  */
18
- declare const getTimeZone: typeof getTimeZone$1;
18
+ export declare const getTimeZone: typeof getTimeZone$1;
19
19
  //#endregion
20
- export { getFormatter, getNow, getTimeZone };
21
20
  //# sourceMappingURL=helpers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","names":[],"sources":["../../../src/server/helpers.ts"],"mappings":";;;;;;;cAaa,qBAAqB;;;;;cAWrB,eAAe;;;;;cAOf,oBAAoB"}
1
+ {"version":3,"file":"helpers.d.ts","names":[],"sources":["../../../src/server/helpers.ts"],"mappings":";;;;;;;qBAaa,qBAAqB;;;;;qBAWrB,eAAe;;;;;qBAOf,oBAAoB"}
@@ -4,13 +4,12 @@ import { LocalesValues } from "@intlayer/types/module_augmentation";
4
4
  * Read the locale stored for the current request, or `undefined` when
5
5
  * `setRequestLocale` has not been called.
6
6
  */
7
- declare const getCachedRequestLocale: () => LocalesValues | undefined;
7
+ export declare const getCachedRequestLocale: () => LocalesValues | undefined;
8
8
  /**
9
9
  * Store the locale for the current request. Called by `setRequestLocale`.
10
10
  *
11
11
  * @param locale - The locale resolved from the `[locale]` route segment.
12
12
  */
13
- declare const setCachedRequestLocale: (locale: LocalesValues) => void;
13
+ export declare const setCachedRequestLocale: (locale: LocalesValues) => void;
14
14
  //#endregion
15
- export { getCachedRequestLocale, setCachedRequestLocale };
16
15
  //# sourceMappingURL=requestLocaleCache.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"requestLocaleCache.d.ts","names":[],"sources":["../../../src/server/requestLocaleCache.ts"],"mappings":";;;;;;cAuBa,8BAA6B;;;;;;cAQ7B,yBAAsB,QAAY"}
1
+ {"version":3,"file":"requestLocaleCache.d.ts","names":[],"sources":["../../../src/server/requestLocaleCache.ts"],"mappings":";;;;;;qBAuBa,8BAA6B;;;;;;qBAQ7B,yBAAsB,QAAY"}
@@ -15,7 +15,6 @@
15
15
  * await setLocale('fr');
16
16
  * ```
17
17
  */
18
- declare const setLocale: (locale: string) => Promise<void>;
18
+ export declare const setLocale: (locale: string) => Promise<void>;
19
19
  //#endregion
20
- export { setLocale };
21
20
  //# sourceMappingURL=setLocale.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"setLocale.d.ts","names":[],"sources":["../../../src/server/setLocale.ts"],"mappings":";;;;;;;;;;;;;;;;;cAoBa,YAAS,mBAA2B"}
1
+ {"version":3,"file":"setLocale.d.ts","names":[],"sources":["../../../src/server/setLocale.ts"],"mappings":";;;;;;;;;;;;;;;;;qBAoBa,YAAS,mBAA2B"}
@@ -22,7 +22,6 @@ import { setRequestLocale as setRequestLocale$1 } from "next-intl/server";
22
22
  * }
23
23
  * ```
24
24
  */
25
- declare const setRequestLocale: typeof setRequestLocale$1;
25
+ export declare const setRequestLocale: typeof setRequestLocale$1;
26
26
  //#endregion
27
- export { setRequestLocale };
28
27
  //# sourceMappingURL=setRequestLocale.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"setRequestLocale.d.ts","names":[],"sources":["../../../src/server/setRequestLocale.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;cA0Ba,yBAAyB"}
1
+ {"version":3,"file":"setRequestLocale.d.ts","names":[],"sources":["../../../src/server/setRequestLocale.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;qBA0Ba,yBAAyB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/next-intl",
3
- "version": "9.4.2",
3
+ "version": "9.4.4",
4
4
  "private": false,
5
5
  "description": "next-intl API adapter for intlayer — useTranslations, useLocale, getTranslations, getLocale, NextIntlClientProvider backed by next-intlayer",
6
6
  "keywords": [
@@ -110,14 +110,14 @@
110
110
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
111
111
  },
112
112
  "dependencies": {
113
- "@intlayer/config": "9.4.2",
114
- "@intlayer/core": "9.4.2",
115
- "@intlayer/dictionaries-entry": "9.4.2",
116
- "@intlayer/engine": "9.4.2",
117
- "@intlayer/types": "9.4.2",
118
- "@intlayer/use-intl": "9.4.2",
119
- "next-intlayer": "9.4.2",
120
- "react-intlayer": "9.4.2"
113
+ "@intlayer/config": "9.4.4",
114
+ "@intlayer/core": "9.4.4",
115
+ "@intlayer/dictionaries-entry": "9.4.4",
116
+ "@intlayer/engine": "9.4.4",
117
+ "@intlayer/types": "9.4.4",
118
+ "@intlayer/use-intl": "9.4.4",
119
+ "next-intlayer": "9.4.4",
120
+ "react-intlayer": "9.4.4"
121
121
  },
122
122
  "devDependencies": {
123
123
  "@types/node": "26.4.1",
@@ -125,11 +125,11 @@
125
125
  "@utils/ts-config": "1.0.4",
126
126
  "@utils/ts-config-types": "1.0.4",
127
127
  "@utils/tsdown-config": "1.0.4",
128
- "next-intl": "4.13.4",
128
+ "next-intl": "4.13.7",
129
129
  "rimraf": "6.1.3",
130
- "tsdown": "0.22.14",
130
+ "tsdown": "0.23.0",
131
131
  "typescript": "7.0.2",
132
- "vitest": "4.1.11"
132
+ "vitest": "5.0.0"
133
133
  },
134
134
  "peerDependencies": {
135
135
  "next": ">=14.0.0",