{"name":"intl-locales-supported","version":"1.8.11","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":"76e649f2f673c1344fe29ccf739d4b4ebd573ead","_id":"intl-locales-supported@1.8.11","_nodeVersion":"14.1.0","_npmVersion":"lerna/3.20.2/node@v14.1.0+x64 (darwin)","dist":{"integrity":"sha512-J+RhLNDxEvaNPdsoWz2KKlLSqU0MfV4Pd6zS1Yx/tN/KGN5QYe4Z2+ifJod95LlaA4K6qogwrSzm/WyTNOV6RA==","shasum":"a8488b2998b524754e020fef0c0a67fa7b87bd5b","tarball":"http://registry-npm.ywwl.com/intl-locales-supported/download/intl-locales-supported-1.8.11.tgz","fileCount":13,"unpackedSize":20203,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/CEpCRA9TVsSAnZWagAAjUAP/36p6IiERwgzm9dBXQ8/\nhu3eoHmO1Uh2q4tA8WntYpwnO+WxzVqcFjZE9hidyy0/ODh9tMWUHCO6Mkx1\nvwG4H0l5YVM6RUydKLBM1NjGtdg/ix1uNxkFDYY/3q2FHQQLpMiXtWkx1SDt\nMSWWvSdXeqhUpsDVrP+zw2Gmot1BD2TmDOrpcKgbWgZyiPNI2Ay3MgnuAYAk\n15CQH7aryT9moD22NeDS7tqToJ4mnSrx6GHShQ65jE/WJSvc8Ev/g7PewZa7\n6jhwcE7Zw5VxAtyqItu01Iur+/iQ9QUiaGVjtfYxkH00Za48FxKlY1DyxA84\nDN+tLSwGNEqrV+AT9YTU9n2NS7BdA0QS9hkvqoJoCWBWee0qL9x8lYrOgQVH\nxmBSEyqKkbKZxMLAZ3wTnrt+4FPO+kL5a1Mnnd57L9zcCkMYeqXMp1MDe8zj\n4qb72rH60cUYSC6CEgVOewVhF81jhS01wrrnnIrUy58JrkbVlCrBr9uMCLb8\nIyne3z4bFJt5SeEr1hAUNfwsBzqA6i/ffRiN4VGGfgXRftGmzSQ2hzLcKMZk\nD+AbjNbKOT0yCad7WPe12ft0i3W2WCqHwxKux83MP/NDpmSKacWNSOxbcikQ\nXUj1+QIfClfav7mpUeaWf0gU4BsoQAq82Tlxegez/V1K+Av3ASoKrQ850MZ7\n+cTu\r\n=x5JQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEh91UfFJ11N5hT80uu/CFNnSTYdTkxlLi4v4IXHTb1AAiB/Op/6ulCFwkK/JUU6eNDjWPgKPu0jGjsfB4ZjyrbHyw=="}],"size":4872,"noattachment":false,"key":"/intl-locales-supported/-/intl-locales-supported-1.8.11.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.11_1593581864801_0.40569741544345783"},"_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":1593581864905,"_cnpm_publish_time":1593581864905,"dist-tags":{"latest":"1.8.12"}}