@intlayer/react-i18next 9.7.0 → 9.7.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.
Files changed (35) hide show
  1. package/dist/esm/I18nextProvider.mjs +3 -4
  2. package/dist/esm/Trans.mjs +7 -8
  3. package/dist/esm/Trans.mjs.map +1 -1
  4. package/dist/esm/createTranslationApi.mjs +1 -2
  5. package/dist/esm/helpers.mjs +2 -3
  6. package/dist/esm/index.mjs +4 -5
  7. package/dist/esm/initReactI18next.mjs +1 -2
  8. package/dist/esm/plugin/index.mjs +1 -2
  9. package/dist/esm/useDictionary.mjs +2 -3
  10. package/dist/esm/useDictionaryDynamic.mjs +2 -3
  11. package/dist/esm/useTranslation.mjs +2 -3
  12. package/dist/esm/withTranslation.mjs +1 -2
  13. package/dist/types/I18nextProvider.d.ts +0 -2
  14. package/dist/types/I18nextProvider.d.ts.map +1 -1
  15. package/dist/types/Trans.d.ts +1 -2
  16. package/dist/types/Trans.d.ts.map +1 -1
  17. package/dist/types/createTranslationApi.d.ts +0 -2
  18. package/dist/types/createTranslationApi.d.ts.map +1 -1
  19. package/dist/types/helpers.d.ts +0 -2
  20. package/dist/types/helpers.d.ts.map +1 -1
  21. package/dist/types/index.d.ts +2 -4
  22. package/dist/types/index.d.ts.map +1 -1
  23. package/dist/types/initReactI18next.d.ts +0 -2
  24. package/dist/types/initReactI18next.d.ts.map +1 -1
  25. package/dist/types/plugin/index.d.ts +0 -2
  26. package/dist/types/plugin/index.d.ts.map +1 -1
  27. package/dist/types/useDictionary.d.ts +1 -2
  28. package/dist/types/useDictionary.d.ts.map +1 -1
  29. package/dist/types/useDictionaryDynamic.d.ts +1 -2
  30. package/dist/types/useDictionaryDynamic.d.ts.map +1 -1
  31. package/dist/types/useTranslation.d.ts +1 -2
  32. package/dist/types/useTranslation.d.ts.map +1 -1
  33. package/dist/types/withTranslation.d.ts +0 -2
  34. package/dist/types/withTranslation.d.ts.map +1 -1
  35. package/package.json +13 -13
@@ -1,12 +1,12 @@
1
1
  'use client';
2
2
 
3
- import { IntlayerProvider } from "react-intlayer";
4
- import { jsx } from "react/jsx-runtime";
5
3
  import { log } from "@intlayer/config/built";
6
4
  import { CYAN } from "@intlayer/config/colors";
7
5
  import { colorize, getAppLogger } from "@intlayer/config/logger";
6
+ import { IntlayerProvider } from "react-intlayer";
7
+ import { jsx } from "react/jsx-runtime";
8
8
 
9
- //#region src/I18nextProvider.tsx
9
+ // src/I18nextProvider.tsx
10
10
  /**
11
11
  * Drop-in for react-i18next's `I18nextProvider`.
12
12
  * The `i18n` prop is accepted for API compatibility but has no effect —
@@ -18,6 +18,5 @@ const I18nextProvider = ({ children, i18n: _i18n }) => {
18
18
  return /* @__PURE__ */ jsx(IntlayerProvider, { children });
19
19
  };
20
20
 
21
- //#endregion
22
21
  export { I18nextProvider };
23
22
  //# sourceMappingURL=I18nextProvider.mjs.map
@@ -1,11 +1,11 @@
1
1
  'use client';
2
2
 
3
3
  import { useTranslationLoose } from "./useTranslation.mjs";
4
+ import { Fragment, jsx } from "react/jsx-runtime";
5
+ import { Children, Fragment as Fragment$1, cloneElement, isValidElement } from "react";
4
6
  import { parseTaggedMessage } from "@intlayer/core/messageFormat";
5
- import { Children, Fragment, cloneElement, isValidElement } from "react";
6
- import { Fragment as Fragment$1, jsx } from "react/jsx-runtime";
7
7
 
8
- //#region src/Trans.tsx
8
+ // src/Trans.tsx
9
9
  /**
10
10
  * Renders parsed message tokens to React nodes, mapping tags to the
11
11
  * `components` prop (object or array form) or to the JSX children
@@ -22,7 +22,7 @@ const renderTokens = (tokens, components, childrenArray) => tokens.map((token, t
22
22
  const NativeTag = token.tag;
23
23
  return /* @__PURE__ */ jsx(NativeTag, { children: renderedChildren }, tokenIndex);
24
24
  }
25
- return /* @__PURE__ */ jsx(Fragment, { children: renderedChildren }, tokenIndex);
25
+ return /* @__PURE__ */ jsx(Fragment$1, { children: renderedChildren }, tokenIndex);
26
26
  });
27
27
  /**
28
28
  * Drop-in for react-i18next's `<Trans>`.
@@ -50,13 +50,12 @@ const Trans = function Trans({ i18nKey, ns, values, count, context, defaults, co
50
50
  if (typeof defaults === "string") translateOptions.defaultValue = defaults;
51
51
  const message = i18nKey ? t(i18nKey, translateOptions) : defaults ?? "";
52
52
  const resolvedMessage = typeof message === "string" && message !== i18nKey ? message : defaults ?? message;
53
- if (typeof resolvedMessage !== "string") return /* @__PURE__ */ jsx(Fragment$1, { children: children ?? resolvedMessage });
53
+ if (typeof resolvedMessage !== "string") return /* @__PURE__ */ jsx(Fragment, { children: children ?? resolvedMessage });
54
54
  const childrenArray = Children.toArray(children);
