{"name":"intl-locales-supported","version":"1.3.3","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","module":"lib/index.js","typings":"lib/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"},"homepage":"https://github.com/formatjs/formatjs","scripts":{"clean":"rimraf dist lib","build":"tsc && tsc -p tsconfig.cjs.json","test":"mocha --opts ../../mocha.opts tests/index.ts"},"gitHead":"700edc75a439d52f497d3927fb0384966dd5c2b2","_id":"intl-locales-supported@1.3.3","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.15.0/node@v10.16.0+x64 (linux)","dist":{"integrity":"sha512-3o4BappcbWKtYFKrhQhTcvzGmx7GkUiGtl5qt2JUzNnVe68cHS5nJhSFUg/yF/xI+zRp7O/qEbzdvZus882tkQ==","shasum":"26588e6216d3744f01022838add23e7fdf46a5e1","tarball":"http://registry-npm.ywwl.com/intl-locales-supported/download/intl-locales-supported-1.3.3.tgz","fileCount":12,"unpackedSize":14901,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdI/b8CRA9TVsSAnZWagAAhzgP/jJJqJZC4qSaOismit9o\nYf9EkkBn+aTMw1YFJOdwNH8Zl4NRvGPwrr0KNZVOPc+YYpJfHwOeKp6GxJXs\n3UeGqWiRtXUWrtSHSAf1MWMMi0pjpsweMYqMlepkdLRD9A5I2RNaub5F+fD8\n15GDROjgEtT9lScOP0JYRmRwSVA7FgI3eIB+xrCqgSd3TC1QEqQ3/Rvl+Dbo\nzNsFjpsMxugV9tRCS27We8g5PbaJe7a37jkSwz5iWW7ovYu5ORjzUXXyKw3Y\nUUfhkaGxvOzheikKULtDasG+y+8bSDCsICqPH45VZqOD+iS8Pq3W8KzRFgEe\n3fC3k/3Qn9p3VJQbWU0tg8Gm0Jy9aF/44PrS6CHXlKyxdjsOIFfyTAxlXhkS\nRG/VZYzCVHhH3co7NSZbCgJNM2ttHngDnvNW5QJ0sTRtVK8wOZhx98PA1yh+\n5GNNTxeyxT4S1ycYG8URK3YHxlEVXh6fvsDYJ5GT3v/0lPx43VpoBVBHjI97\nUKGMaKtdeiLi9qPMkUxivvVHVOoO3EvYWT5FVnnIwJb3E5sAKSPOewxsff46\nuasm62Tb9DvpTPmMn3JgEkS8m4DYj9tX9FcfBDXCD3ASeSZ1LXMm0+ZfjT5l\nJnAvolGnqAhgr/fpE4cRtYVfRmCNIRZnDLPQ5OD+8lo6m+oSBOYqeFjpjgjl\nJh+L\r\n=tBQI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFFq3Vx6yNiL/TONZlhUacUuifPlePyaa8hqsT5+yZDIAiBt7pnrhx9bNewfvPMqXkH4Ziv4oMQCjjdff+upIguR8Q=="}],"size":3873,"noattachment":false,"key":"/intl-locales-supported/-/intl-locales-supported-1.3.3.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.3.3_1562638075624_0.897171835949859"},"_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":1562638075722,"_cnpm_publish_time":1562638075722,"dist-tags":{"latest":"1.8.12"}}