UNPKG

next-i18next

Version:

The easiest way to translate your NextJs apps.

120 lines (119 loc) 3.98 kB
{ "name": "next-i18next", "version": "6.0.2", "repository": "git@github.com:isaachinman/next-i18next.git", "author": "Isaac Hinman <isaac@isaachinman.com>", "funding": { "type": "github", "url": "https://github.com/sponsors/isaachinman" }, "main": "dist/commonjs/index.js", "types": "./types.d.ts", "license": "MIT", "engines": { "node": ">=10" }, "description": "The easiest way to translate your NextJs apps.", "keywords": [ "react", "i18next", "nextjs", "next", "translation", "localisation", "localization", "locale" ], "scripts": { "check-types": "tsc", "lint": "eslint types.d.ts src/**/* examples __tests__/**/*", "lint:fix": "eslint types.d.ts src/**/* examples __tests__/**/* --fix", "clean": "rm -rf examples/simple/.next && rm -rf dist && mkdir dist", "build:es": "BABEL_ENV=es babel src --extensions '.ts,.tsx' --out-dir dist/es --copy-files", "build:cjs": "BABEL_ENV=cjs babel src --extensions '.ts,.tsx' --out-dir dist/commonjs --copy-files", "build": "yarn clean && yarn build:cjs && yarn build:es", "build:examples/simple": "yarn --cwd examples/simple && yarn --cwd examples/simple build", "heroku-postbuild": "yarn build && yarn build:examples/simple", "prepublishOnly": "yarn build", "run-example": "yarn build && cd examples/simple && yarn && yarn dev", "run-example:prod": "yarn --cwd examples/simple start", "test": "yarn check-types && yarn clean && yarn build:cjs && yarn build:examples/simple && ./scripts/setup-e2e.sh && bundlesize && NODE_ENV=test jest --maxWorkers=1 --silent", "contributors:check": "all-contributors check", "contributors:add": "all-contributors add", "contributors:generate": "all-contributors generate" }, "husky": { "hooks": { "pre-commit": "yarn lint && yarn test" } }, "bundlesize": [ { "path": "./examples/simple/.next/static/chunks/commons*.js", "maxSize": "65 kB" }, { "path": "./examples/simple/.next/static/chunks/main*.js", "maxSize": "7 kB" }, { "path": "./examples/simple/.next/static/chunks/webpack*.js", "maxSize": "760 B" } ], "devDependencies": { "@babel/cli": "^7.10.4", "@babel/core": "^7.10.4", "@babel/plugin-proposal-class-properties": "^7.10.4", "@babel/plugin-transform-runtime": "^7.10.4", "@babel/preset-env": "^7.10.4", "@babel/preset-react": "^7.10.4", "@babel/preset-typescript": "^7.10.4", "@types/jest": "^24.0.16", "@types/jest-environment-puppeteer": "^4.0.0", "@types/react": "^16.8.4", "@types/react-dom": "^16.8.2", "@typescript-eslint/eslint-plugin": "^1.13.0", "@typescript-eslint/parser": "^1.13.0", "all-contributors-cli": "^6.0.0", "babel-core": "^7.0.0-bridge.0", "babel-jest": "^24.1.0", "babel-plugin-add-module-exports": "^1.0.0", "babel-plugin-transform-async-to-generator": "^6.24.1", "bundlesize": "^0.18.0", "enzyme": "^3.8.0", "enzyme-adapter-react-16": "^1.7.1", "eslint": "^6.1.0", "eslint-plugin-import": "^2.17.1", "eslint-plugin-jsx-a11y": "^6.1.2", "eslint-plugin-react": "^7.14.3", "husky": "^3.0.0", "jest": "^24.1.0", "jest-puppeteer": "^4.0.0", "jsdom": "^15.0.0", "jsdom-global": "^3.0.2", "next": "^9.0.1", "puppeteer": "^1.11.0", "react": "^16.12.0", "react-dom": "^16.12.0", "typescript": "^3.5.3" }, "dependencies": { "@types/express": "^4.16.1", "core-js": "^3", "hoist-non-react-statics": "^3.2.0", "i18next": "^19.6.3", "i18next-browser-languagedetector": "^5.0.0", "i18next-fs-backend": "^1.0.7", "i18next-http-backend": "^1.0.17", "i18next-http-middleware": "^3.0.2", "path-match": "^1.2.4", "prop-types": "^15.6.2", "react-i18next": "^11.7.0", "url": "^0.11.0" }, "peerDependencies": { "next": ">= 9.5.0", "react": ">= 16.8.0" } }