{"name":"intl-locales-supported","version":"1.0.10","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":"d7da2dc93a6c8c068284ee12156dd4afe69f80fc","_id":"intl-locales-supported@1.0.10","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.13.4/node@v10.16.0+x64 (darwin)","dist":{"integrity":"sha512-4OI+xzh35rMxs6uR9o1vkUgtp5xMENLDz/6ogYkXfRjGuiS1g7FvQKj29plPNaxjxSfNx6Ghwa8arfD2Ty4SDA==","shasum":"e90ba9e2e7de58c54dc3083d0d979ecce1108a64","tarball":"http://registry-npm.ywwl.com/intl-locales-supported/download/intl-locales-supported-1.0.10.tgz","fileCount":17,"unpackedSize":12365,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc9R9cCRA9TVsSAnZWagAA9dgP/33LQJbr6DdsPA13tQA3\nmRLH5H3vr8bDP4PApNYfw/4664N4i62bM921/buzvmiU84EkmygWSsKyNTc1\na8au29a78f0PksMtGHbkwcLMJPT7K9QiAu6N7EoaMlkWJGrHC5frETQX+6qv\n7DZEuT/WAq2xJPrewWwP1HTjVq1lRMT1BoPdnwqb8k2TKqmIO7qYCfS/fSUN\nz3qxCzYDFSVLpE9qNxqBsryZVLlup4vweKc2fnpHfKYbjkgD30IgpjxCXC2k\n69Wug4KDbJWcST2IZcSbnSEjjniNWyQhUX+dRrR2TaYjnaloql8SZPXrmM1H\nsdDyfd40MXZMJhdPMR2G7tqUHSdRdSHujFE99W0VXVWtaaV05vmlnxp4AZw2\nNu07rBpjcgOQkt7swVFOqY+LF15Yst57wL3jrZ+JwgvjkrOclB0THzrONE/u\nNQGz+17BMCtq1s1TxbPrgtBPfgwQMg2WAFIBng3vt8wPVHaNFSNWpi6XAvM6\n4lRjr5ijP/gxRF6wcnVRxNehiWP3J/1LHYPfBfLwzWVU9IbaJ8iEQnM7bbF3\nouaYe80Wo5qN/hlfvOJJz9/+G7DvaODPnwtZuz0nnC/Qd1ipHP4nFD9BIJKC\n5rYRpLkZ66Ao+ccrEg2dDERoK4NHgFnxrsRH4wQZ0mzNya7YZBTZVklkl4ib\nzsCH\r\n=oFEz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDiLw3abhtIAa6d0gKzMhNFNGwzPZHRyOu8RjxZSl741gIhAMcWPWCP36SgQkOyrJiHOfYi8fyouAVvbBP/8gjSdLa2"}],"size":3936,"noattachment":false,"key":"/intl-locales-supported/-/intl-locales-supported-1.0.10.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.10_1559568220008_0.9685004569340143"},"_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":1559568220135,"_cnpm_publish_time":1559568220135,"dist-tags":{"latest":"1.8.12"}}