react-i18next 11.18.5 → 11.18.6

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/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 11.18.6
2
+
3
+ - types: nsMode [1554](https://github.com/i18next/react-i18next/issues/1554)
4
+
1
5
  ### 11.18.5
2
6
 
3
7
  - support unescaping forward slash [1548](https://github.com/i18next/react-i18next/pull/1548)
package/index.d.ts CHANGED
@@ -56,6 +56,7 @@ export interface UseTranslationOptions {
56
56
  useSuspense?: boolean;
57
57
  keyPrefix?: string;
58
58
  bindI18n?: string | false;
59
+ nsMode?: 'fallback' | 'default';
59
60
  // other of these options might also work: https://github.com/i18next/i18next/blob/master/index.d.ts#L127
60
61
  }
61
62
  export type UseTranslationResponse = [TFunction, i18n, boolean] & {
@@ -129,6 +130,7 @@ export interface TranslationProps {
129
130
  ns?: Namespace;
130
131
  i18n?: i18n;
131
132
  useSuspense?: boolean;
133
+ nsMode?: 'fallback' | 'default';
132
134
  }
133
135
 
134
136
  export function Translation(props: TranslationProps): any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-i18next",
3
- "version": "11.18.5",
3
+ "version": "11.18.6",
4
4
  "description": "Internationalization for react done right. Using the i18next i18n ecosystem.",
5
5
  "main": "dist/commonjs/index.js",
6
6
  "types": "./index.d.ts",
package/ts4.1/index.d.ts CHANGED
@@ -294,6 +294,8 @@ export interface UseTranslationOptions<TKPrefix = undefined> {
294
294
  i18n?: i18n;
295
295
  useSuspense?: boolean;
296
296
  keyPrefix?: TKPrefix;
297
+ bindI18n?: string | false;
298
+ nsMode?: 'fallback' | 'default';
297
299
  }
298
300
 
299
301
  export type UseTranslationResponse<N extends Namespace, TKPrefix = undefined> = [
@@ -387,6 +389,7 @@ export interface TranslationProps<
387
389
  i18n?: i18n;
388
390
  useSuspense?: boolean;
389
391
  keyPrefix?: TKPrefix;
392
+ nsMode?: 'fallback' | 'default';
390
393
  }
391
394
 
392
395
  export function Translation<