UNPKG

react-intl

Version:

Internationalize React apps. This library provides React components and an API to format dates, numbers, and strings, including pluralization and handling translations.

149 lines (148 loc) 5.04 kB
{ "name": "react-intl", "version": "2.4.0", "description": "Internationalize React apps. This library provides React components and an API to format dates, numbers, and strings, including pluralization and handling translations.", "keywords": [ "intl", "i18n", "internationalization", "locale", "localization", "globalization", "react", "reactjs", "format", "formatting", "translate", "translation" ], "author": "Eric Ferraiuolo <edf@ericf.me>", "contributors": [ "Caridy Patino <caridy@gmail.com>" ], "license": "BSD-3-Clause", "homepage": "https://github.com/yahoo/react-intl", "bugs": { "url": "https://github.com/yahoo/react-intl/issues" }, "repository": { "type": "git", "url": "git@github.com:yahoo/react-intl.git" }, "main": "./lib/index.js", "module": "./lib/index.es.js", "jsnext:main": "./lib/index.es.js", "browser": { "./locale-data/index": false, "./locale-data/index.js": false }, "browserify-shim": { "react": "global:React" }, "jest": { "testRegex": "/test/(unit|functional)/.*\\.js", "testPathIgnorePatterns": [ "/test/functional/support/" ], "collectCoverageFrom": [ "src/**/*.js", "!src/en.js" ], "coverageReporters": [ "lcov", "text", "text-summary", "html" ], "coverageThreshold": { "global": { "branches": 85, "functions": 100, "lines": 95, "statements": 95 } } }, "dependencies": { "intl-format-cache": "^2.0.5", "intl-messageformat": "^2.1.0", "intl-relativeformat": "^2.0.0", "invariant": "^2.1.1" }, "peerDependencies": { "react": "^0.14.9 || ^15.0.0 || ^16.0.0", "prop-types": "^15.5.4" }, "devDependencies": { "babel-cli": "^6.2.0", "babel-eslint": "^7.1.1", "babel-jest": "^19.0.0", "babel-plugin-external-helpers": "^6.18.0", "babel-plugin-react-intl": "^2.0.0", "babel-plugin-transform-async-to-generator": "^6.16.0", "babel-plugin-transform-class-properties": "^6.11.5", "babel-plugin-transform-es2015-modules-commonjs": "^6.18.0", "babel-plugin-transform-es3-member-expression-literals": "^6.3.13", "babel-plugin-transform-es3-property-literals": "^6.3.13", "babel-plugin-transform-object-rest-spread": "^6.1.18", "babel-plugin-transform-react-remove-prop-types": "^0.3.2", "babel-preset-es2015": "^6.1.18", "babel-preset-react": "^6.1.18", "babelify": "^7.2.0", "benchmark": "^2.1.0", "browserify": "^14.0.0", "browserify-shim": "^3.8.11", "cross-env": "^4.0.0", "eslint": "^3.10.2", "eslint-plugin-react": "^7.0.1", "expect": "^1.9.0", "expect-jsx": "^3.0.0", "express": "^4.13.3", "formatjs-extract-cldr-data": "^4.0.0", "glob": "^7.0.0", "intl": "^1.2.1", "intl-messageformat-parser": "^1.2.0", "jest": "^19.0.0", "mkdirp": "^0.5.1", "prettier": "^1.6.1", "prop-types": "^15.5.4", "react": "^15.5.4", "react-dom": "^15.5.4", "react-test-renderer": "^15.5.4", "rimraf": "^2.4.2", "rollup": "^0.41.4", "rollup-plugin-babel": "^2.3.9", "rollup-plugin-commonjs": "^7.0.0", "rollup-plugin-memory": "^2.0.0", "rollup-plugin-node-resolve": "^3.0.0", "rollup-plugin-replace": "^1.1.0", "rollup-plugin-uglify": "^2.0.0", "serialize-javascript": "^1.1.1", "superagent": "^3.0.0", "watchify": "^3.7.0" }, "scripts": { "format": "prettier --write --single-quote --trailing-comma=es5 --bracket-spacing false *.js scripts/*.js src/{*.js,**/*.js}", "clean": "rimraf src/en.js coverage/ dist/ lib/ locale-data/ test/renderer.js", "build:data": "babel-node scripts/build-data", "build:lib": "rollup -c rollup.config.lib.js", "build:dist:dev": "cross-env NODE_ENV=development rollup -c rollup.config.dist.js", "build:dist:prod": "cross-env NODE_ENV=production rollup -c rollup.config.dist.js", "build:dist": "npm run build:dist:dev && npm run build:dist:prod", "build": "npm run build:data && npm run build:lib && npm run build:dist", "react:clean": "rimraf node_modules/{react,react-dom,react-addons-test-utils}", "react:14": "npm run react:clean && npm i react@^0.14 react-dom@^0.14 react-addons-test-utils@^0.14", "react:15": "npm run react:clean && npm i react@^15 react-dom@^15", "lint": "eslint .", "lint:fix": "eslint . --fix", "test": "jest --coverage --verbose", "test:react": "npm run react:14 && jest && npm run react:15 && jest", "test:all": "npm run lint && npm run test && npm run test:react", "test:watch": "jest --watch", "test:perf": "cross-env NODE_ENV=production babel-node test/perf", "examples:install": "babel-node scripts/examples npm install", "examples:link": "npm link && babel-node scripts/examples npm link react-intl", "preversion": "npm run clean && npm run build && npm run test:all", "prepublish": "npm run clean && npm run build" } }