55
55
  const tokens = parseTaggedMessage(resolvedMessage);
56
- if (!tokens.some((token) => typeof token !== "string") && !components) return /* @__PURE__ */ jsx(Fragment$1, { children: resolvedMessage });
57
- return /* @__PURE__ */ jsx(Fragment$1, { children: renderTokens(tokens, components ?? {}, childrenArray) });
56
+ if (!tokens.some((token) => typeof token !== "string") && !components) return /* @__PURE__ */ jsx(Fragment, { children: resolvedMessage });
57
+ return /* @__PURE__ */ jsx(Fragment, { children: renderTokens(tokens, components ?? {}, childrenArray) });
58
58
  };
59
59
 
60
- //#endregion
61
60
  export { Trans };
62
61
  //# sourceMappingURL=Trans.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Trans.mjs","names":[],"sources":["../../src/Trans.tsx"],"sourcesContent":["'use client';\n\nimport {\n parseTaggedMessage,\n type TaggedMessageToken,\n} from '@intlayer/core/messageFormat';\nimport type { ValidDotPathsFor } from '@intlayer/core/transpiler';\nimport type { DictionaryKeys } from '@intlayer/types/module_augmentation';\nimport type { Namespace, TOptions } from 'i18next';\nimport {\n Children,\n cloneElement,\n Fragment,\n isValidElement,\n type ReactElement,\n type ReactNode,\n} from 'react';\nimport type { TransProps } from 'react-i18next';\nimport { useTranslationLoose } from './useTranslation';\n\n/**\n * `<Trans>` props for a known dictionary namespace: `i18nKey` is validated\n * against the dictionary's dot-paths, matching the strength of `useIntlayer`.\n */\ntype TypedTransProps<N extends DictionaryKeys, P extends string> = Omit<\n TransProps<string>,\n 'i18nKey' | 'ns'\n> & {\n /** Dictionary namespace the `i18nKey` is validated against. */\n ns: N | readonly N[];\n /** Typed dot-path key into the `ns` dictionary. */\n i18nKey: P;\n};\n\n/**\n * Overload set for {@link Trans}: with a `ns` prop the `i18nKey` is a typed\n * dot-path of that dictionary; without one the key falls back to the default\n * namespace and stays loosely typed.\n */\ntype TypedTrans = {\n <N extends DictionaryKeys, P extends ValidDotPathsFor<N>>(\n props: TypedTransProps<N, P>\n ): ReactElement;\n (props: TransProps<string> & { ns?: undefined }): ReactElement;\n};\n\n/**\n * Renders parsed message tokens to React nodes, mapping tags to the\n * `components` prop (object or array form) or to the JSX children\n * (numbered tags `<1>…</1>` index into the children, react-i18next style).\n */\nconst renderTokens = (\n tokens: TaggedMessageToken[],\n components: Record<string, ReactElement> | readonly ReactElement[],\n childrenArray: ReactNode[]\n): ReactNode[] =>\n tokens.map((token, tokenIndex) => {\n if (typeof token === 'string') return token;\n\n const renderedChildren = renderTokens(\n token.children,\n components,\n childrenArray\n );\n\n const mappedComponent = Array.isArray(components)\n ? components[Number(token.tag)]\n : (components as Record<string, ReactElement>)[token.tag];\n\n const fallbackChild = /^\\d+$/.test(token.tag)\n ? childrenArray[Number(token.tag)]\n : undefined;\n\n const elementToClone = mappedComponent ?? fallbackChild;\n\n if (isValidElement(elementToClone)) {\n return cloneElement(\n elementToClone as ReactElement<{ children?: ReactNode }>,\n { key: tokenIndex },\n ...(renderedChildren.length\n ? renderedChildren\n : [\n (elementToClone as ReactElement<{ children?: ReactNode }>).props\n .children,\n ])\n );\n }\n\n // Native HTML tag in the message without a mapping — render it as-is\n if (/^[a-z][\\w-]*$/.test(token.tag)) {\n const NativeTag = token.tag as keyof React.JSX.IntrinsicElements;\n return <NativeTag key={tokenIndex}>{renderedChildren}</NativeTag>;\n }\n\n // Unknown numbered tag — render its children unwrapped\n return <Fragment key={tokenIndex}>{renderedChildren}</Fragment>;\n });\n\n/**\n * Drop-in for react-i18next's `<Trans>`.\n *\n * Supports `values` interpolation, `count` plural resolution, `context`,\n * `defaults` fallback, and component interpolation through the `components`\n * prop (object or array form) or numbered tags mapped onto JSX children.\n *\n * @example\n * ```tsx\n * <Trans i18nKey=\"richText\" components={{ bold: <strong /> }} />\n * <Trans i18nKey=\"hello\" count={2} values={{ name: 'John' }}>\n * Hello <b>{'{{name}}'}</b>\n * </Trans>\n * ```\n */\nexport const Trans = function Trans<\n Key extends string = string,\n Ns extends Namespace = Namespace,\n>({\n i18nKey,\n ns,\n values,\n count,\n context,\n defaults,\n components,\n tOptions,\n children,\n}: TransProps<Key, Ns>): React.ReactElement {\n const { t } = useTranslationLoose(Array.isArray(ns) ? ns[0] : ns);\n\n const translateOptions: TOptions = {\n ...((tOptions ?? {}) as TOptions),\n ...((values ?? {}) as Record<string, unknown>),\n };\n if (count !== undefined) translateOptions.count = count;\n if (context !== undefined) translateOptions.context = context;\n if (typeof defaults === 'string') translateOptions.defaultValue = defaults;\n\n const message = i18nKey\n ? t(i18nKey as string, translateOptions)\n : (defaults ?? '');\n\n const resolvedMessage =\n typeof message === 'string' && message !== i18nKey\n ? message\n : (defaults ?? message);\n\n if (typeof resolvedMessage !== 'string') {\n return <>{children ?? resolvedMessage}</>;\n }\n\n const childrenArray = Children.toArray(children);\n\n const tokens = parseTaggedMessage(resolvedMessage);\n const hasTags = tokens.some((token) => typeof token !== 'string');\n\n if (!hasTags && !components) {\n return <>{resolvedMessage}</>;\n }\n\n return (\n <>\n {renderTokens(\n tokens,\n (components ?? {}) as Record<string, ReactElement>,\n childrenArray\n )}\n </>\n );\n} as TypedTrans;\n"],"mappings":";;;;;;;;;;;;;AAmDA,MAAM,gBACJ,QACA,YACA,kBAEA,OAAO,KAAK,OAAO,eAAe;CAChC,IAAI,OAAO,UAAU,UAAU,OAAO;CAEtC,MAAM,mBAAmB,aACvB,MAAM,UACN,YACA,aACF;CAEA,MAAM,kBAAkB,MAAM,QAAQ,UAAU,IAC5C,WAAW,OAAO,MAAM,GAAG,KAC1B,WAA4C,MAAM;CAEvD,MAAM,gBAAgB,QAAQ,KAAK,MAAM,GAAG,IACxC,cAAc,OAAO,MAAM,GAAG,KAC9B;CAEJ,MAAM,iBAAiB,mBAAmB;CAE1C,IAAI,eAAe,cAAc,GAC/B,OAAO,aACL,gBACA,EAAE,KAAK,WAAW,GAClB,GAAI,iBAAiB,SACjB,mBACA,CACG,eAA0D,MACxD,QACL,CACN;CAIF,IAAI,gBAAgB,KAAK,MAAM,GAAG,GAAG;EACnC,MAAM,YAAY,MAAM;EACxB,OAAO,oBAAC,WAAD,YAA6B,iBAA4B,GAAzC,UAAyC;CAClE;CAGA,OAAO,oBAAC,UAAD,YAA4B,iBAA2B,GAAxC,UAAwC;AAChE,CAAC;;;;;;;;;;;;;;;;AAiBH,MAAa,QAAQ,SAAS,MAG5B,EACA,SACA,IACA,QACA,OACA,SACA,UACA,YACA,UACA,YAC0C;CAC1C,MAAM,EAAE,MAAM,oBAAoB,MAAM,QAAQ,EAAE,IAAI,GAAG,KAAK,EAAE;CAEhE,MAAM,mBAA6B;EACjC,GAAK,YAAY,CAAC;EAClB,GAAK,UAAU,CAAC;CAClB;CACA,IAAI,UAAU,QAAW,iBAAiB,QAAQ;CAClD,IAAI,YAAY,QAAW,iBAAiB,UAAU;CACtD,IAAI,OAAO,aAAa,UAAU,iBAAiB,eAAe;CAElE,MAAM,UAAU,UACZ,EAAE,SAAmB,gBAAgB,IACpC,YAAY;CAEjB,MAAM,kBACJ,OAAO,YAAY,YAAY,YAAY,UACvC,UACC,YAAY;CAEnB,IAAI,OAAO,oBAAoB,UAC7B,OAAO,4CAAG,YAAY,gBAAkB;CAG1C,MAAM,gBAAgB,SAAS,QAAQ,QAAQ;CAE/C,MAAM,SAAS,mBAAmB,eAAe;CAGjD,IAAI,CAFY,OAAO,MAAM,UAAU,OAAO,UAAU,QAE7C,KAAK,CAAC,YACf,OAAO,4CAAG,gBAAkB;CAG9B,OACE,4CACG,aACC,QACC,cAAc,CAAC,GAChB,aACF,EACA;AAEN"}
