{"name":"intl-locales-supported","version":"1.8.6","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.cjs.json","test":"cross-env NODE_ICU_DATA=../../node_modules/full-icu mocha --opts ../../mocha.opts tests/index.ts"},"gitHead":"9c83c2c89c3fcf8d68da29be3f1be8f516b21ae0","_id":"intl-locales-supported@1.8.6","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.20.2/node@v10.16.0+x64 (darwin)","dist":{"integrity":"sha512-AeZ01biOzPLt8Tg80rRYWNnt5su/nts4iro3fzL9J6jiG1BCjqW8gHrsBUuhAs/wsyjNFGzcpNLg4To7SqDVfg==","shasum":"7375bd535ab4e649448d836f4949f66bfdcd18bd","tarball":"http://registry-npm.ywwl.com/intl-locales-supported/download/intl-locales-supported-1.8.6.tgz","fileCount":13,"unpackedSize":19385,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeomxHCRA9TVsSAnZWagAAbF4QAKHGcS7Qn/9/iek3xBzi\nyAZHplGV2Mrh62/Ek3hHCh6xxP+mqHgpClkhAmWyZmbYkKW1gcd9w7oP616n\nsNJuooOM+vMshHUGiEJE60ZQpcU74aDSoAM4L2yP6dArr+FWbx7gWZzIcuJU\nVbEyPcgwn1T29UAU3j2PhV1Yv6MVoR00iExTKK9XxTZIepqqfCrxWL3zhzpK\nAu+zzgytv3rkn7zyo8g/yux2+oeLGjNpRrmOGFOvAr74lzMYJt47Ij/k1T2L\nQeqQ1WT3NfRoThZEqLgO0mAjc216poyHkQAonUHl96pkYJCtIW1Kpz1oMOSr\n3nsFU4CFyCERA082IIJX0TF4IsiZ3FBrl/zOkXvkDmOeQzWiSHuZaEa6zGDA\naXmxPYIXHXhLmBfHHWR02S08Gluf8JmEex/xGA7fy8BH9b730vOvIMSzK2jh\n8aMv8zI3/I75y357ssTcGfR5lOyCvCv6uVCsbdhY54oDyd0HTYCZYeD1OIH6\nDr3WNsWpVnExxCD6NoFPxkFJL4mYON9ougU/5pio3GXFXYNuZfo2iK1C7R7R\nTCxzc/m2js/6jQ8PC6Mbe4UtGZDMxINgTAN9Lj4MmSjxcIUg0rYfzzgPvDLS\nv33tVRauT6VsO5cpXCJSRj5UBScP2V3vDKtyiVFeirwYzOO4NeCNhp+uYfgh\nAW5B\r\n=0Zzj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDnCKlOhk0q1TO6XH+IfWj/TZp9gdmtz7P1vuwmjkHlyAiEA9080hZJQ06WUYwbuVLuS2nzm9rIEt4eEAlQ5VvYvKYc="}],"size":4847,"noattachment":false,"key":"/intl-locales-supported/-/intl-locales-supported-1.8.6.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.6_1587702854837_0.7705364375515988"},"_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":1587702854988,"_cnpm_publish_time":1587702854988,"dist-tags":{"latest":"1.8.12"}}