react-i18next 13.3.1 → 13.4.0
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/TransWithoutContext.d.mts +1 -0
- package/dist/es/package.json +1 -1
- package/icu.macro.d.mts +1 -0
- package/icu.macro.d.ts +1 -1
- package/index.d.mts +1 -0
- package/index.d.ts +4 -4
- package/initReactI18next.d.mts +1 -0
- package/package.json +20 -13
package/CHANGELOG.md
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TransWithoutContext.js';
|
package/dist/es/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"type":"module","version":"13.
|
|
1
|
+
{"type":"module","version":"13.4.0"}
|
package/icu.macro.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './icu.macro.js';
|
package/icu.macro.d.ts
CHANGED
package/index.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './index.js';
|
package/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { $Subtract, $Tuple } from './helpers';
|
|
1
|
+
import type { $Subtract, $Tuple } from './helpers.js';
|
|
2
2
|
import type {
|
|
3
3
|
ReactOptions,
|
|
4
4
|
i18n,
|
|
@@ -10,11 +10,11 @@ import type {
|
|
|
10
10
|
KeyPrefix,
|
|
11
11
|
} from 'i18next';
|
|
12
12
|
import * as React from 'react';
|
|
13
|
-
import { Trans, TransProps } from './TransWithoutContext';
|
|
14
|
-
export { initReactI18next } from './initReactI18next';
|
|
13
|
+
import { Trans, TransProps } from './TransWithoutContext.js';
|
|
14
|
+
export { initReactI18next } from './initReactI18next.js';
|
|
15
15
|
|
|
16
16
|
export const TransWithoutContext: typeof Trans;
|
|
17
|
-
export { Trans, TransProps }
|
|
17
|
+
export { Trans, TransProps };
|
|
18
18
|
|
|
19
19
|
export function setDefaults(options: ReactOptions): void;
|
|
20
20
|
export function getDefaults(): ReactOptions;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './initReactI18next.js';
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-i18next",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.4.0",
|
|
4
4
|
"description": "Internationalization for react done right. Using the i18next i18n ecosystem.",
|
|
5
5
|
"main": "dist/commonjs/index.js",
|
|
6
|
-
"types": "./index.d.
|
|
6
|
+
"types": "./index.d.mts",
|
|
7
7
|
"jsnext:main": "dist/es/index.js",
|
|
8
8
|
"module": "dist/es/index.js",
|
|
9
9
|
"keywords": [
|
|
@@ -20,28 +20,40 @@
|
|
|
20
20
|
"exports": {
|
|
21
21
|
"./package.json": "./package.json",
|
|
22
22
|
".": {
|
|
23
|
-
"types":
|
|
23
|
+
"types": {
|
|
24
|
+
"require": "./index.d.ts",
|
|
25
|
+
"import": "./index.d.mts"
|
|
26
|
+
},
|
|
24
27
|
"module": "./dist/es/index.js",
|
|
25
28
|
"import": "./dist/es/index.js",
|
|
26
29
|
"require": "./dist/commonjs/index.js",
|
|
27
30
|
"default": "./dist/es/index.js"
|
|
28
31
|
},
|
|
29
32
|
"./TransWithoutContext": {
|
|
30
|
-
"types":
|
|
33
|
+
"types": {
|
|
34
|
+
"require": "./TransWithoutContext.d.ts",
|
|
35
|
+
"import": "./TransWithoutContext.d.mts"
|
|
36
|
+
},
|
|
31
37
|
"module": "./dist/es/TransWithoutContext.js",
|
|
32
38
|
"import": "./dist/es/TransWithoutContext.js",
|
|
33
39
|
"require": "./dist/commonjs/TransWithoutContext.js",
|
|
34
40
|
"default": "./dist/es/TransWithoutContext.js"
|
|
35
41
|
},
|
|
36
42
|
"./initReactI18next": {
|
|
37
|
-
"types":
|
|
43
|
+
"types": {
|
|
44
|
+
"require": "./initReactI18next.d.ts",
|
|
45
|
+
"import": "./initReactI18next.d.mts"
|
|
46
|
+
},
|
|
38
47
|
"module": "./dist/es/initReactI18next.js",
|
|
39
48
|
"import": "./dist/es/initReactI18next.js",
|
|
40
49
|
"require": "./dist/commonjs/initReactI18next.js",
|
|
41
50
|
"default": "./dist/es/initReactI18next.js"
|
|
42
51
|
},
|
|
43
52
|
"./icu.macro": {
|
|
44
|
-
"types":
|
|
53
|
+
"types": {
|
|
54
|
+
"require": "./icu.macro..d.ts",
|
|
55
|
+
"import": "./icu.macro..d.mts"
|
|
56
|
+
},
|
|
45
57
|
"default": "./icu.macro.js"
|
|
46
58
|
}
|
|
47
59
|
},
|
|
@@ -94,7 +106,7 @@
|
|
|
94
106
|
"eslint-plugin-react": "^7.32.2",
|
|
95
107
|
"eslint-plugin-testing-library": "^5.11.0",
|
|
96
108
|
"husky": "^8.0.3",
|
|
97
|
-
"i18next": "^23.
|
|
109
|
+
"i18next": "^23.7.2",
|
|
98
110
|
"jest": "^24.8.0",
|
|
99
111
|
"jest-cli": "^24.8.4",
|
|
100
112
|
"lint-staged": "^8.1.3",
|
|
@@ -107,7 +119,7 @@
|
|
|
107
119
|
"rollup": "3.25.1",
|
|
108
120
|
"sinon": "^7.2.3",
|
|
109
121
|
"tslint": "^6.1.3",
|
|
110
|
-
"typescript": "
|
|
122
|
+
"typescript": "5.1.3",
|
|
111
123
|
"yargs": "^17.7.2"
|
|
112
124
|
},
|
|
113
125
|
"peerDependencies": {
|
|
@@ -172,11 +184,6 @@
|
|
|
172
184
|
"!**/example/**"
|
|
173
185
|
]
|
|
174
186
|
},
|
|
175
|
-
"husky": {
|
|
176
|
-
"hooks": {
|
|
177
|
-
"pre-commit": "lint-staged"
|
|
178
|
-
}
|
|
179
|
-
},
|
|
180
187
|
"lint-staged": {
|
|
181
188
|
"linters": {
|
|
182
189
|
"*.{ts,tsx,js,json,md}": [
|