{"name":"intl-locales-supported","version":"1.0.5","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":{"build":"tsc","prepublishOnly":"tsc","test":"mocha test/unit/*.js"},"gitHead":"269fcf42ff059d3eed8ede78684ca00c27010719","_id":"intl-locales-supported@1.0.5","_nodeVersion":"10.15.3","_npmVersion":"lerna/3.13.4/node@v10.15.3+x64 (darwin)","dist":{"integrity":"sha512-yQFIqR/G1f58W6NeUduqqMrLEwLp2XnCjc2SqZnujPlvnWtekNLBkCrp5a0keOVv/2+fJo+s/ZPH43NUK5ckUw==","shasum":"40771bb0c707b6764280c2f6467a4677f98a7ad7","tarball":"http://registry-npm.ywwl.com/intl-locales-supported/download/intl-locales-supported-1.0.5.tgz","fileCount":13,"unpackedSize":10739,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc7Tj+CRA9TVsSAnZWagAA+f4P/ig+cPax3H+jFQH9QKJB\nr8b5EvjmgLXPo06a2EqBdiU29T8WUJF2yQ7azbeCuAh4acZRusAFeoFF+DxG\nLs/VxoTcH0OKGRpvKGwTH6gfFdCUGZqD2dA/wErhY9k3RAwdPkLG+WBgA4GD\n1+LOq3MiJbX5kAGQO7/CZYY677YWp2DPTJmWxDO0CeHis/m3WEXn9jJ056HB\nONiv9zbGmB2zoei9giZgCCErsAgyqZgi815uf/yD9VnIT5w6tXINBLm6NePI\nK+9iIQ/Fhk8ukF0mh0DQUxQU1ObObM5m5f5TbHmegKp207Ff4KbGqGjdWG3e\nO1WREOpZzo0bjrzseVmog6RvURZwkZ2GaRzT7uwQjggkr9bOIegwKAqpbQpR\nhnM+TwtfUE4de52i63WJ5oZ4TFdBBBcGDvnS/XG3WhNtKLO7UzZu/8nzWW6z\npoZKy6o6AI3WNK5i5lTzJbjTHwpDtbckO0YUSjOHTDnJ65FN8qLWGRa4/acN\nrQR8IPOkBU2aeISckQvvhcfhcDU4kG5ibEJaWXo3wGWdgoy7L70gyHY8ShzZ\neeEx5SWLaSCs6KgrPDtww5Wn0bKjlvpj+RA4JbO9R2+Qkb3cObjCFHPEwnyw\nDQXw83tbec/F/exR6wEjZZMERL2Cd0IfnFYehmHdBhgDHqahspPB9HWbrMlM\nSLs+\r\n=0Bdt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDknPl4DwfYmkHrfiTR16hEfOHFDITYL1/PmLfwdahLKQIgG1pBOgh6cIvVFE3/DVaP12PGfeMZ+5Pow6xSNmLMFdg="}],"size":3845,"noattachment":false,"key":"/intl-locales-supported/-/intl-locales-supported-1.0.5.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.5_1559050493612_0.35725010782536826"},"_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":1559050493758,"_cnpm_publish_time":1559050493758,"dist-tags":{"latest":"1.8.12"}}