1
+ {"version":3,"file":"Trans.mjs","names":["Fragment"],"sources":["../../src/Trans.tsx"],"sourcesContent":["'use client';\n\nimport {\n parseTaggedMessage,\n type TaggedMessageToken,\n} from '@intlayer/core/messageFormat';\nimport type { ValidDotPathsFor } from '@intlayer/core/transpiler';\nimport type { DictionaryKeys } from '@intlayer/types/module_augmentation';\nimport type { Namespace, TOptions } from 'i18next';\nimport {\n Children,\n cloneElement,\n Fragment,\n isValidElement,\n type ReactElement,\n type ReactNode,\n} from 'react';\nimport type { TransProps } from 'react-i18next';\nimport { useTranslationLoose } from './useTranslation';\n\n/**\n * `<Trans>` props for a known dictionary namespace: `i18nKey` is validated\n * against the dictionary's dot-paths, matching the strength of `useIntlayer`.\n */\ntype TypedTransProps<N extends DictionaryKeys, P extends string> = Omit<\n TransProps<string>,\n 'i18nKey' | 'ns'\n> & {\n /** Dictionary namespace the `i18nKey` is validated against. */\n ns: N | readonly N[];\n /** Typed dot-path key into the `ns` dictionary. */\n i18nKey: P;\n};\n\n/**\n * Overload set for {@link Trans}: with a `ns` prop the `i18nKey` is a typed\n * dot-path of that dictionary; without one the key falls back to the default\n * namespace and stays loosely typed.\n */\ntype TypedTrans = {\n <N extends DictionaryKeys, P extends ValidDotPathsFor<N>>(\n props: TypedTransProps<N, P>\n ): ReactElement;\n (props: TransProps<string> & { ns?: undefined }): ReactElement;\n};\n\n/**\n * Renders parsed message tokens to React nodes, mapping tags to the\n * `components` prop (object or array form) or to the JSX children\n * (numbered tags `<1>…</1>` index into the children, react-i18next style).\n */\nconst renderTokens = (\n tokens: TaggedMessageToken[],\n components: Record<string, ReactElement> | readonly ReactElement[],\n childrenArray: ReactNode[]\n): ReactNode[] =>\n tokens.map((token, tokenIndex) => {\n if (typeof token === 'string') return token;\n\n const renderedChildren = renderTokens(\n token.children,\n components,\n childrenArray\n );\n\n const mappedComponent = Array.isArray(components)\n ? components[Number(token.tag)]\n : (components as Record<string, ReactElement>)[token.tag];\n\n const fallbackChild = /^\\d+$/.test(token.tag)\n ? childrenArray[Number(token.tag)]\n : undefined;\n\n const elementToClone = mappedComponent ?? fallbackChild;\n\n if (isValidElement(elementToClone)) {\n return cloneElement(\n elementToClone as ReactElement<{ children?: ReactNode }>,\n { key: tokenIndex },\n ...(renderedChildren.length\n ? renderedChildren\n : [\n (elementToClone as ReactElement<{ children?: ReactNode }>).props\n .children,\n ])\n );\n }\n\n // Native HTML tag in the message without a mapping — render it as-is\n if (/^[a-z][\\w-]*$/.test(token.tag)) {\n const NativeTag = token.tag as keyof React.JSX.IntrinsicElements;\n return <NativeTag key={tokenIndex}>{renderedChildren}</NativeTag>;\n }\n\n // Unknown numbered tag — render its children unwrapped\n return <Fragment key={tokenIndex}>{renderedChildren}</Fragment>;\n });\n\n/**\n * Drop-in for react-i18next's `<Trans>`.\n *\n * Supports `values` interpolation, `count` plural resolution, `context`,\n * `defaults` fallback, and component interpolation through the `components`\n * prop (object or array form) or numbered tags mapped onto JSX children.\n *\n * @example\n * ```tsx\n * <Trans i18nKey=\"richText\" components={{ bold: <strong /> }} />\n * <Trans i18nKey=\"hello\" count={2} values={{ name: 'John' }}>\n * Hello <b>{'{{name}}'}</b>\n * </Trans>\n * ```\n */\nexport const Trans = function Trans<\n Key extends string = string,\n Ns extends Namespace = Namespace,\n>({\n i18nKey,\n ns,\n values,\n count,\n context,\n defaults,\n components,\n tOptions,\n children,\n}: TransProps<Key, Ns>): React.ReactElement {\n const { t } = useTranslationLoose(Array.isArray(ns) ? ns[0] : ns);\n\n const translateOptions: TOptions = {\n ...((tOptions ?? {}) as TOptions),\n ...((values ?? {}) as Record<string, unknown>),\n };\n if (count !== undefined) translateOptions.count = count;\n if (context !== undefined) translateOptions.context = context;\n if (typeof defaults === 'string') translateOptions.defaultValue = defaults;\n\n const message = i18nKey\n ? t(i18nKey as string, translateOptions)\n : (defaults ?? '');\n\n const resolvedMessage =\n typeof message === 'string' && message !== i18nKey\n ? message\n : (defaults ?? message);\n\n if (typeof resolvedMessage !== 'string') {\n return <>{children ?? resolvedMessage}</>;\n }\n\n const childrenArray = Children.toArray(children);\n\n const tokens = parseTaggedMessage(resolvedMessage);\n const hasTags = tokens.some((token) => typeof token !== 'string');\n\n if (!hasTags && !components) {\n return <>{resolvedMessage}</>;\n }\n\n return (\n <>\n {renderTokens(\n tokens,\n (components ?? {}) as Record<string, ReactElement>,\n childrenArray\n )}\n </>\n );\n} as TypedTrans;\n"],"mappings":";;;;;;;;;;;;;AAmDA,MAAM,gBACJ,QACA,YACA,kBAEA,OAAO,KAAK,OAAO,eAAe;CAChC,IAAI,OAAO,UAAU,UAAU,OAAO;CAEtC,MAAM,mBAAmB,aACvB,MAAM,UACN,YACA,aACF;CAEA,MAAM,kBAAkB,MAAM,QAAQ,UAAU,IAC5C,WAAW,OAAO,MAAM,GAAG,KAC1B,WAA4C,MAAM;CAEvD,MAAM,gBAAgB,QAAQ,KAAK,MAAM,GAAG,IACxC,cAAc,OAAO,MAAM,GAAG,KAC9B;CAEJ,MAAM,iBAAiB,mBAAmB;CAE1C,IAAI,eAAe,cAAc,GAC/B,OAAO,aACL,gBACA,EAAE,KAAK,WAAW,GAClB,GAAI,iBAAiB,SACjB,mBACA,CACG,eAA0D,MACxD,QACL,CACN;CAIF,IAAI,gBAAgB,KAAK,MAAM,GAAG,GAAG;EACnC,MAAM,YAAY,MAAM;EACxB,OAAO,oBAAC,WAAD,YAA6B,iBAA4B,GAAzC,UAAyC;CAClE;CAGA,OAAO,oBAACA,YAAD,YAA4B,iBAA2B,GAAxC,UAAwC;AAChE,CAAC;;;;;;;;;;;;;;;;AAiBH,MAAa,QAAQ,SAAS,MAG5B,EACA,SACA,IACA,QACA,OACA,SACA,UACA,YACA,UACA,YAC0C;CAC1C,MAAM,EAAE,MAAM,oBAAoB,MAAM,QAAQ,EAAE,IAAI,GAAG,KAAK,EAAE;CAEhE,MAAM,mBAA6B;EACjC,GAAK,YAAY,CAAC;EAClB,GAAK,UAAU,CAAC;CAClB;CACA,IAAI,UAAU,QAAW,iBAAiB,QAAQ;CAClD,IAAI,YAAY,QAAW,iBAAiB,UAAU;CACtD,IAAI,OAAO,aAAa,UAAU,iBAAiB,eAAe;CAElE,MAAM,UAAU,UACZ,EAAE,SAAmB,gBAAgB,IACpC,YAAY;CAEjB,MAAM,kBACJ,OAAO,YAAY,YAAY,YAAY,UACvC,UACC,YAAY;CAEnB,IAAI,OAAO,oBAAoB,UAC7B,OAAO,0CAAG,YAAY,gBAAkB;CAG1C,MAAM,gBAAgB,SAAS,QAAQ,QAAQ;CAE/C,MAAM,SAAS,mBAAmB,eAAe;CAGjD,IAAI,CAFY,OAAO,MAAM,UAAU,OAAO,UAAU,QAE7C,KAAK,CAAC,YACf,OAAO,0CAAG,gBAAkB;CAG9B,OACE,0CACG,aACC,QACC,cAAc,CAAC,GAChB,aACF,EACA;AAEN"}
@@ -2,7 +2,7 @@ import { getHTMLTextDir } from "@intlayer/core/localization";
2
2
  import { resolveMessageNodeToString } from "@intlayer/core/messageFormat";
