UNPKG

5.74 kBJSONView Raw
1{
2 "name": "react-i18next",
3 "version": "15.4.0",
4 "description": "Internationalization for react done right. Using the i18next i18n ecosystem.",
5 "main": "dist/commonjs/index.js",
6 "types": "./index.d.mts",
7 "jsnext:main": "dist/es/index.js",
8 "module": "dist/es/index.js",
9 "keywords": [
10 "i18next",
11 "internationalization",
12 "i18n",
13 "translation",
14 "localization",
15 "l10n",
16 "globalization",
17 "react",
18 "reactjs"
19 ],
20 "exports": {
21 "./package.json": "./package.json",
22 ".": {
23 "types": {
24 "require": "./index.d.ts",
25 "import": "./index.d.mts"
26 },
27 "module": "./dist/es/index.js",
28 "import": "./dist/es/index.js",
29 "require": "./dist/commonjs/index.js",
30 "default": "./dist/es/index.js"
31 },
32 "./TransWithoutContext": {
33 "types": {
34 "require": "./TransWithoutContext.d.ts",
35 "import": "./TransWithoutContext.d.mts"
36 },
37 "module": "./dist/es/TransWithoutContext.js",
38 "import": "./dist/es/TransWithoutContext.js",
39 "require": "./dist/commonjs/TransWithoutContext.js",
40 "default": "./dist/es/TransWithoutContext.js"
41 },
42 "./initReactI18next": {
43 "types": {
44 "require": "./initReactI18next.d.ts",
45 "import": "./initReactI18next.d.mts"
46 },
47 "module": "./dist/es/initReactI18next.js",
48 "import": "./dist/es/initReactI18next.js",
49 "require": "./dist/commonjs/initReactI18next.js",
50 "default": "./dist/es/initReactI18next.js"
51 },
52 "./icu.macro": {
53 "types": {
54 "require": "./icu.macro..d.ts",
55 "import": "./icu.macro..d.mts"
56 },
57 "default": "./icu.macro.js"
58 }
59 },
60 "homepage": "https://github.com/i18next/react-i18next",
61 "bugs": "https://github.com/i18next/react-i18next/issues",
62 "repository": {
63 "type": "git",
64 "url": "https://github.com/i18next/react-i18next.git"
65 },
66 "dependencies": {
67 "@babel/runtime": "^7.25.0",
68 "html-parse-stringify": "^3.0.1"
69 },
70 "devDependencies": {
71 "@babel/cli": "^7.24.8",
72 "@babel/core": "^7.25.2",
73 "@babel/eslint-parser": "^7.25.1",
74 "@babel/plugin-proposal-async-generator-functions": "^7.20.7",
75 "@babel/plugin-proposal-object-rest-spread": "^7.20.7",
76 "@babel/plugin-transform-modules-commonjs": "^7.24.8",
77 "@babel/plugin-transform-runtime": "^7.24.7",
78 "@babel/polyfill": "^7.12.1",
79 "@babel/preset-env": "^7.25.3",
80 "@babel/preset-react": "^7.24.7",
81 "@babel/register": "^7.24.6",
82 "@rollup/plugin-babel": "^6.0.4",
83 "@rollup/plugin-commonjs": "^26.0.1",
84 "@rollup/plugin-node-resolve": "^15.2.3",
85 "@rollup/plugin-replace": "^5.0.7",
86 "@rollup/plugin-terser": "0.4.4",
87 "@testing-library/dom": "^10.4.0",
88 "@testing-library/jest-dom": "^6.4.8",
89 "@testing-library/react": "^16.1.0",
90 "@types/jest": "^29.5.12",
91 "@types/react": "^19.0.0",
92 "@vitest/coverage-v8": "^2.0.5",
93 "all-contributors-cli": "^6.26.1",
94 "babel-core": "^7.0.0-bridge.0",
95 "babel-plugin-macros": "^3.1.0",
96 "babel-plugin-tester": "^11.0.4",
97 "coveralls": "^3.1.1",
98 "cpy-cli": "^5.0.0",
99 "cross-env": "^7.0.3",
100 "eslint": "^8.57.0",
101 "eslint-config-airbnb": "19.0.4",
102 "eslint-config-prettier": "^9.1.0",
103 "eslint-plugin-import": "^2.29.1",
104 "eslint-plugin-jest-dom": "^5.4.0",
105 "eslint-plugin-jsx-a11y": "^6.9.0",
106 "eslint-plugin-react": "^7.35.0",
107 "eslint-plugin-testing-library": "^6.3.0",
108 "happy-dom": "^14.12.3",
109 "husky": "^9.1.4",
110 "i18next": "^23.12.2",
111 "lint-staged": "^15.2.9",
112 "mkdirp": "^3.0.1",
113 "prettier": "^3.3.3",
114 "react": "^19.0.0",
115 "react-dom": "^19.0.0",
116 "react-test-renderer": "^19.0.0",
117 "rimraf": "^6.0.1",
118 "rollup": "^4.20.0",
119 "typescript": "~5.5.4",
120 "vitest": "^2.0.5",
121 "yargs": "^17.7.2"
122 },
123 "peerDependencies": {
124 "i18next": ">= 23.2.3",
125 "react": ">= 16.8.0"
126 },
127 "peerDependenciesMeta": {
128 "react-dom": {
129 "optional": true
130 },
131 "react-native": {
132 "optional": true
133 }
134 },
135 "scripts": {
136 "clean": "rimraf dist && mkdirp dist",
137 "lint": "eslint --cache .",
138 "lint:fix": "eslint --cache --fix .",
139 "format": "prettier . --check",
140 "format:fix": "prettier . --write --list-different",
141 "copy": "cpy ./dist/umd/react-i18next.min.js ./dist/umd/react-i18next.js . --flat && echo '{\"type\":\"module\"}' > dist/es/package.json",
142 "build:es": "cross-env BABEL_ENV=ESNext babel src --out-dir dist/es",
143 "build:cjs": "babel src --out-dir dist/commonjs",
144 "build:umd": "rollup -c rollup.config.mjs --format umd && rollup -c rollup.config.mjs --format umd --uglify",
145 "build:amd": "rollup -c rollup.config.mjs --format amd && rollup -c rollup.config.mjs --format amd --uglify",
146 "build:iife": "rollup -c rollup.config.mjs --format iife && rollup -c rollup.config.mjs --format iife --uglify",
147 "build": "npm run clean && npm run build:cjs && npm run build:es && npm run build:umd && npm run build:amd && npm run copy",
148 "fix_dist_package": "node -e 'console.log(`{\"type\":\"module\",\"version\":\"${process.env.npm_package_version}\"}`)' > dist/es/package.json",
149 "preversion": "npm run build && git push",
150 "postversion": "npm run fix_dist_package && git push && git push --tags",
151 "test": "vitest",
152 "test:coverage": "npm run test -- --coverage --run",
153 "test:typescript": "vitest --workspace vitest.workspace.typescript.mts",
154 "contributors:add": "all-contributors add",
155 "contributors:generate": "all-contributors generate",
156 "prepare": "husky"
157 },
158 "author": "Jan Mühlemann <jan.muehlemann@gmail.com> (https://github.com/jamuhl)",
159 "license": "MIT",
160 "lock": false,
161 "sideEffects": false
162}