{"name":"intl-locales-supported","version":"1.0.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","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","test":"mocha test/unit/*.js"},"gitHead":"caf647be47c191d9fdcf48be4cdb214ed846a917","_id":"intl-locales-supported@1.0.3","_nodeVersion":"12.3.1","_npmVersion":"lerna/3.14.1/node@v12.3.1+x64 (linux)","dist":{"integrity":"sha512-7P5SX7TPDLw7GQ8wA7Huew9OiPyvD1lNRhVWeJmfGu1Mr2YRnTnycicqyT078D9ItQAZJgr/aOQiHCetUGz44Q==","shasum":"343030caca1069ef34373e1421d9c2903212f33b","tarball":"http://registry-npm.ywwl.com/intl-locales-supported/download/intl-locales-supported-1.0.3.tgz","fileCount":8,"unpackedSize":7715,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc7R5nCRA9TVsSAnZWagAABwAP/RQDGp/YQlntItQN5IcR\nm12ql4nYT5QtPUWXvUmyuz7eLhB9T21UHf8dSuoDdr0iqCAxAEVkoavDNfv2\nikElzsU+xg0MF9R0Nl3+Kdr62eT8ymhaZBJLLWizApERkYAE8BNqaEXriKGp\ngU8bWwX9mRvVVbq+xOlzElQg+nB0zZwhCHv8z+ohHgI+VFYwf2RK70SqP+eL\nHcj4Kdk4z8DkKpENUdw/9S2cqG+iGmDmsiC5Ugqi4cjsdeTP6wqsF00DoFou\nGgPL3mzsud0Kz4A6/bgc0g+22DtDcqML7Cmp8kESsz7+g18f3nCODzeA5neF\nOvebPlTepEFYL8sOaZtPpQyb4wFfv5anhxwmyo9PbU6mjz7m7NeBVqKzOCtF\nOFuf2aq3e9xYilNornDUO5f30bS+ASX1RNuDT7miJoWR0yPs9nn/lt3m9VBz\nON3fALS8i5Ep04ifEzVg1vAAevuT6QZtmgMuoSxac5xEEV9UtkHDss+eoi0T\nYOWEGAKLn24fEBFiPjbg1532jV/+nk3G+kwosLwHj1OyJMw/Az82nW0FKMpc\nlPNtpGRyxYXfcCFxTtU0ScDsgxh+Z/0nJGuF/GljhC+RX0wEaxbwMAcbbXeR\n7D4vjy4vhHao6R005LoGwkCp7AxQLSxkllvMSaazTLllf7zXiM8NgW4XeLjX\nzHae\r\n=kVp2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHPxqvxIfzc0JvkqsaKkXlMEKR9keqi2ofeFubw/hm7GAiEA59R4Rc0EoBULWWXtQ5uLH2wQQeQnWjd6dJbsS5lrn1k="}],"size":3220,"noattachment":false,"key":"/intl-locales-supported/-/intl-locales-supported-1.0.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.0.3_1559043686429_0.8046993913058613"},"_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":1559043686528,"_cnpm_publish_time":1559043686528,"dist-tags":{"latest":"1.8.12"}}