3
3
  import { getInterpolationValues, resolveTranslation } from "@intlayer/i18next";
4
4
 
5
- //#region src/createTranslationApi.ts
5
+ // src/createTranslationApi.ts
6
6
  /**
7
7
  * Builds the `{ t, i18n }` pair shared by `useTranslation` (runtime
8
8
  * registry lookup) and `useDictionary` / `useDictionaryDynamic`
@@ -71,6 +71,5 @@ const createTranslationApi = ({ locale, setLocale, availableLocales, namespace,
71
71
  };
72
72
  };
73
73
 
74
- //#endregion
75
74
  export { createTranslationApi };
76
75
  //# sourceMappingURL=createTranslationApi.mjs.map
@@ -1,8 +1,8 @@
1
1
  import { useTranslationLoose } from "./useTranslation.mjs";
2
- import * as React from "react";
3
2
  import { jsx } from "react/jsx-runtime";
3
+ import * as React from "react";
4
4
 
5
- //#region src/helpers.tsx
5
+ // src/helpers.tsx
6
6
  const I18nContext = React.createContext({ i18n: null });
7
7
  const Translation = ({ children, ns, keyPrefix }) => {
8
8
  const { t, i18n } = useTranslationLoose(ns, { keyPrefix });
@@ -49,6 +49,5 @@ const getInitialProps = () => ({
49
49
  initialLanguage: "en"
50
50
  });
51
51
 
52
- //#endregion
53
52
  export { I18nContext, Translation, composeInitialProps, getDefaults, getI18n, getInitialProps, nodesToString, setDefaults, setI18n, useSSR, withSSR };
54
53
  //# sourceMappingURL=helpers.mjs.map
@@ -1,13 +1,13 @@
1
- import { useTranslation } from "./useTranslation.mjs";
1
+ import { I18nContext as I18nContext$1, Translation as Translation$1, composeInitialProps as composeInitialProps$1, getDefaults as getDefaults$1, getI18n as getI18n$1, getInitialProps as getInitialProps$1, nodesToString as nodesToString$1, setDefaults as setDefaults$1, setI18n as setI18n$1, useSSR as useSSR$1, withSSR as withSSR$1 } from "./helpers.mjs";
2
2
  import { Trans } from "./Trans.mjs";
3
3
  import { I18nextProvider } from "./I18nextProvider.mjs";
4
- import { useDictionaryDynamic } from "./useDictionaryDynamic.mjs";
5
- import { I18nContext as I18nContext$1, Translation as Translation$1, composeInitialProps as composeInitialProps$1, getDefaults as getDefaults$1, getI18n as getI18n$1, getInitialProps as getInitialProps$1, nodesToString as nodesToString$1, setDefaults as setDefaults$1, setI18n as setI18n$1, useSSR as useSSR$1, withSSR as withSSR$1 } from "./helpers.mjs";
6
4
  import { initReactI18next } from "./initReactI18next.mjs";
7
5
  import { useDictionary } from "./useDictionary.mjs";
6
+ import { useDictionaryDynamic } from "./useDictionaryDynamic.mjs";
7
+ import { useTranslation } from "./useTranslation.mjs";
8
8
  import { withTranslation } from "./withTranslation.mjs";
9
9
 
10
- //#region src/index.ts
10
+ // src/index.ts
11
11
  const nodesToString = nodesToString$1;
12
12
  const setDefaults = setDefaults$1;
13
13
  const getDefaults = getDefaults$1;
@@ -23,6 +23,5 @@ const TransWithoutContext = Trans;
23
23
  const IcuTrans = Trans;
24
24
  const IcuTransWithoutContext = Trans;
25
25
 
26
- //#endregion
27
26
  export { I18nContext, I18nextProvider, IcuTrans, IcuTransWithoutContext, Trans, TransWithoutContext, Translation, composeInitialProps, getDefaults, getI18n, getInitialProps, initReactI18next, nodesToString, setDefaults, setI18n, useDictionary, useDictionaryDynamic, useSSR, useTranslation, withSSR, withTranslation };
28
27
  //# sourceMappingURL=index.mjs.map
@@ -1,6 +1,6 @@
1
1
  import { setDefaults, setI18n } from "./helpers.mjs";
2
2
 
3
- //#region src/initReactI18next.ts
3
+ // src/initReactI18next.ts
4
4
  /**
5
5
  * Drop-in for react-i18next's `initReactI18next` plugin.
6
6
  *
@@ -18,6 +18,5 @@ const initReactI18next = {
18
18
  }
19
19
  };
20
20
 
21
- //#endregion
22
21
  export { initReactI18next };
23
22
  //# sourceMappingURL=initReactI18next.mjs.map
@@ -6,7 +6,7 @@ import { getConfiguration } from "@intlayer/config/node";
6
6
  import { runOnce } from "@intlayer/engine/utils";
7
7
  import { intlayer } from "vite-intlayer";
8
8
 
9
- //#region src/plugin/index.ts
9
+ // src/plugin/index.ts
10
10
  /**
11
11
  * A Vite plugin for react-i18next compat that wraps vite-intlayer
12
12
  * and configures resolve aliases for react-i18next and i18next.
@@ -33,6 +33,5 @@ const reactI18nextVitePlugin = (options) => {
33
33
  return [...Array.isArray(basePlugins) ? basePlugins : [basePlugins], compatPlugin];
34
34
  };
35
35
 
36
- //#endregion
37
36
  export { reactI18nextVitePlugin as default, reactI18nextVitePlugin };
38
37
  //# sourceMappingURL=index.mjs.map
@@ -1,10 +1,10 @@
1
1
  'use client';
2
2
 
3
3
  import { createTranslationApi } from "./createTranslationApi.mjs";
4
- import { useMemo } from "react";
5
4
  import { useDictionary as useDictionary$1, useLocale } from "react-intlayer";
5
+ import { useMemo } from "react";
6
6
 
7
- //#region src/useDictionary.ts
7
+ // src/useDictionary.ts
8
8
  /**
9
9
  * Dictionary-accepting variant of `useTranslation`.
10
10
  *
@@ -49,6 +49,5 @@ const useDictionary = ((dictionary, keyPrefix, options) => {
49
49
  };
50
50
  });
51
51
 
52
- //#endregion
53
52
  export { useDictionary };
54
53
  //# sourceMappingURL=useDictionary.mjs.map
@@ -1,10 +1,10 @@
1
1
  'use client';
2
2
 
3
3
  import { createTranslationApi } from "./createTranslationApi.mjs";
4
- import { useMemo } from "react";
5
4
  import { useDictionaryDynamic as useDictionaryDynamic$1, useLocale } from "react-intlayer";
5
+ import { useMemo } from "react";
6
6
 
7
- //#region src/useDictionaryDynamic.ts
7
+ // src/useDictionaryDynamic.ts
8
8
  /**
9
9
  * Dynamic dictionary-accepting variant of `useTranslation`.
10
10
  *
@@ -38,6 +38,5 @@ const useDictionaryDynamic = ((dictionaryPromise, key, keyPrefix, options) => {
38
38
  };
39
39
  });
40
40
 
41
- //#endregion
42
41
  export { useDictionaryDynamic };
43
42
  //# sourceMappingURL=useDictionaryDynamic.mjs.map
@@ -1,10 +1,10 @@
1
1
  'use client';
2
2
 
3
3
  import { createTranslationApi } from "./createTranslationApi.mjs";
4
- import { useMemo } from "react";
5
4
  import { useLocale } from "react-intlayer";
5
+ import { useMemo } from "react";
6
6
 
7
- //#region src/useTranslation.ts
7
+ // src/useTranslation.ts
8
8
  /**
9
9
  * Drop-in for react-i18next's `useTranslation`.
10
10
  *
@@ -57,6 +57,5 @@ const useTranslation = useTranslationImplementation;
57
57
  */
