{"name":"intl-locales-supported","version":"1.2.0","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.0","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.15.0/node@v10.16.0+x64 (darwin)","dist":{"integrity":"sha512-ovOnb2thqwMxMYj4sZvBK4q8qyA/WRkdeM0zTjduNXN44d0tiblisHeK+tM3w0E54x5CY5qeqZIS13cJ7MMS8Q==","shasum":"5e172c56afab345eb09d7e5d063c93abeccb809e","tarball":"http://registry-npm.ywwl.com/intl-locales-supported/download/intl-locales-supported-1.2.0.tgz","fileCount":14,"unpackedSize":14739,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdFNgyCRA9TVsSAnZWagAA2JoQAIVroYIbbKmVsH9Jv4o9\nSELtyJ0/Tmw1ZdyXs8eZj1mQIQ2TAbEtX3kOO6DcQHPn94pvioDProAiq1YQ\nc3JTjrdnI0V2r/6h1IYopt8+9UfYDiMmHkB3QG0DewvEGnnEtG35dtbbSvDS\nyf8mab1HoedgyhUpOfxz75rEP+FivmHqw7zZKSj8+Oui3xggf9AFPB5smMeM\nk6ESzZI/9tCJsNyJPdaU4y9EPFH8EJrBHFsytt5KjH1NOpWB7oybltLqacHu\nTYUqRWMkfgQlV7vjfaKAam37LuAjinpGEsCq7qUZYyhl4qtP4Y+6wEl77J4p\nKAEUKhtq23l057ac2dYZnBXCO4wnXQRAHMvhykEV3Jt8vPDiJhM0oZqod90x\nriEsY13m5ac3GYq+QxSEHLZSFukT1HcwHVTe4t9JTnKOiN9M3T2hi4cVN+Wu\nYgaPLWVHmKYVdqofGdAi3j0+r4SWfZ0iBQrM4XZ3mGpqnSlYEBZAyTL6czvN\nnJlPKHwAmYhF1j9g/B91ISSkPnMYBu58Wg2rvNNpzcRzkgdAtsWasrMq6W/g\nq8loL0TveAFDtU4lqkTJYL9/Twa4JbUSi+rODUiCdQMSlrzGKND8KmPmNRvq\nLkBQD3BFX9OKyeFSHNSmv5xaBWxECQjVO7XNtJP25QlbSvyQey+0DUVGXV7M\nOhI4\r\n=JSm/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDJuZUaZwNvbTu6fOUOBtjaciQQxs5T3SGnE3BILH/b5QIgcvkNbHv/+Hs4vK1DuSy2TxtkqcYp5Hz3zjtBSPCKNxg="}],"size":3941,"noattachment":false,"key":"/intl-locales-supported/-/intl-locales-supported-1.2.0.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.0_1561647153140_0.46045879039738624"},"_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":1561647153263,"_cnpm_publish_time":1561647153263,"dist-tags":{"latest":"1.8.12"}}