@intlayer/react-i18next 9.4.3 → 9.5.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/README.md CHANGED
@@ -69,8 +69,6 @@ With **per-locale content files**, **TypeScript autocompletion**, **tree-shakabl
69
69
  | <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/interoperability.png?raw=true" alt="Feature" width="700"> | **Interoperability**<br><br>Allow interoperability with react-i18next, next-i18next, next-intl, react-intl, vue-i18n. <br><br> - [Intlayer and react-intl](https://intlayer.org/blog/intlayer-with-react-intl) <br> - [Intlayer and next-intl](https://intlayer.org/blog/intlayer-with-next-intl) <br> - [Intlayer and next-i18next](https://intlayer.org/blog/intlayer-with-next-i18next) <br> - [Intlayer and vue-i18n](https://intlayer.org/blog/intlayer-with-vue-i18n) <br> - [Intlayer compat adapters](https://intlayer.org/doc/compatibility) |
70
70
  | <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/benchmark.png?raw=true" alt="Feature" width="700"> | **Performances & Benchmark**<br><br>Uses advanced tree-shaking and dynamic loading to boost performances and keep the solution as light as possible. <br><br> - [Performances & Benchmark](https://intlayer.org/doc/benchmark) |
71
71
 
72
- ---
73
-
74
72
  ## 📦 Installation
75
73
 
76
74
  Start your journey with Intlayer today and experience a smoother, more powerful approach to internationalization.
@@ -6,7 +6,6 @@ import { I18nextProvider as I18nextProvider$1 } from "react-i18next";
6
6
  * Intlayer uses its own instance. A development warning is emitted when
7
7
  * the `i18n` prop is provided so consumers know to remove it.
8
8
  */
9
- declare const I18nextProvider: typeof I18nextProvider$1;
9
+ export declare const I18nextProvider: typeof I18nextProvider$1;
10
10
  //#endregion
11
- export { I18nextProvider };
12
11
  //# sourceMappingURL=I18nextProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"I18nextProvider.d.ts","names":[],"sources":["../../src/I18nextProvider.tsx"],"mappings":";;;;;;;;cAiBa,wBAAwB"}
