react-i18next 13.2.0 → 13.2.2
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 +8 -0
- package/README.md +0 -3
- package/dist/es/package.json +1 -1
- package/index.d.ts +8 -2
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
### 13.2.2
|
|
2
|
+
|
|
3
|
+
- Fix missing TransWithoutContext type [1672](https://github.com/i18next/react-i18next/pull/1672)
|
|
4
|
+
|
|
5
|
+
### 13.2.1
|
|
6
|
+
|
|
7
|
+
- types: Allow iterable ReactI18NextChildren as children [1669](https://github.com/i18next/react-i18next/pull/1669)
|
|
8
|
+
|
|
1
9
|
### 13.2.0
|
|
2
10
|
|
|
3
11
|
- Don't use defaults prop as default key [1664](https://github.com/i18next/react-i18next/pull/1664)
|
package/README.md
CHANGED
|
@@ -168,9 +168,6 @@ This project follows the [all-contributors](https://github.com/kentcdodds/all-co
|
|
|
168
168
|
<a href="https://locize.com/" target="_blank">
|
|
169
169
|
<img src="https://raw.githubusercontent.com/i18next/i18next/master/assets/locize_sponsor_240.gif" width="240px">
|
|
170
170
|
</a>
|
|
171
|
-
<a href="https://localistars.com/" target="_blank">
|
|
172
|
-
<img src="https://raw.githubusercontent.com/i18next/i18next/master/assets/localistars_sponsor_240.gif" width="240px">
|
|
173
|
-
</a>
|
|
174
171
|
</p>
|
|
175
172
|
|
|
176
173
|
---
|
package/dist/es/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"type":"module","version":"13.2.
|
|
1
|
+
{"type":"module","version":"13.2.2"}
|
package/index.d.ts
CHANGED
|
@@ -10,9 +10,12 @@ import type {
|
|
|
10
10
|
KeyPrefix,
|
|
11
11
|
} from 'i18next';
|
|
12
12
|
import * as React from 'react';
|
|
13
|
-
|
|
13
|
+
import { Trans, TransProps } from './TransWithoutContext';
|
|
14
14
|
export { initReactI18next } from './initReactI18next';
|
|
15
15
|
|
|
16
|
+
export const TransWithoutContext: typeof Trans;
|
|
17
|
+
export { Trans, TransProps }
|
|
18
|
+
|
|
16
19
|
export function setDefaults(options: ReactOptions): void;
|
|
17
20
|
export function getDefaults(): ReactOptions;
|
|
18
21
|
export function setI18n(instance: i18n): void;
|
|
@@ -52,7 +55,10 @@ type ReactI18NextChildren = React.ReactNode | ObjectOrNever;
|
|
|
52
55
|
|
|
53
56
|
declare module 'react' {
|
|
54
57
|
interface HTMLAttributes<T> {
|
|
55
|
-
children
|
|
58
|
+
// This union is inspired by the typings for React.ReactNode. We do this to fix "This JSX tag's 'children' prop
|
|
59
|
+
// expects a single child of type 'ReactI18NextChildren', but multiple children were provided":
|
|
60
|
+
// https://github.com/DefinitelyTyped/DefinitelyTyped/blob/5a1e9f91ed0143adede394adb3f540e650455f71/types/react/index.d.ts#L268
|
|
61
|
+
children?: ReactI18NextChildren | Iterable<ReactI18NextChildren>;
|
|
56
62
|
}
|
|
57
63
|
}
|
|
58
64
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-i18next",
|
|
3
|
-
"version": "13.2.
|
|
3
|
+
"version": "13.2.2",
|
|
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",
|
|
@@ -75,6 +75,7 @@
|
|
|
75
75
|
"@testing-library/jest-dom": "^5.16.5",
|
|
76
76
|
"@testing-library/react": "^11.2.7",
|
|
77
77
|
"@testing-library/react-hooks": "^3.4.2",
|
|
78
|
+
"@types/react": "^18.2.21",
|
|
78
79
|
"all-contributors-cli": "^6.26.0",
|
|
79
80
|
"babel-core": "^7.0.0-bridge.0",
|
|
80
81
|
"babel-jest": "^24.8.0",
|