58
58
  const useTranslationLoose = useTranslationImplementation;
59
59
 
60
- //#endregion
61
60
  export { useTranslation, useTranslationLoose };
62
61
  //# sourceMappingURL=useTranslation.mjs.map
@@ -3,7 +3,7 @@
3
3
  import { useTranslationLoose } from "./useTranslation.mjs";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
 
6
- //#region src/withTranslation.tsx
6
+ // src/withTranslation.tsx
7
7
  /**
8
8
  * Drop-in for react-i18next's `withTranslation` HOC.
9
9
  */
@@ -21,6 +21,5 @@ const withTranslation = ((ns, options) => (WrappedComponent) => {
21
21
  return WithTranslation;
22
22
  });
23
23
 
24
- //#endregion
25
24
  export { withTranslation };
26
25
  //# sourceMappingURL=withTranslation.mjs.map
@@ -1,5 +1,4 @@
1
1
  import { I18nextProvider as I18nextProvider$1 } from "react-i18next";
2
- //#region src/I18nextProvider.d.ts
3
2
  /**
4
3
  * Drop-in for react-i18next's `I18nextProvider`.
5
4
  * The `i18n` prop is accepted for API compatibility but has no effect —
@@ -7,5 +6,4 @@ import { I18nextProvider as I18nextProvider$1 } from "react-i18next";
7
6
  * the `i18n` prop is provided so consumers know to remove it.
8
7
  */
