react-i18next 11.18.2 → 11.18.3

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.3
2
+
3
+ - types: bindI18n option for UseTranslationOptions
4
+
1
5
  ### 11.18.2
2
6
 
3
7
  - more html entities to unescape by default [1538](https://github.com/i18next/react-i18next/pull/1538)
package/index.d.ts CHANGED
@@ -55,6 +55,8 @@ export interface UseTranslationOptions {
55
55
  i18n?: i18n;
56
56
  useSuspense?: boolean;
57
57
  keyPrefix?: string;
58
+ bindI18n?: string | false;
59
+ // other of these options might also work: https://github.com/i18next/i18next/blob/master/index.d.ts#L127
58
60
  }
59
61
  export type UseTranslationResponse = [TFunction, i18n, boolean] & {
60
62
  t: TFunction;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-i18next",
3
- "version": "11.18.2",
3
+ "version": "11.18.3",
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",