{"name":"intl-locales-supported","version":"1.0.9","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","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","test":"mocha --opts ../../mocha.opts tests/index.ts"},"gitHead":"6495902118c310e40e8353abf6f94d728ad02c00","_id":"intl-locales-supported@1.0.9","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.13.4/node@v10.16.0+x64 (darwin)","dist":{"integrity":"sha512-Jr7xGeWRLpJnTXiuBcCKXhsJuhehALjICP11vZJcEoOcw1Nvd3YRW6Umw+uu2pg0k1Mqg/vf3xCNuAOOipGtGA==","shasum":"404464622ce44dc842c93842584a8094e2c302ef","tarball":"http://registry-npm.ywwl.com/intl-locales-supported/download/intl-locales-supported-1.0.9.tgz","fileCount":13,"unpackedSize":10314,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc9R1mCRA9TVsSAnZWagAA1n8QAISzMNQovNJM4HMtVlAn\nvm0F3XkLQ9Ixs68mT84BDAp1Oa5pzure5aGNLYphE31NQcoXrlam7k3T6fDq\ngkdcL2Lg0W8We6SELWznGBTQyLKI3Yw5sOxdnio6/7sj5VwZKBh2U2D+YUQk\nLUavx1CRCm/nodv446B+hgxZVNP1RH//+2qXISO6BZ9/pchxDcPzDA/xyBMW\n1weHYUppcEbORndQWUs2LOBXPhyMr8GehIP6zok+0k6EU+yNv8vmHA7NEP8V\nFYfYFLPnVvW5MGKUSEXQfNEc7A0OQ8oPcxdyFOxePQPAtbjSgzQsA0ZQLLuz\n0Ghy+t4o+5XYpYTTj0J6cb29ecX5eJeOSjSq2kBq5e8sytovdwIIJ73d3qvg\niixaoTXzy8/xwW+ICwFcndMDWUpCBc2Ig2Bs2kcILHVBFC7Y6oRF71sDE2e1\nB50Xw4DQous7eah5frpH/xyAiYp+ZcmMKpNVU/0POBT2IOc37pw4Y7Qa66Bh\n1+M4InJQxT2Dd+i0kVW3+0wXt8sG48yMPM1x6wumYhk0wp4YQ7lmXa5wWZU3\nrSkJL7ZJM7+qvv5KKma6IYeI8CXQyd3Hg4TsJx+Oq8YtSpLZRzs+VoKFEkay\nWWa/ylPuF83/4rXAIgQ9UxqVIggUKUCtxzex0ylr5bgUtt/Ekk2oOJbzW4v7\nMJx+\r\n=yaq6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHlmknfzOsYOMILkxxLGTFY2f767FoYVi2bijtHwKaFlAiEAuxHd4PcqfwUEfm6SOXgHSxak/yxtS8aiqqgNgzwJwCA="}],"size":3742,"noattachment":false,"key":"/intl-locales-supported/-/intl-locales-supported-1.0.9.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.0.9_1559567717711_0.5847826758999206"},"_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":1559567717823,"_cnpm_publish_time":1559567717823,"dist-tags":{"latest":"1.8.12"}}