9
8
  export declare const I18nextProvider: typeof I18nextProvider$1;
10
- //#endregion
11
9
  //# sourceMappingURL=I18nextProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"I18nextProvider.d.ts","names":[],"sources":["../../src/I18nextProvider.tsx"],"mappings":";;;;;;;;qBAiBa,wBAAwB"}
1
+ {"version":3,"file":"I18nextProvider.d.ts","names":["_I18nextProvider"],"sources":["../../src/I18nextProvider.tsx"],"mappings":";;;;;;;qBAiBa,wBAAwBA"}
@@ -2,7 +2,6 @@ import { TransProps } from "react-i18next";
2
2
  import { ValidDotPathsFor } from "@intlayer/core/transpiler";
3
3
  import { DictionaryKeys } from "@intlayer/types/module_augmentation";
4
4
  import { ReactElement } from "react";
5
- //#region src/Trans.d.ts
6
5
  /**
7
6
  * `<Trans>` props for a known dictionary namespace: `i18nKey` is validated
8
7
  * against the dictionary's dot-paths, matching the strength of `useIntlayer`.
@@ -40,5 +39,5 @@ type TypedTrans = {
40
39
  * ```
41
40
  */
42
41
  export declare const Trans: TypedTrans;
43
- //#endregion
42
+ export {};
44
43
  //# 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;;;;;;;;;;;;;;;;;qBAsEvC,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"}
