{"name":"intl-locales-supported","version":"1.4.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-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"},"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":"32078bc8d41e49050c8ba3288c51b3104a6da9e5","_id":"intl-locales-supported@1.4.0","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.15.0/node@v10.16.0+x64 (linux)","dist":{"integrity":"sha512-f6r/cKcKpI9Ct8ugpDjs4QGqHk/bwKJbvgCFua+2AtSuFt9ly0Hyb6Z6K7Npvvp4Fyovat+MgSVLsXOI6tnC+w==","shasum":"1e8ca3838a2637d2cdd265dec0062bc97d8f8f34","tarball":"http://registry-npm.ywwl.com/intl-locales-supported/download/intl-locales-supported-1.4.0.tgz","fileCount":10,"unpackedSize":13719,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdKI+GCRA9TVsSAnZWagAA7NIP/RHCltmXmSnyuGy7qBci\nQgoq9HjaA+oVyht5+Be92tsmSwV1azu9wSsmIjbScFzJK3s08TGXOGgbYBrW\nnSFBAfAPp4ejd9iWxa0V78rkvE+a2AMWx11v+tQP6Ihqmi8Fq17Jwwsm42Gn\n488qWGlQkEYoFmkYYS3Uk3iptcKsXsvroh7pUtPoSimWNpO6oYBNJcrjRIge\naDNCiFQ7ILecCssKA+RYzAtb1s2KL0BuT+OvaWb4iv5qCOORZJ0RXhErqolh\nB71Or8Pkt87QnYoElGHuDTBzZ85mkwPaLTfydRQRztpkl977Iw8LN6W8bW2t\n1AaUqm/kD1kSsYvbWLqJope8tPtTApZfTTR6cqRiqAi7NFAzbriPTzLqUpLP\nnQNWwLRrcpye9LJVB6B3K7PjrWsbW+BIYzDviONGHMjafMWNqdOkZdU9Dke6\nVSPteMZA4IM+kTrz2wl+5PfHLH+PJ7J8rpd+LsQOu+1nTvfr/3ia9WWnoTjD\naVagd3ApeZkVCFtIGftME8i+ZhXPUGw0KHag/JrRRf1mlHIEwVH8Zbp8Ngpt\nV4XTztBNcbXhTtgIL2qtN3/2LDAavBdo89mabBnBzayFinsRmLfnsnyPSnyX\n3tNVPbKXihj/LFKth7UybrUrQ7qhj0fjIcUwaK/MPfcAdx6PTvMVi6QZt7Az\nukey\r\n=yVmb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC64rWAnI8c4fDxfKH+vqmacvwzkpBuPrSRTsXeeBqs2wIhAOHFNz46rhnLbglJoiIp5Zslhff4yb2M8XN20xNRt5XB"}],"size":3511,"noattachment":false,"key":"/intl-locales-supported/-/intl-locales-supported-1.4.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.4.0_1562939269103_0.18853835021876275"},"_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":1562939269251,"_cnpm_publish_time":1562939269251,"dist-tags":{"latest":"1.8.12"}}