{"name":"intl-locales-supported","version":"1.4.5","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","type":"module","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":"cross-env NODE_ICU_DATA=../../node_modules/full-icu mocha --opts ../../mocha.opts tests/index.ts"},"gitHead":"ced8ad1608c25e47fbb0578b11a6184296fd4045","_id":"intl-locales-supported@1.4.5","_nodeVersion":"12.8.0","_npmVersion":"lerna/3.16.4/node@v12.8.0+x64 (win32)","dist":{"integrity":"sha512-D7oriM5x46rd7kNlSW0f9noIBegFr3ReIM6xlMpwH4lfIPD/zvBelPlCjR10IK16boGJG9lKccOvRAM8wzpbrA==","shasum":"be9774e6d4ea518f000165ecfe78c78d5bee7de5","tarball":"http://registry-npm.ywwl.com/intl-locales-supported/download/intl-locales-supported-1.4.5.tgz","fileCount":9,"unpackedSize":13337,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdUU0YCRA9TVsSAnZWagAAIcEQAI4vDlQGooUufEypjQ1/\n8lsAbjes8InG4xLleElUfPR8QZow+6XD+nEM/EdgPZB7QWR5ocMYcTVmcrk8\n69lTr8Qi4sLOUzGNwLwtlEY/SEBlIp1APpMi3xO+uVC3vkgNRhWS2kphE9er\nOBOV4oHsgb19eL5zzxrvWdl6dP/CmPz3CtnLzuC+ZKJlvl+IF0y96A8Gjvje\nwb7vRcfwkfZggRyD1fITlgqGwUZUf4yHjoQ6d6o2+8vydQp3J/TIxNNdzHhq\nEoVu3POAcbQgopPd+fXJnASKVGslkKK+L2qBBt16eWTx6tIsRpzDHb8ypUEm\nvh2/l8Zi8atMjKGBVzDAQt0kOH493lRDgUX3vPKgrodndbDVHckR8i20oH1T\nNpcYh8WQnwVre4Jw5CFyjZxIhjzQxpYTg/11YwY87XQDAVORAgiyeEqpmdwZ\nZnch5HbttFWvPwpnr97QJMtMQdiZtdFPeo77QCxuYgy3MzO1ifsQU/4dyrkc\nYNO9pR9HevYmyCd3Dnyb/06afzgMMDspuYk+7SI/dWf8YLlKiffROAr8aczf\nhSiFB5yUoBGK5rMz5tpH/PJmF5zMsPFEMePAG3LPZ1mfpIRcjlES5dxmcuch\ngBmcPRICgJP7wxua/F+euIkvi5qVtKpQ+QXaHG0aot+vLdxdBJ8mDkjPO0jH\nJpsi\r\n=eXqT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDd//a2cBPVts8eApNDotMEHf2jEZndrphtSsflFhDWLwIgQRETHRhtfD2lJhtu2LXLTY6nN2F+JOCxtgQpdlE5t44="}],"size":3686,"noattachment":false,"key":"/intl-locales-supported/-/intl-locales-supported-1.4.5.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.5_1565609240074_0.6247418277120991"},"_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":1565609240191,"_cnpm_publish_time":1565609240191,"dist-tags":{"latest":"1.8.12"}}