@@ -1,7 +1,6 @@
1
1
  import { DictionaryKeys, LocalesValues } from "@intlayer/types/module_augmentation";
2
2
  import { TypedTFunction } from "@intlayer/i18next";
3
3
  import { TOptions } from "i18next";
4
- //#region src/createTranslationApi.d.ts
5
4
  /** Untyped runtime `t()` produced by {@link createTranslationApi}. */
6
5
  export type TranslateFunction = (key: string | string[], optionsOrDefaultValue?: TOptions | string, extraOptions?: TOptions) => string;
7
6
  /**
@@ -68,5 +67,4 @@ export declare const createTranslationApi: ({ locale, setLocale, availableLocale
68
67
  translate: TranslateFunction;
69
68
  i18n: I18nFacade;
70
69
  };
71
- //#endregion
72
70
  //# sourceMappingURL=createTranslationApi.d.ts.map
@@ -1 +1 @@
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
+ {"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,6 +1,5 @@
1
1
  import * as React from "react";
2
2
  import { TFunction, i18n } from "i18next";
3
- //#region src/helpers.d.ts
4
3
  export declare const I18nContext: React.Context<{
5
4
  i18n: i18n;
6
5
  }>;
@@ -25,5 +24,4 @@ export declare const getInitialProps: () => {
25
24
  initialI18nStore: {};
26
25
  initialLanguage: string;
27
26
  };
28
- //#endregion
29
27
  //# sourceMappingURL=helpers.d.ts.map
@@ -1 +1 @@
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"}
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"}
@@ -1,13 +1,12 @@
1
- import { I18nextProvider } from "./I18nextProvider.js";
2
- import { Trans } from "./Trans.js";
3
1
  import { nodesToString as nodesToString$1 } from "./helpers.js";
2
+ import { Trans } from "./Trans.js";
3
+ import { I18nextProvider } from "./I18nextProvider.js";
4
4
  import { initReactI18next } from "./initReactI18next.js";
5
5
  import { useDictionary } from "./useDictionary.js";
6
6
  import { useDictionaryDynamic } from "./useDictionaryDynamic.js";
7
7
  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
- //#region src/index.d.ts
11
10
  export declare const nodesToString: typeof nodesToString$1;
12
11
  export declare const setDefaults: typeof setDefaults$1;
13
12
  export declare const getDefaults: typeof getDefaults$1;
@@ -22,6 +21,5 @@ export declare const I18nContext: typeof I18nContext$1;
22
21
  export declare const TransWithoutContext: typeof TransWithoutContext$1;
23
22
  export declare const IcuTrans: typeof Trans$1;
24
23
  export declare const IcuTransWithoutContext: typeof Trans$1;
25
- //#endregion
26
24
  export { I18nextProvider, type I18nextProviderProps, Trans, type TransProps, type UseTranslationOptions, type UseTranslationResponse, type WithTranslation, type WithTranslationProps, initReactI18next, useDictionary, useDictionaryDynamic, useTranslation, withTranslation };
27
25
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"index.d.ts","names":["nodesToStringImpl","_setDefaults","_getDefaults","_setI18n","_getI18n","_composeInitialProps","_getInitialProps","_useSSR","_withSSR","_Translation","_I18nContext","_TransWithoutContext","_Trans"],"sources":["../../src/index.ts"],"mappings":";;;;;;;;;qBAmDa,sBAAaA;qBACb,oBAAwCC;qBACxC,oBAAwCC;qBACxC,gBAAgCC;qBAChC,gBAAgCC;qBAChC,4BACuBC;qBACvB,wBAAgDC;qBAChD,eAA8BC;qBAC9B,gBAAgCC;qBAChC,oBAAwCC;qBACxC,oBAAwCC;qBAExC,4BAAsCC;qBAMtC,iBAA2BC;qBAC3B,+BAAyCA"}
@@ -1,5 +1,4 @@
1
1
  import { initReactI18next as initReactI18next$1 } from "react-i18next";
2
- //#region src/initReactI18next.d.ts
3
2
  /**
4
3
  * Drop-in for react-i18next's `initReactI18next` plugin.
5
4
  *
@@ -10,5 +9,4 @@ import { initReactI18next as initReactI18next$1 } from "react-i18next";
10
9
  * helpers; actual translation is served by Intlayer.
11
10
  */
12
11
  export declare const initReactI18next: typeof initReactI18next$1;
13
- //#endregion
14
12
  //# sourceMappingURL=initReactI18next.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"initReactI18next.d.ts","names":[],"sources":["../../src/initReactI18next.ts"],"mappings":";;;;;;;;;;;qBAYa,yBAAyB"}
1
+ {"version":3,"file":"initReactI18next.d.ts","names":["_initReactI18next"],"sources":["../../src/initReactI18next.ts"],"mappings":";;;;;;;;;;qBAYa,yBAAyBA"}
@@ -1,11 +1,9 @@
1
1
  import { PluginOption } from "vite";
2
2
  import { intlayer } from "vite-intlayer";
3
- //#region src/plugin/index.d.ts
4
3
  /**
5
4
  * A Vite plugin for react-i18next compat that wraps vite-intlayer
6
5
  * and configures resolve aliases for react-i18next and i18next.
7
6
  */
8
7
  export declare const reactI18nextVitePlugin: (options?: Parameters<typeof intlayer>[0]) => PluginOption[];
9
- //#endregion
10
8
  export { reactI18nextVitePlugin as default };
