{"name":"intl-locales-supported","version":"1.0.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","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":{"test":"mocha test/unit/*.js"},"directories":{"test":"test"},"gitHead":"c1fada7a9fb25c4339ad938645146d0aed7daeb3","_id":"intl-locales-supported@1.0.1","_nodeVersion":"10.15.1","_npmVersion":"lerna/3.14.1/node@v10.15.1+x64 (linux)","dist":{"integrity":"sha512-4Tz45GG5vgVh+m6mc/sLhMKdMsRwD15FWK3kKFfSFZRZpsl6FWjFzsGSp514bbKuRpVpleKAWCTmc2fUZumlXQ==","shasum":"a494a5ec0e6dda6512b33669c74b4b2bf4a9c4c2","tarball":"http://registry-npm.ywwl.com/intl-locales-supported/download/intl-locales-supported-1.0.1.tgz","fileCount":5,"unpackedSize":6760,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc4AjmCRA9TVsSAnZWagAAQHEP/RgO/gXZYvpOxjBoSxSF\nquwmEm/Mzkw9XUt0Fga/ojJukgMPwq6V1icWMZyHa7HFofSLtjxo4C+Q32GW\nk0XtpuPh+7NghN25ajaI9a8rW9H2mEqfGsv/WtQrgFQfarzx6d1f8w3Dk3l2\nHDrhe143zJflVH1esqeHBPw0QxK24cwiNrdxj7TaP8GxGkiPXBdTy+pnKDBJ\nHAcTM9PU+LRm4hBNyeL+NzgbStZ+yO3KeEJBNJLPLM0GZgZ8jcCSRUUXJ7iZ\naw7gPhU1XM0V7SqpjWDSfuRtNhxseDCe9RlEccX3pYT9bi4QIfXEib/tb1sY\n8hYWZxvI6mySx7dpyzrvzu1vWPg9mGRTQCiU4E0xp6eUSnywWMEo+8qIlF51\nNP2CvoqnuortGuDlUNbsuapbiWKMT75E4IMzvXx3PaNtAR7CYPNXGC/7LpgA\nuNIdsc4LgLsG269w7OwC3eBv1MGyGv7swal+Wzj/nBOmYBlSXfG5E2Jkp85e\nnGhyJVLl+lvq+LP2RYqq4H/czS4FP25Q/0SASDteIuDVCXbx8GVhb0LdX+w2\n3LoQWmeSq7PmNOwJM+Ma2AEAyB4h2pIOS+CFmiWk5B5ZmUZU5OvoDqVWPgh6\n8tbHR65cqqgNxGduzDXdDa0H/QPuW3CiLK7cObSV1I/cU9YkCyZBdyHCTyKW\no+dK\r\n=0U2n\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDQvYs2/1Qe1/zk3TdFLCZerVkXBnsjcBTBOaONCBR4aAiEA7rMhAE6536SgQChueZ/4spXCJ+Q0MAH+qqigbQOosEY="}],"size":2775,"noattachment":false,"key":"/intl-locales-supported/-/intl-locales-supported-1.0.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"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/intl-locales-supported_1.0.1_1558186213542_0.33353147937731276"},"_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":1558186213649,"_cnpm_publish_time":1558186213649,"dist-tags":{"latest":"1.8.12"}}