{"name":"intl-locales-supported","version":"1.8.9","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":"dist/index.js","module":"lib/index.js","types":"dist/index.d.ts","author":{"name":"Eric Ferraiuolo","email":"edf@ericf.me"},"license":"BSD-3-Clause","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"},"sideEffects":false,"homepage":"https://github.com/formatjs/formatjs","scripts":{"clean":"rimraf dist lib *.tsbuildinfo","build":"tsc && tsc -p tsconfig.esm.json","test":"cross-env TZ=UTC NODE_ICU_DATA=../../node_modules/full-icu jest"},"gitHead":"91d1251eb9a54e153314e6c14572cd5dfd01b9ce","_id":"intl-locales-supported@1.8.9","_nodeVersion":"10.17.0","_npmVersion":"lerna/3.20.2/node@v10.17.0+x64 (linux)","dist":{"integrity":"sha512-9djJEK7h6wq9Njj5RAqWLf5lGe7OxTtty/ogLFJy/FKjikoyx0q92mSE1fUsJZrnbrgF5Cco9OP9JePsUG2g9Q==","shasum":"bab8b6578bfa9e670b9657652e87af99358aa9a8","tarball":"http://registry-npm.ywwl.com/intl-locales-supported/download/intl-locales-supported-1.8.9.tgz","fileCount":13,"unpackedSize":19841,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJey1BDCRA9TVsSAnZWagAAg/0P/0iLaUqGvUvDWl9XOwzQ\nlURsHI/hnjKSl+M/LWVR/6CkgEfKfBl6ht6RbtHohfHOf5LOZLxVqDA00rNs\n0sDcvy++tuR69p3RgshQiccpP6VMpHplZ32fBKaMGMfumW0+2dElebkxVKtT\nY2JZX7vAQA4F5vkzqjRXML9ptSjgkOY70rTe1xE7FvROe/VhDfEQIt81ZAp6\nb1dz77UsJ1CPxmxgWmIZkaw/VH623pkepO/xHT3kPl+TwcpFgt13vWbsnofG\niRvKdbTdOM4nVY6Ljp6rTcMt8mmCEojbY/PRUB5Xzv272dspTJu9GfXIIsfl\n1Uks7zsApGQZUfA58SFLagh49AlP47SptxdpyUCiP8ttpDL1jMaa6NxJ99st\npb+DRfBdVvaNh0j2zSFnshBDRs5ZaPLjt2aAafm/jy6Z3/MfxgPp2G2mh1NJ\nlU9XLGbNxd/hKrTE64OfToF4GWcv+gNCWSQ2SaKXb1Cv8AXEJ7Ha0QG42YIT\nsvlj8gDl4HYiPWXHaXSPBQQEyjFWDbHXO0q2pAynNWwIXNwCuVwnwjDl9IRq\nbTJ9hJgw0GyjgTuwMO7q0btJC/Ww1gbkTSHNSHq64NslXUqRWx4/vOT3CKuv\nONvyBMS7Gdrt+UU9OwZcVDREn4S1Al2ghURuMpPMeDPcVctFuKrH5oF3hqag\n4RoY\r\n=XZ9h\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGqxi+U7lH+ysEk4AP3hrtXGincfIBxxhb0mGi3djl3UAiEA/9TJufyMR45cKgzYUKEUnCCbvwY/BlRJ/rSLt2DtrL8="}],"size":4879,"noattachment":false,"key":"/intl-locales-supported/-/intl-locales-supported-1.8.9.tgz"},"maintainers":[{"email":"eferraiuolo@gmail.com","name":"ericf"},{"email":"holevietlong@gmail.com","name":"longlho"},{"email":"okuryu@okuryu.com","name":"okuryu"},{"email":"dinglinjie+npm@gmail.com","name":"pyrocat"},{"email":"seth@bertalotto.net","name":"redonkulus"}],"_npmUser":{"name":"longlho","email":"holevietlong@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/intl-locales-supported_1.8.9_1590382658613_0.8769423973248738"},"_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":1590382658724,"_cnpm_publish_time":1590382658724,"dist-tags":{"latest":"1.8.12"}}