react-i18next 12.2.0 → 12.2.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 12.2.1
2
+
3
+ - type fix: the type of defaultNS in I18nextProvider should support string[] [1633](https://github.com/i18next/react-i18next/pull/1633)
4
+
1
5
  ### 12.2.0
2
6
 
3
7
  - if defaultValue is passed in not ready t functio (via useTranslation) return that instead of the key, even though the user-land could should be fixed [1618](https://github.com/i18next/react-i18next/issues/1618)
@@ -1 +1 @@
1
- {"type":"module","version":"12.2.0"}
1
+ {"type":"module","version":"12.2.1"}
package/index.d.ts CHANGED
@@ -130,7 +130,7 @@ export function withTranslation<
130
130
  export interface I18nextProviderProps {
131
131
  children?: React.ReactNode;
132
132
  i18n: i18n;
133
- defaultNS?: string;
133
+ defaultNS?: string | string[];
134
134
  }
135
135
 
136
136
  export const I18nextProvider: React.FunctionComponent<I18nextProviderProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-i18next",
3
- "version": "12.2.0",
3
+ "version": "12.2.1",
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",