1
+ {"version":3,"file":"I18nextProvider.d.ts","names":[],"sources":["../../src/I18nextProvider.tsx"],"mappings":";;;;;;;;qBAiBa,wBAAwB"}
@@ -39,7 +39,6 @@ type TypedTrans = {
39
39
  * </Trans>
40
40
  * ```
41
41
  */
42
- declare const Trans: TypedTrans;
42
+ export declare const Trans: TypedTrans;
43
43
  //#endregion
44
- export { Trans };
45
44
  //# sourceMappingURL=Trans.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Trans.d.ts","names":[],"sources":["../../src/Trans.tsx"],"mappings":";;;;;;;;;KAwBK,gBAAgB,UAAU,gBAAgB,oBAAoB,KACjE;;EAIA,IAAI,aAAa;;EAEjB,SAAS;;;;;;;KAQN;GACF,UAAU,gBAAgB,UAAU,iBAAiB,IACpD,OAAO,gBAAgB,GAAG,KACzB;GACF,OAAO;IAAuB;MAAmB;;;;;;;;;;;;;;;;;cAsEvC,OAuDR"}
1
+ {"version":3,"file":"Trans.d.ts","names":[],"sources":["../../src/Trans.tsx"],"mappings":";;;;;;;;;KAwBK,gBAAgB,UAAU,gBAAgB,oBAAoB,KACjE;;EAIA,IAAI,aAAa;;EAEjB,SAAS;;;;;;;KAQN;GACF,UAAU,gBAAgB,UAAU,iBAAiB,IACpD,OAAO,gBAAgB,GAAG,KACzB;GACF,OAAO;IAAuB;MAAmB;;;;;;;;;;;;;;;;;qBAsEvC,OAuDR"}
@@ -3,14 +3,14 @@ import { TypedTFunction } from "@intlayer/i18next";
3
3
  import { TOptions } from "i18next";
4
4
  //#region src/createTranslationApi.d.ts
5
5
  /** Untyped runtime `t()` produced by {@link createTranslationApi}. */
6
- type TranslateFunction = (key: string | string[], optionsOrDefaultValue?: TOptions | string, extraOptions?: TOptions) => string;
6
+ export type TranslateFunction = (key: string | string[], optionsOrDefaultValue?: TOptions | string, extraOptions?: TOptions) => string;
7
7
  /**
8
8
  * The `i18n` facade with `t` and `getFixedT` typed against the dictionary the
9
9
  * hook is bound to: `t` is the hook's translate function type `TFn`, and
10
10
  * `getFixedT` returns a fully-typed `t()` for the requested namespace (or the
11
11
  * hook's own `t()` when no namespace is given).
12
12
  */
13
- type TypedI18nFacade<TFn = TranslateFunction> = Omit<I18nFacade, 't' | 'getFixedT'> & {
13
+ export type TypedI18nFacade<TFn = TranslateFunction> = Omit<I18nFacade, 't' | 'getFixedT'> & {
14
14
  t: TFn;
15
15
  getFixedT: {
16
16
  <N extends DictionaryKeys>(language: string | null | undefined, fixedNamespace: N): TypedTFunction<N>;
@@ -18,13 +18,13 @@ type TypedI18nFacade<TFn = TranslateFunction> = Omit<I18nFacade, 't' | 'getFixed
18
18
  };
19
19
  };
20
20
  /** Result shape of the typed translation hooks: `{ t, i18n, ready }`. */
21
- type TypedTranslationResult<TFn = TranslateFunction> = {
21
+ export type TypedTranslationResult<TFn = TranslateFunction> = {
22
22
  t: TFn;
23
23
  i18n: TypedI18nFacade<TFn>;
24
24
  ready: true;
25
25
  };
26
26
  /** `i18n` facade shape produced by {@link createTranslationApi}. */
27
- type I18nFacade = {
27
+ export type I18nFacade = {
28
28
  language: string;
29
29
  languages: string[];
30
30
  resolvedLanguage: string;
@@ -35,7 +35,7 @@ type I18nFacade = {
35
35
  t: TranslateFunction;
36
36
  getFixedT: (language?: string | null, fixedNamespace?: string | null) => (key: string, fixedOptions?: TOptions) => string;
37
37
  };
38
- type CreateTranslationApiParams = {
38
+ export type CreateTranslationApiParams = {
39
39
  /** Active locale. */
40
40
  locale: LocalesValues;
41
41
  /** Locale setter backing `i18n.changeLanguage`. */
@@ -64,10 +64,9 @@ type CreateTranslationApiParams = {
64
64
  * (`key_male`), `$t()` nesting, `defaultValue` and `{{var}}` interpolation
65
65
  * are all supported.
66
66
  */
67
- declare const createTranslationApi: ({ locale, setLocale, availableLocales, namespace, keyPrefix, dictionaryContent }: CreateTranslationApiParams) => {
67
+ export declare const createTranslationApi: ({ locale, setLocale, availableLocales, namespace, keyPrefix, dictionaryContent }: CreateTranslationApiParams) => {
68
68
  translate: TranslateFunction;
69
69
  i18n: I18nFacade;
70
70
  };
71
71
  //#endregion
72
- export { CreateTranslationApiParams, I18nFacade, TranslateFunction, TypedI18nFacade, TypedTranslationResult, createTranslationApi };
73
72
  //# sourceMappingURL=createTranslationApi.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createTranslationApi.d.ts","names":[],"sources":["../../src/createTranslationApi.ts"],"mappings":";;;;;KAcY,qBACV,wBACA,wBAAwB,mBACxB,eAAe;;;;;;;KASL,gBAAgB,MAAM,qBAAqB,KACrD;EAGA,GAAG;EACH;KACG,UAAU,gBACT,qCACA,gBAAgB,IACf,eAAe;KACjB,0BAA0B,wBAAwB;;;;KAK3C,uBAAuB,MAAM;EACvC,GAAG;EACH,MAAM,gBAAgB;EACtB;;;KAIU;EACV;EACA;EACA;EACA;EACA,iBAAiB,wBAAwB;EACzC,MAAM;EACN,SAAS,aAAa,gBAAgB;EACtC,GAAG;EACH,YACE,0BACA,oCACI,aAAa,eAAe;;KAGxB;;EAEV,QAAQ;;EAER,YAAY,WAAW;;EAEvB,kBAAkB;;EAElB;;EAEA;;;;;;EAMA;;;;;;;;;;;;;cAcW,yBAAoB,QAAA,WAAA,kBAAA,WAAA,WAAA,qBAO9B;EACD,WAAW;EACX,MAAM"}
1
+ {"version":3,"file":"createTranslationApi.d.ts","names":[],"sources":["../../src/createTranslationApi.ts"],"mappings":";;;;;YAcY,qBACV,wBACA,wBAAwB,mBACxB,eAAe;;;;;;;YASL,gBAAgB,MAAM,qBAAqB,KACrD;EAGA,GAAG;EACH;KACG,UAAU,gBACT,qCACA,gBAAgB,IACf,eAAe;KACjB,0BAA0B,wBAAwB;;;;YAK3C,uBAAuB,MAAM;EACvC,GAAG;EACH,MAAM,gBAAgB;EACtB;;;YAIU;EACV;EACA;EACA;EACA;EACA,iBAAiB,wBAAwB;EACzC,MAAM;EACN,SAAS,aAAa,gBAAgB;EACtC,GAAG;EACH,YACE,0BACA,oCACI,aAAa,eAAe;;YAGxB;;EAEV,QAAQ;;EAER,YAAY,WAAW;;EAEvB,kBAAkB;;EAElB;;EAEA;;;;;;EAMA;;;;;;;;;;;;;qBAcW,yBAAoB,QAAA,WAAA,kBAAA,WAAA,WAAA,qBAO9B;EACD,WAAW;EACX,MAAM"}
@@ -1,10 +1,10 @@
1
1
  import * as React from "react";
2
2
  import { TFunction, i18n } from "i18next";
3
3
  //#region src/helpers.d.ts
4
- declare const I18nContext: React.Context<{
4
+ export declare const I18nContext: React.Context<{
5
5
  i18n: i18n;
6
6
  }>;
7
- interface TranslationProps {
7
+ export interface TranslationProps {
8
8
  children: (t: TFunction, options: {
9
9
  i18n: i18n;
10
10
  lng: string;
@@ -12,19 +12,18 @@ interface TranslationProps {
12
12
  ns?: string | string[];
13
13
  keyPrefix?: string;
14
14
  }
15
- declare const Translation: ({ children, ns, keyPrefix }: TranslationProps) => React.ReactElement;
16
- declare const nodesToString: (children: React.ReactNode, _i18nOptions?: unknown, _i18n?: unknown, _i18nKey?: string) => string;
17
- declare const setI18n: (instance: i18n) => void;
18
- declare const getI18n: () => i18n;
19
- declare const setDefaults: (options: unknown) => void;
20
- declare const getDefaults: () => unknown;
21
- declare const useSSR: (_initialI18nStore: unknown, _initialLanguage: string) => void;
22
- declare const withSSR: () => <P extends object>(WrappedComponent: React.ComponentType<P>) => React.ComponentType<P>;
23
- declare const composeInitialProps: (_ForComponent: unknown) => (_ctx: unknown) => Promise<{}>;
24
- declare const getInitialProps: () => {
15
+ export declare const Translation: ({ children, ns, keyPrefix }: TranslationProps) => React.ReactElement;
16
+ export declare const nodesToString: (children: React.ReactNode, _i18nOptions?: unknown, _i18n?: unknown, _i18nKey?: string) => string;
17
+ export declare const setI18n: (instance: i18n) => void;
18
+ export declare const getI18n: () => i18n;
19
+ export declare const setDefaults: (options: unknown) => void;
20
+ export declare const getDefaults: () => unknown;
21
+ export declare const useSSR: (_initialI18nStore: unknown, _initialLanguage: string) => void;
22
+ export declare const withSSR: () => <P extends object>(WrappedComponent: React.ComponentType<P>) => React.ComponentType<P>;
23
+ export declare const composeInitialProps: (_ForComponent: unknown) => (_ctx: unknown) => Promise<{}>;
24
+ export declare const getInitialProps: () => {
25
25
  initialI18nStore: {};
26
26
  initialLanguage: string;
27
27
  };
28
28
  //#endregion
29
- export { I18nContext, Translation, TranslationProps, composeInitialProps, getDefaults, getI18n, getInitialProps, nodesToString, setDefaults, setI18n, useSSR, withSSR };
30
29
  //# sourceMappingURL=helpers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","names":[],"sources":["../../src/helpers.tsx"],"mappings":";;;cAKa,aAAW,MAAA;EAA+B,MAAA;;UAItC;EACf,WACE,GAAG,WACH;IAAW,MAAM;IAAM;KACvB,mBACG,MAAM;EACX;EACA;;cAIW,gBAAW,UAAA,IAAA,aAIrB,qBAAmB,MAAM;cAUf,gBAAa,UACd,MAAM,WAAS,wBACH,iBACP;cAyBJ,UAAO,UAAc;cAIrB,eAAc;cAId,cAAW;cAIX;cAKA,SAAM,4BACS;cAIf,gBACE,kBAAgB,kBACT,MAAM,cAAc,OACrC,MAAM,cAAc;cAWZ,sBAAmB,4BACP,kBAAyB;cAErC;EACX;EACA"}
1
+ {"version":3,"file":"helpers.d.ts","names":[],"sources":["../../src/helpers.tsx"],"mappings":";;;qBAKa,aAAW,MAAA;EAA+B,MAAA;;iBAItC;EACf,WACE,GAAG,WACH;IAAW,MAAM;IAAM;KACvB,mBACG,MAAM;EACX;EACA;;qBAIW,gBAAW,UAAA,IAAA,aAIrB,qBAAmB,MAAM;qBAUf,gBAAa,UACd,MAAM,WAAS,wBACH,iBACP;qBAyBJ,UAAO,UAAc;qBAIrB,eAAc;qBAId,cAAW;qBAIX;qBAKA,SAAM,4BACS;qBAIf,gBACE,kBAAgB,kBACT,MAAM,cAAc,OACrC,MAAM,cAAc;qBAWZ,sBAAmB,4BACP,kBAAyB;qBAErC;EACX;EACA"}
@@ -8,20 +8,20 @@ import { useTranslation } from "./useTranslation.js";
8
8
  import { withTranslation } from "./withTranslation.js";
9
9
  import { I18nContext as I18nContext$1, I18nextProviderProps, Trans as Trans$1, TransProps, TransWithoutContext as TransWithoutContext$1, Translation as Translation$1, UseTranslationOptions, UseTranslationResponse, WithTranslation, WithTranslationProps, composeInitialProps as composeInitialProps$1, getDefaults as getDefaults$1, getI18n as getI18n$1, getInitialProps as getInitialProps$1, setDefaults as setDefaults$1, setI18n as setI18n$1, useSSR as useSSR$1, withSSR as withSSR$1 } from "react-i18next";
10
10
  //#region src/index.d.ts
11
- declare const nodesToString: typeof nodesToString$1;
12
- declare const setDefaults: typeof setDefaults$1;
13
- declare const getDefaults: typeof getDefaults$1;
14
- declare const setI18n: typeof setI18n$1;
15
- declare const getI18n: typeof getI18n$1;
16
- declare const composeInitialProps: typeof composeInitialProps$1;
17
- declare const getInitialProps: typeof getInitialProps$1;
18
- declare const useSSR: typeof useSSR$1;
19
- declare const withSSR: typeof withSSR$1;
20
- declare const Translation: typeof Translation$1;
21
- declare const I18nContext: typeof I18nContext$1;
22
- declare const TransWithoutContext: typeof TransWithoutContext$1;
23
- declare const IcuTrans: typeof Trans$1;
24
- declare const IcuTransWithoutContext: typeof Trans$1;
11
+ export declare const nodesToString: typeof nodesToString$1;
12
+ export declare const setDefaults: typeof setDefaults$1;
13
+ export declare const getDefaults: typeof getDefaults$1;
14
+ export declare const setI18n: typeof setI18n$1;
15
+ export declare const getI18n: typeof getI18n$1;
16
+ export declare const composeInitialProps: typeof composeInitialProps$1;
17
+ export declare const getInitialProps: typeof getInitialProps$1;
18
+ export declare const useSSR: typeof useSSR$1;
19
+ export declare const withSSR: typeof withSSR$1;
20
+ export declare const Translation: typeof Translation$1;
21
+ export declare const I18nContext: typeof I18nContext$1;
22
+ export declare const TransWithoutContext: typeof TransWithoutContext$1;
23
+ export declare const IcuTrans: typeof Trans$1;
24
+ export declare const IcuTransWithoutContext: typeof Trans$1;
25
25
  //#endregion
26
- export { I18nContext, I18nextProvider, type I18nextProviderProps, IcuTrans, IcuTransWithoutContext, Trans, type TransProps, TransWithoutContext, Translation, type UseTranslationOptions, type UseTranslationResponse, type WithTranslation, type WithTranslationProps, composeInitialProps, getDefaults, getI18n, getInitialProps, initReactI18next, nodesToString, setDefaults, setI18n, useDictionary, useDictionaryDynamic, useSSR, useTranslation, withSSR, withTranslation };
26
+ export { I18nextProvider, type I18nextProviderProps, Trans, type TransProps, type UseTranslationOptions, type UseTranslationResponse, type WithTranslation, type WithTranslationProps, initReactI18next, useDictionary, useDictionaryDynamic, useTranslation, withTranslation };
27
27
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/index.ts"],"mappings":";;;;;;;;;;cAmDa,sBAAa;cACb,oBAAwC;cACxC,oBAAwC;cACxC,gBAAgC;cAChC,gBAAgC;cAChC,4BACuB;cACvB,wBAAgD;cAChD,eAA8B;cAC9B,gBAAgC;cAChC,oBAAwC;cACxC,oBAAwC;cAExC,4BAAsC;cAMtC,iBAA2B;cAC3B,+BAAyC"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/index.ts"],"mappings":";;;;;;;;;;qBAmDa,sBAAa;qBACb,oBAAwC;qBACxC,oBAAwC;qBACxC,gBAAgC;qBAChC,gBAAgC;qBAChC,4BACuB;qBACvB,wBAAgD;qBAChD,eAA8B;qBAC9B,gBAAgC;qBAChC,oBAAwC;qBACxC,oBAAwC;qBAExC,4BAAsC;qBAMtC,iBAA2B;qBAC3B,+BAAyC"}
@@ -9,7 +9,6 @@ import { initReactI18next as initReactI18next$1 } from "react-i18next";
9
9
  * plugin records the i18n instance via the compat `setI18n`/`setDefaults`
10
10
  * helpers; actual translation is served by Intlayer.
11
11
  */
12
- declare const initReactI18next: typeof initReactI18next$1;
12
+ export declare const initReactI18next: typeof initReactI18next$1;
13
13
  //#endregion
14
- export { initReactI18next };
15
14
  //# sourceMappingURL=initReactI18next.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"initReactI18next.d.ts","names":[],"sources":["../../src/initReactI18next.ts"],"mappings":";;;;;;;;;;;cAYa,yBAAyB"}
1
+ {"version":3,"file":"initReactI18next.d.ts","names":[],"sources":["../../src/initReactI18next.ts"],"mappings":";;;;;;;;;;;qBAYa,yBAAyB"}
@@ -5,7 +5,7 @@ import { intlayer } from "vite-intlayer";
5
5
  * A Vite plugin for react-i18next compat that wraps vite-intlayer
6
6
  * and configures resolve aliases for react-i18next and i18next.
7
7
  */
8
- declare const reactI18nextVitePlugin: (options?: Parameters<typeof intlayer>[0]) => PluginOption[];
8
+ export declare const reactI18nextVitePlugin: (options?: Parameters<typeof intlayer>[0]) => PluginOption[];
9
9
  //#endregion
10
- export { reactI18nextVitePlugin as default, reactI18nextVitePlugin };
10
+ export { reactI18nextVitePlugin 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":";;;;;;;cAaa,yBAAsB,UACvB,kBAAkB,iBAC3B"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/plugin/index.ts"],"mappings":";;;;;;;qBAaa,yBAAsB,UACvB,kBAAkB,iBAC3B"}
@@ -33,7 +33,6 @@ type UseDictionary = {
33
33
  * import _abc from '.intlayer/dictionaries/about.json' with { type: 'json' };
34
34
  * const { t } = useDictionary(_abc);
35
35
  */
36
- declare const useDictionary: UseDictionary;
36
+ export declare const useDictionary: UseDictionary;
37
37
  //#endregion
38
- export { useDictionary };
39
38
  //# sourceMappingURL=useDictionary.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDictionary.d.ts","names":[],"sources":["../../src/useDictionary.ts"],"mappings":";;;;;;;;;;;KAqBK;GACF,UAAU,YACT,YAAY,GACZ,UAAU,mCACT,uBAAuB,eAAe,WAAW;GACnD,UAAU,YAAY,uBACrB,YAAY,GACZ,WAAW,UAAU,sBAAsB;IAAY,WAAW;MAClE,UAAU,sBAAsB,UAC/B,uBAAuB,gBAAgB,WAAW,gBAAgB;;;;;;;;;;;;;;;;;;;;cAqB1D,eA2BP"}
1
+ {"version":3,"file":"useDictionary.d.ts","names":[],"sources":["../../src/useDictionary.ts"],"mappings":";;;;;;;;;;;KAqBK;GACF,UAAU,YACT,YAAY,GACZ,UAAU,mCACT,uBAAuB,eAAe,WAAW;GACnD,UAAU,YAAY,uBACrB,YAAY,GACZ,WAAW,UAAU,sBAAsB;IAAY,WAAW;MAClE,UAAU,sBAAsB,UAC/B,uBAAuB,gBAAgB,WAAW,gBAAgB;;;;;;;;;;;;;;;;;;;;qBAqB1D,eA2BP"}
@@ -22,7 +22,6 @@ type UseDictionaryDynamic = {
22
22
  * locale. For a nested namespace (`useTranslation('about.counter')`), the
23
23
  * plugin passes the key prefix (`'counter'`) as the third argument.
24
24
  */
25
- declare const useDictionaryDynamic: UseDictionaryDynamic;
25
+ export declare const useDictionaryDynamic: UseDictionaryDynamic;
26
26
  //#endregion
27
- export { useDictionaryDynamic };
28
27
  //# sourceMappingURL=useDictionaryDynamic.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDictionaryDynamic.d.ts","names":[],"sources":["../../src/useDictionaryDynamic.ts"],"mappings":";;;;;;;;;;;KAyBK;GACF,UAAU,YAAY,UAAU,gBAC/B,mBAAmB,0BAA0B,QAAQ,KACrD,KAAK,GACL,UAAU,mCACT,uBAAuB,eAAe;GACxC,UAAU,YAAY,UAAU,gBAAgB,uBAC/C,mBAAmB,0BAA0B,QAAQ,KACrD,KAAK,GACL,WAAW,UAAU,sBAAsB;IAAY,WAAW;MAClE,UAAU,sBAAsB,UAC/B,uBAAuB,gBAAgB,GAAG;;;;;;;;;cAUlC,sBA+BP"}
1
+ {"version":3,"file":"useDictionaryDynamic.d.ts","names":[],"sources":["../../src/useDictionaryDynamic.ts"],"mappings":";;;;;;;;;;;KAyBK;GACF,UAAU,YAAY,UAAU,gBAC/B,mBAAmB,0BAA0B,QAAQ,KACrD,KAAK,GACL,UAAU,mCACT,uBAAuB,eAAe;GACxC,UAAU,YAAY,UAAU,gBAAgB,uBAC/C,mBAAmB,0BAA0B,QAAQ,KACrD,KAAK,GACL,WAAW,UAAU,sBAAsB;IAAY,WAAW;MAClE,UAAU,sBAAsB,UAC/B,uBAAuB,gBAAgB,GAAG;;;;;;;;;qBAUlC,sBA+BP"}
@@ -15,13 +15,12 @@ type UseTranslation = {
15
15
  }): TypedTranslationResult<ScopedTFunction<N, Prefix>>;
16
16
  <N extends DictionaryKeys>(ns?: N | N[], options?: UseTranslationOptions<undefined>): TypedTranslationResult<TypedTFunction<N>>;
17
17
  };
18
- declare const useTranslation: UseTranslation;
18
+ export declare const useTranslation: UseTranslation;
19
19
  /**
20
20
  * Loosely-typed view of {@link useTranslation} used by render-prop and HOC
21
21
  * wrappers (`Translation`, `withTranslation`, `Trans`) that forward `t` to
22
22
  * consumer-typed surfaces.
23
23
  */
24
- declare const useTranslationLoose: (ns?: string | string[], options?: UseTranslationOptions<string>) => TypedTranslationResult;
24
+ export declare const useTranslationLoose: (ns?: string | string[], options?: UseTranslationOptions<string>) => TypedTranslationResult;
25
25
  //#endregion
26
- export { useTranslation, useTranslationLoose };
27
26
  //# sourceMappingURL=useTranslation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useTranslation.d.ts","names":[],"sources":["../../src/useTranslation.ts"],"mappings":";;;;;;;;;;;KAqBK;GACF,UAAU,gBAAgB,uBACzB,IAAI,IAAI,KACR,SAAS,sBAAsB;IAAY,WAAW;MACrD,uBAAuB,gBAAgB,GAAG;GAC5C,UAAU,gBACT,KAAK,IAAI,KACT,UAAU,mCACT,uBAAuB,eAAe;;cAmD9B,gBAAiD;;;;;;cAOjD,sBACX,wBACA,UAAU,kCACP"}
1
+ {"version":3,"file":"useTranslation.d.ts","names":[],"sources":["../../src/useTranslation.ts"],"mappings":";;;;;;;;;;;KAqBK;GACF,UAAU,gBAAgB,uBACzB,IAAI,IAAI,KACR,SAAS,sBAAsB;IAAY,WAAW;MACrD,uBAAuB,gBAAgB,GAAG;GAC5C,UAAU,gBACT,KAAK,IAAI,KACT,UAAU,mCACT,uBAAuB,eAAe;;qBAmD9B,gBAAiD;;;;;;qBAOjD,sBACX,wBACA,UAAU,kCACP"}
@@ -3,7 +3,6 @@ import { withTranslation as withTranslation$1 } from "react-i18next";
3
3
  /**
4
4
  * Drop-in for react-i18next's `withTranslation` HOC.
5
5
  */
6
- declare const withTranslation: typeof withTranslation$1;
6
+ export declare const withTranslation: typeof withTranslation$1;
7
7
  //#endregion
8
- export { withTranslation };
9
8
  //# sourceMappingURL=withTranslation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"withTranslation.d.ts","names":[],"sources":["../../src/withTranslation.tsx"],"mappings":";;;;;cAYa,wBAAwB"}
1
+ {"version":3,"file":"withTranslation.d.ts","names":[],"sources":["../../src/withTranslation.tsx"],"mappings":";;;;;qBAYa,wBAAwB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/react-i18next",
3
- "version": "9.4.3",
3
+ "version": "9.5.0",
4
4
  "private": false,
5
5
  "description": "react-i18next API adapter for intlayer — useTranslation, Trans, withTranslation, I18nextProvider backed by react-intlayer",
6
6
  "keywords": [
@@ -76,27 +76,27 @@
76
76
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
77
77
  },
78
78
  "dependencies": {
79
- "@intlayer/config": "9.4.3",
80
- "@intlayer/core": "9.4.3",
81
- "@intlayer/engine": "9.4.3",
82
- "@intlayer/i18next": "9.4.3",
83
- "@intlayer/types": "9.4.3",
84
- "react-intlayer": "9.4.3",
85
- "vite-intlayer": "9.4.3"
79
+ "@intlayer/config": "9.5.0",
80
+ "@intlayer/core": "9.5.0",
81
+ "@intlayer/engine": "9.5.0",
82
+ "@intlayer/i18next": "9.5.0",
83
+ "@intlayer/types": "9.5.0",
84
+ "react-intlayer": "9.5.0",
85
+ "vite-intlayer": "9.5.0"
86
86
  },
87
87
  "devDependencies": {
88
- "@types/node": "26.4.1",
88
+ "@types/node": "26.5.0",
89
89
  "@types/react": "19.2.18",
90
90
  "@utils/ts-config": "1.0.4",
91
91
  "@utils/ts-config-types": "1.0.4",
92
92
  "@utils/tsdown-config": "1.0.4",
93
- "i18next": "26.3.6",
93
+ "i18next": "26.4.2",
94
94
  "react-i18next": "17.0.10",
95
95
  "rimraf": "6.1.3",
96
- "tsdown": "0.22.14",
96
+ "tsdown": "0.23.0",
97
97
  "typescript": "7.0.2",
98
98
  "vite": "8.2.2",
99
- "vitest": "4.1.11"
99
+ "vitest": "5.0.0"
100
100
  },
101
101
  "peerDependencies": {
102
102
  "i18next": ">=20.0.0",