{"name":"intl-locales-supported","version":"1.3.4","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":"2c91ba26cf80914198f1893a84a506094102a0e2","_id":"intl-locales-supported@1.3.4","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.15.0/node@v10.16.0+x64 (darwin)","dist":{"integrity":"sha512-TJ+s7GzwL55LFbNDSj82LcizbCy8K3mHPjdSNw2wrdN1hbhs5jen0pT62R3VQu/3yBMzz6pVV45c9Vd5MyZ8/g==","shasum":"5e5227dea7dbb01e65660386de1254128187891c","tarball":"http://registry-npm.ywwl.com/intl-locales-supported/download/intl-locales-supported-1.3.4.tgz","fileCount":12,"unpackedSize":14321,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdJN3wCRA9TVsSAnZWagAA0IIQAI5XW7ZkpL18q+9mWICM\nv4fXVIyD0HhrrpoUy8nkRXCqRcTus0PuX4rgTQwOrbe6cPsXAzIYIts2991E\nKmtnLOJeh+wtWw0uTxyn9ycOny/fAFvwecHM+RQ3Kq5C35uoxOyGWGobcDrS\nWcUFVIzpIoP9wAYGy/ywrBnDQ/XSHjltnjA9qwSdIeOmL0wDbkAYJsbrdmZa\nz16o3zoIB8QVcGcyNGTmoObmzFStWR6o7jFkKQRJAzYf1vyNeRTvwdYIJ1u/\npEUB0TsXzFnQjpU1WjeJxU81+CUE4JNUKzHXbaakoKwodFfCk8HVGUNKzgg5\nLVfcr2zqmm4y5M73AoD0J1PrWapCblh47x9oIiEwdWBkzHDO4eweDqtJMwEQ\nvpOBqX53JRhvBUKsfyucvhMHuLC59YwxBIAVjHo5Myb8jFwIOcVSRIFF239+\nTVyTX2n7hOW4RKbTAFTdpSQahrV+6XW5QHZZQhbQ/MZDMQ00LhdSN9AG3/CQ\n95IJY7lgcFVo3XCkud/XEEHzdhuWHsLV+FxqN5PTpiUR4bsMlOWgxrcB/uId\nS3873qGAq5M/sAQ4mR8wReoZG7GL6J34jwz85pj9EWt/7pwVgtkWGlmYtoxR\nmKKjmgkNBrZt2u5muOMbfR6OIY/PMuOoLOv5feHu28RcN+sU7b1BMWO0U5kO\nmE+n\r\n=VxWp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDWaiOqMWe39QKqGRJua7o6y7T3JlQIzFdqlnxeQFAU1wIgLgR7+E7EhwauufWp3n9dFq3SPYylVLotw6q1eH5h8fc="}],"size":3821,"noattachment":false,"key":"/intl-locales-supported/-/intl-locales-supported-1.3.4.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.4_1562697200095_0.012527943604301539"},"_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":1562697200343,"_cnpm_publish_time":1562697200343,"dist-tags":{"latest":"1.8.12"}}