{"name":"intl-locales-supported","version":"1.2.1","description":"Utility to help you polyfill the Node.js runtime when the Intl APIs are missing, or if the built-in Intl is missing locale data that you need.","main":"index.js","module":"lib/index.js","typings":"lib/index.d.ts","author":{"name":"Eric Ferraiuolo","email":"edf@ericf.me"},"license":"BSD","repository":{"type":"git","url":"git+https://github.com/formatjs/formatjs.git"},"keywords":["i18n","intl","internationalization","localization","globalization"],"bugs":{"url":"https://github.com/formatjs/formatjs/issues"},"homepage":"https://github.com/formatjs/formatjs","scripts":{"clean":"rimraf dist lib","build":"tsc && tsc -p tsconfig.cjs.json","test":"mocha --opts ../../mocha.opts tests/index.ts"},"gitHead":"8b0baec8eda5002715cf893274fe59782fc2d371","_id":"intl-locales-supported@1.2.1","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-ycw5mr/w2sML6+6OCbRQZAyvmybS3QFc4m7JapHxfTXeL2b0NHNPWLRZo0fwzlLitim0y55zbUI8MDwflBjQsQ==","shasum":"146e81a5ca5ae4c1e8456854977b8392d19631dd","tarball":"http://registry-npm.ywwl.com/intl-locales-supported/download/intl-locales-supported-1.2.1.tgz","fileCount":12,"unpackedSize":14058,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdGeZlCRA9TVsSAnZWagAAONMP/AscIfJwe8GjXMtIhmYw\nTKND3Yq6aiyN4ML7M+t0uTIgVnGH+39oWKFY/QephmRh1oQdYumo0cy/Do56\n22jF1TQFChXQ92pd7jn6l1SAur55Cx4/Wf2JaJsucQ7xE3brAvljhjNABDVm\nZIBCgg5aIVbdXKxMiiF89vs4Lzl4qdR5u+ESEEZ0MoyYU3rckLhqu/HlLZKp\n2y483tSLGvPUo83tHr2KifnsbkxBKtycz2QZpxEpUrc+VRpYEZYs0mbiHD6F\nJROiubZtzhU4RD0cisJn7Glq6Ffs8OEQANcg5CLwM5QRyTjmjrKI7BDCM7nE\ntGawvcWM2DauHwLkYOdpRt+/uZfnoSrm4ADnFzIiLCY/qE0L1G2DLc+eFvCz\nqi0Dran+5W+f1+/p2zE3BiVYnyG1koSouKn6LzOnd7nGQUBXrrVi04raCJXp\nKKWax1QXm1PKXBDKp3D/+6zFYBfOb03k7Jgv2pY7zBAnajt3Oq+ON1jPRA9g\n1gQNLg0hgsPdoPpvXC1NGT5gIYD0pbuZP9Lh3SZYbL4OiB6CJ3Ev98peEe7w\nqTZ2S7/jOloDjNC2I+D9Xz6cDZgGxq5s4qRrtW2vXaI+1kxxb7DF+XW5ziDf\n/1WbU9SQdLh5TuQGf33pMTuLyfX/6FVyFuDfCoGfvQZMja/AC/BUFhHkeGeM\n/IDP\r\n=J8xU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCexf3CQbwJY3Y/EkwJIcPazZpRZ38KUzbG3xw1MJfvwAIgLwPA38wgCIbOsa3NKRjeq1sJTHfqLAMjjZMKItbK4w4="}],"size":3770,"noattachment":false,"key":"/intl-locales-supported/-/intl-locales-supported-1.2.1.tgz"},"maintainers":[{"name":"ericf","email":"eferraiuolo@gmail.com"},{"name":"okuryu","email":"okuryu@okuryu.com"},{"name":"redonkulus","email":"seth@bertalotto.net"}],"_npmUser":{"name":"longlho","email":"holevietlong@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/intl-locales-supported_1.2.1_1561978468178_0.8731126286104289"},"_hasShrinkwrap":false,"readme":"# intl-locales-supported\n\nUtility to help you determine if your runtime has modern Intl API & locales support. This specifically checks for `Intl.NumberFormat`, `Intl.PluralRules` & `Intl.RelativeTimeFormat` and is being used by `react-intl`.\n\n[![npm Version](https://badgen.net/npm/v/intl-locales-supported)](https://www.npmjs.org/package/intl-locales-supported)\n![size](https://badgen.net/bundlephobia/minzip/intl-locales-supported)\n\n## Usage\n\n```js\nconst areIntlLocalesSupported = require('intl-locales-supported');\n\nconst localesMyAppSupports = [\n  /* list locales here */\n];\n\n// Determine if the built-in `Intl` has the locale data we need.\nif (\n  !areIntlLocalesSupported(localesMyAppSupports, [\n    Intl.PluralRules,\n    Intl.RelativeTimeFormat,\n  ])\n) {\n  // `Intl` exists, but it doesn't have the data we need, so load the\n  // polyfill and replace the constructors we need with the polyfill's.\n  require('@formatjs/intl-pluralrules/polyfill');\n  require('@formatjs/intl-pluralrules/locale-data/de'); // Load de\n\n  require('@formatjs/intl-relativetimeformat/polyfill');\n  require('@formatjs/intl-relativetimeformat/locale-data/de'); // Load de\n}\n```\n","publish_time":1561978468298,"_cnpm_publish_time":1561978468298,"dist-tags":{"latest":"1.8.12"}}