11
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/plugin/index.ts"],"mappings":";;;;;;;qBAaa,yBAAsB,UACvB,kBAAkB,iBAC3B"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/plugin/index.ts"],"mappings":";;;;;;qBAaa,yBAAsB,UACvB,kBAAkB,iBAC3B"}
@@ -3,7 +3,6 @@ import { UseTranslationOptions } from "react-i18next";
3
3
  import { DictionaryKeys } from "@intlayer/types/module_augmentation";
4
4
  import { ScopedTFunction, TypedTFunction } from "@intlayer/i18next";
5
5
  import { Dictionary } from "@intlayer/types/dictionary";
6
- //#region src/useDictionary.d.ts
7
6
  /**
8
7
  * Overload set for {@link useDictionary}: without a key prefix the returned
9
8
  * `t()` is typed against the dictionary's dot-paths; with a prefix (string or
@@ -34,5 +33,5 @@ type UseDictionary = {
34
33
  * const { t } = useDictionary(_abc);
35
34
  */
36
35
  export declare const useDictionary: UseDictionary;
37
- //#endregion
36
+ export {};
38
37
  //# 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;;;;;;;;;;;;;;;;;;;;qBAqB1D,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"}
@@ -3,7 +3,6 @@ import { UseTranslationOptions } from "react-i18next";
3
3
  import { DictionaryKeys, StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
4
4
  import { ScopedTFunction, TypedTFunction } from "@intlayer/i18next";
5
5
  import { Dictionary } from "@intlayer/types/dictionary";
6
- //#region src/useDictionaryDynamic.d.ts
7
6
  /**
8
7
  * Overload set for {@link useDictionaryDynamic}: without a key prefix the
9
8
  * returned `t()` is typed against the dictionary's dot-paths; with a prefix
@@ -23,5 +22,5 @@ type UseDictionaryDynamic = {
23
22
  * plugin passes the key prefix (`'counter'`) as the third argument.
24
23
  */
25
24
  export declare const useDictionaryDynamic: UseDictionaryDynamic;
26
- //#endregion
25
+ export {};
27
26
  //# 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;;;;;;;;;qBAUlC,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"}
@@ -2,7 +2,6 @@ import { TypedTranslationResult } from "./createTranslationApi.js";
2
2
  import { UseTranslationOptions } from "react-i18next";
3
3
  import { DictionaryKeys } from "@intlayer/types/module_augmentation";
4
4
  import { ScopedTFunction, TypedTFunction } from "@intlayer/i18next";
5
- //#region src/useTranslation.d.ts
6
5
  /**
7
6
  * Overload set for {@link useTranslation}: with a `keyPrefix` option the
8
7
  * returned `t()` accepts relative dot-paths under the prefix; otherwise keys
@@ -22,5 +21,5 @@ export declare const useTranslation: UseTranslation;
22
21
  * consumer-typed surfaces.
23
22
  */
24
23
  export declare const useTranslationLoose: (ns?: string | string[], options?: UseTranslationOptions<string>) => TypedTranslationResult;
25
- //#endregion
24
+ export {};
26
25
  //# 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;;qBAmD9B,gBAAiD;;;;;;qBAOjD,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"}
@@ -1,8 +1,6 @@
1
1
  import { withTranslation as withTranslation$1 } from "react-i18next";
2
- //#region src/withTranslation.d.ts
3
2
  /**
4
3
  * Drop-in for react-i18next's `withTranslation` HOC.
5
4
  */
6
5
  export declare const withTranslation: typeof withTranslation$1;
7
- //#endregion
8
6
  //# sourceMappingURL=withTranslation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"withTranslation.d.ts","names":[],"sources":["../../src/withTranslation.tsx"],"mappings":";;;;;qBAYa,wBAAwB"}
1
+ {"version":3,"file":"withTranslation.d.ts","names":["_withTranslation"],"sources":["../../src/withTranslation.tsx"],"mappings":";;;;qBAYa,wBAAwBA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/react-i18next",
3
- "version": "9.7.0",
3
+ "version": "9.7.1",
4
4
  "private": false,
5
5
  "description": "react-i18next API adapter for intlayer — useTranslation, Trans, withTranslation, I18nextProvider backed by react-intlayer",
6
6
  "keywords": [
@@ -77,13 +77,13 @@
77
77
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
78
78
  },
79
79
  "dependencies": {
80
- "@intlayer/config": "9.6.0",
81
- "@intlayer/core": "9.7.0",
82
- "@intlayer/engine": "9.7.0",
83
- "@intlayer/i18next": "9.7.0",
84
- "@intlayer/types": "9.7.0",
85
- "react-intlayer": "9.7.0",
86
- "vite-intlayer": "9.6.0"
80
+ "@intlayer/config": "9.7.1",
81
+ "@intlayer/core": "9.7.1",
82
+ "@intlayer/engine": "9.7.1",
83
+ "@intlayer/i18next": "9.7.1",
84
+ "@intlayer/types": "9.7.1",
85
+ "react-intlayer": "9.7.1",
86
+ "vite-intlayer": "9.7.1"
87
87
  },
88
88
  "devDependencies": {
89
89
  "@types/node": "^26",
@@ -91,13 +91,13 @@
91
91
  "@utils/ts-config": "1.0.4",
92
92
  "@utils/ts-config-types": "1.0.4",
93
93
  "@utils/tsdown-config": "1.0.4",
94
- "i18next": "26.4.2",
95
- "react-i18next": "17.0.15",
94
+ "i18next": "26.7.1",
95
+ "react-i18next": "17.1.11",
96
96
  "rimraf": "6.1.3",
97
- "tsdown": "0.23.0",
97
+ "tsdown": "0.23.4",
98
98
  "typescript": "7.0.2",
99
- "vite": "8.3.3",
100
- "vitest": "5.0.3"
99
+ "vite": "8.3.5",
100
+ "vitest": "5.1.0"
101
101
  },
102
102
  "peerDependencies": {
103
103
  "i18next": ">=20.0.0",