react-i18next 11.15.2 → 11.15.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 +4 -0
- package/package.json +1 -2
- package/ts4.1/index.d.ts +2 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
### 11.15.3
|
|
2
|
+
|
|
3
|
+
- types: fix for issue introduced with type extension for react-native [1436](https://github.com/i18next/react-i18next/pull/1436)
|
|
4
|
+
|
|
1
5
|
### 11.15.2
|
|
2
6
|
|
|
3
7
|
- types: TypeScript interface for the Trans component does now accept react-native props [1418](https://github.com/i18next/react-i18next/pull/1418)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-i18next",
|
|
3
|
-
"version": "11.15.
|
|
3
|
+
"version": "11.15.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",
|
|
@@ -49,7 +49,6 @@
|
|
|
49
49
|
"@testing-library/jest-dom": "^5.11.6",
|
|
50
50
|
"@testing-library/react": "^11.2.7",
|
|
51
51
|
"@testing-library/react-hooks": "^3.4.2",
|
|
52
|
-
"@types/react-native": "^0.66.6",
|
|
53
52
|
"all-contributors-cli": "^6.20.0",
|
|
54
53
|
"babel-core": "^7.0.0-bridge.0",
|
|
55
54
|
"babel-eslint": "^10.0.3",
|
package/ts4.1/index.d.ts
CHANGED
|
@@ -8,7 +8,6 @@ import i18next, {
|
|
|
8
8
|
TFunctionResult,
|
|
9
9
|
} from 'i18next';
|
|
10
10
|
import * as React from 'react';
|
|
11
|
-
import { TextProps } from 'react-native';
|
|
12
11
|
|
|
13
12
|
type Subtract<T extends K, K> = Omit<T, keyof K>;
|
|
14
13
|
|
|
@@ -239,7 +238,7 @@ export type TransProps<
|
|
|
239
238
|
K extends TFuncKey<N, TKPrefix> extends infer A ? A : never,
|
|
240
239
|
N extends Namespace = DefaultNamespace,
|
|
241
240
|
TKPrefix = undefined,
|
|
242
|
-
E
|
|
241
|
+
E = React.HTMLProps<HTMLDivElement>
|
|
243
242
|
> = E & {
|
|
244
243
|
children?: React.ReactNode;
|
|
245
244
|
components?: readonly React.ReactNode[] | { readonly [tagName: string]: React.ReactNode };
|
|
@@ -259,7 +258,7 @@ export function Trans<
|
|
|
259
258
|
K extends TFuncKey<N, TKPrefix> extends infer A ? A : never,
|
|
260
259
|
N extends Namespace = DefaultNamespace,
|
|
261
260
|
TKPrefix extends KeyPrefix<N> = undefined,
|
|
262
|
-
E
|
|
261
|
+
E = React.HTMLProps<HTMLDivElement>
|
|
263
262
|
>(props: TransProps<K, N, TKPrefix, E>): React.ReactElement;
|
|
264
263
|
|
|
265
264
|
export function useSSR(initialI18nStore: Resource, initialLanguage: string): void;
|