{"name":"intl-locales-supported","version":"1.8.10","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 jest"},"gitHead":"8d6c27f617367c032ab8d5e9ab46003585d12a9d","_id":"intl-locales-supported@1.8.10","_nodeVersion":"12.16.2","_npmVersion":"lerna/3.20.2/node@v12.16.2+x64 (linux)","dist":{"integrity":"sha512-CKSmdBy6YHBbocLjDH/OyWJCjDTPZiuvqYzz19Lsfj602E5LptrJcnxAYng/QKJjt+avS8vqFYJB5h0EGX08KQ==","shasum":"66c90ee2b6fbab5326f8bd9874b253bf3fb0bf22","tarball":"http://registry-npm.ywwl.com/intl-locales-supported/download/intl-locales-supported-1.8.10.tgz","fileCount":13,"unpackedSize":20001,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJezmjvCRA9TVsSAnZWagAATLUQAJxIcXS0tY9r7hRUNT/E\nlN55eZHrdCLPim8SRnmx0uN/8QwFpvJQ+7T3egFEqwKb56Pq0eqShVo0RQdt\nq+43E4auVdSmAxdv4utJdy8ubgzsM/TTMI0r7SQM2HD4YHEd9ul53beKdMy6\nZ/v6W9Fb87l0Hov3bf0mF+yKX74CDFBhBAMX0dJINKA2FNL8JAKjbL7yEGvw\nPNhZm+Uzdvodbo1YLV4El51uorWHijUfWFtnOWLudHtwoocZ38axONckQwAw\nygr2tReWotE1EKiTj5lZJqfoApAPphPApGYkEoQCVF1LVqpfyUV+xKXz5mu3\nb2qInn0FGJrlbt0ZKgJ7OcS13NlKPGTHwCsFLokq7MHkCQdoT9SNrN2dVjhS\nDaPmOU622QXEkiwjUEoSfH23yIT0vFMwOrHdqXzrWKtTZzsp4kROgFcbrI0r\ntYwR+PJimtuc1sNP7L/H5Nfs6URamNygCIqek/NhjzKmZRwZW3YhNY3f4MEW\n1HePSYSU4Z4SQaAfuHQ0P+bwHRYU9XJVH6FipGMr7jOcLPQjhmVVmCJUGfdv\nozjsRpSCjEYZ8W0HP1lYBMPUE8RbDq3Ga03cXfxxwMQxrucZmJcQ7+9lbH5G\nSoibZsyl8ufnGt5LPLIn2QeRrhKADlH3Co2xSk4g69LnEh+fFxtyZIbZl0oE\nRt/b\r\n=dJ4K\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBqed4JO68wo6HRN4S9Or0DQrw5s3T6gJ/GHkgsGrMWsAiBKeD71QSQWSd/q8CrJf/TwvDJ6/aTpAG2jxWqhBXEorQ=="}],"size":4857,"noattachment":false,"key":"/intl-locales-supported/-/intl-locales-supported-1.8.10.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.10_1590585583215_0.19021562769806"},"_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":1590585583299,"_cnpm_publish_time":1590585583299,"dist-tags":{"latest":"1.8.12"}}