{"name":"intl-locales-supported","version":"1.1.0","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","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":"d3869feb0018f87eab32280cdc64fb086c964a26","_id":"intl-locales-supported@1.1.0","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.15.0/node@v10.16.0+x64 (linux)","dist":{"integrity":"sha512-EDOpb+LUqTBdOsB24NtW/Tostabhh2JMHDcL4hClXHr4IPqGQL9oTYzmNQWOHwIa7ZjsZSYHSiHXS0iHUwfh2A==","shasum":"6f04e86464b527a84850b7f554ac2a0246d55ded","tarball":"http://registry-npm.ywwl.com/intl-locales-supported/download/intl-locales-supported-1.1.0.tgz","fileCount":31,"unpackedSize":134941,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdAEc+CRA9TVsSAnZWagAA5hkP/0yQD21RV1pHakSt3BkG\nq5S6t2cq3sqzwDLlKUFFiiU/l7gC9vJlzZQ4q/nQjx/8u3ZjgeSUvELKK1Fh\nHVQUuyNYPWOXBh4NKxPNPazEGxLItWPZQimtiqLfJGVAmV78URyYd8CuuOHY\nAXsw+3Rs0Dxsc7VGeDBfB/ASif/GVoyo3RETuY8N6I0NGa1gaTkGPa9V4Mk4\ncSBvXQ9CMYgsffStiHyEWDy7i7nloigj37LakhjN7Vy7yksVMrrsvo8KrBaQ\nL4bFeWULJHU1KVOp94bYponYhZ1hbd7jakmBl0GiENgbSa2fm1dzf4eNW8DW\nGlAyJHlrisskaVUaIVBv5v+jpZjPOBryKAWpIGExudgEWvviPGJtNIJ18pdN\nKDooFSIsgBUGh4pxTQ/WBAhah6lq2AZRSPycO/Zvr+PPAqgvyDK9fbVHZjHv\nYGd+ww5PIzBmGaq8YqMHBAzGGxcZSAV5dkLb099Y80UY9dKgyV1Ffu+bEcXx\nf2qxZpr5OKBi9Vnp23tQF/Bez24KiKOkCOdf/ZVfZup0Pm6E3rU2sUa/u6pg\n2LeSSrGpcatoolgAPiIivmuYGOljUSNS9xNZktKWcq1CA6U+Nthoep36gINg\nsKc3j2HmE3/cYuvQztI7scpMb/EWqIx8g8w/I/ZkN2OXo2av5+DPc1dFsWYk\nkmlQ\r\n=KfBU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICjq/pgxZWDCqruZpNW3Yi/G6qXVIXIGgeYCEOTBoJZlAiAKpcO97OiTjsoaXlm7ymNGWpc/dHiBOQu2I1XPIbDRsg=="}],"size":24931,"noattachment":false,"key":"/intl-locales-supported/-/intl-locales-supported-1.1.0.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.1.0_1560299325775_0.6983214021955781"},"_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":1560299325921,"_cnpm_publish_time":1560299325921,"dist-tags":{"latest":"1.8.12"}}