{"name":"intl-locales-supported","version":"1.3.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":"bce3e9726f9d98613deca5761ffce481d824a885","_id":"intl-locales-supported@1.3.0","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.15.0/node@v10.16.0+x64 (linux)","dist":{"integrity":"sha512-h0b8HRKKGftWJNexAzvG8Vl7E9JTdF4dD4GDS420rySVJjqsGtBkO1RRDJlKkOTWrhBwCxODRx7r5RcDl8OhTg==","shasum":"59ab220c8bcd0b3af6ede184db58a66c0cf67aae","tarball":"http://registry-npm.ywwl.com/intl-locales-supported/download/intl-locales-supported-1.3.0.tgz","fileCount":12,"unpackedSize":14376,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdGzw+CRA9TVsSAnZWagAAvUIP/1QlkRtukGVRK7BxvV7K\nr+lwsKw367AT3xk4ug6CqKDBC2AnLzsFiXlTs1e78lFNXcr1bPKBvlJYdTj7\nXObDqVL5s+N/VjGrxit+2FayzrFSDYPK1VdaKb8wYO3wuQeInk4tsbu0nHAU\nXrpKSgmC3Oy+k8CoaVFvRkLUbK1ZX2hJnSNHS67u+sA/XDTaFc7coK7WGV85\nTWKLTdyRupcd7xLWFNtwcJ9wQA8ZFR7XXU8PJVzWOc3FWN3W9QwD/9XSy8X1\nlIRCAC5EmotBnnj3RQHuYXyegGmDg0dXkaYXteUupQ4NDo8NV3lr73ctsdq0\nsCXlApJh6cFgDkTVPrTQop1dEPUtuZabBlgx/8PnPlWYnC5yMPQcZucRXIvP\nRqH40UCdOwU48fyzPSFCw5hXV6T8fNZPnof3UDGf3Wb7pdnlsoj0AhEdgSHM\nXDjsGSokacA4erPBy5LBxlmwOMcTC1+wPNPcRQ6hQJHZ/XpWSSEzf1AE6PfK\nSl+Kf+ywmMBz5A6WY/s6B6PFOP3KvLYtBfYSl1N4PQCz54r21JEnfJe+LIBT\nAQkthUD+rcNUx9ONIdiJn19+tYG23wHmnfsXx1DvbXagwiD2ZHHiAHd8YKBT\nsi/A8TOStqki5FyxHpSuQTWs1o5ai+2SNG05zKPrT5MyqfKJgEiUCzbKUiKK\n0ZJC\r\n=MdD9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDfbYQzgTUBnKJsYEjoivTnl6j/c30C82d9Dr5MGKAXpQIhAIO/y3q2kIgzndbPkB2KBqa16/1846a77x4Ckmiegxzg"}],"size":3836,"noattachment":false,"key":"/intl-locales-supported/-/intl-locales-supported-1.3.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.3.0_1562065982195_0.21359199801553208"},"_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":1562065982340,"_cnpm_publish_time":1562065982340,"dist-tags":{"latest":"1.8.12"}}