{"name":"intl-locales-supported","version":"1.3.2","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":"60ddf374ed659ffe2f3807c3c7df411c80492761","_id":"intl-locales-supported@1.3.2","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.15.0/node@v10.16.0+x64 (linux)","dist":{"integrity":"sha512-pLoOrAJNBiBy1qjmqDtDgWiUlLtAAjetry1O1F4ksSQMpCi/iYU/uxDmLKqzwZIM0PbFlnoa2zh5uoINmQVxRA==","shasum":"fcbcae5d7d9230b21bc646e32e9e95a190e96408","tarball":"http://registry-npm.ywwl.com/intl-locales-supported/download/intl-locales-supported-1.3.2.tgz","fileCount":12,"unpackedSize":14635,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdHqEtCRA9TVsSAnZWagAA/nwP+gMQqdMRf35USY7qy+2e\nyBMW9H9ZOzBTONzZe5V8AIfbOPRNTIJtAuJ6zszzLVUtgvJUmb/+X8mHcuMH\nVTXk1TqSNmSekJPAFNu9YKTblSgbh7iXlPvMccFzrfHFIQ8XNn6G6T70TUQD\nP1QwGGLIjiEv0d7efWdvZSaNM0KrlfS+51XJRnPTVMFQ6m98vnlso2jbJoGX\ncNylqA2FNqeIf6vTewmngT4q/sPyQe/dvZr3gax9StAWsy0aZZCpHczz/LTP\n8X2qULgF++GEGAOViasyP+Wkbd4Yb9u8Nu/U30zB6x3jTwYuugiRgrG8yAsN\nsMdbnCyajz6Q8kiLw2rKOsmXwFuT5Mb/keWpv4Z7xcWHWzwjwtQy2TuzV09f\nTEKigsHgBKXmogmPhgu+VOUk22Tyw8lSWJ27LTMrWJACbnOnSoJnI9cRZZoH\nfudbX9tHerfykDojLyxLKzPbvosvmL8iYbYP2fJHH8os2/ZOCb1dqCTKlF5D\nJ/ZjWJo3zE0HiAF5EVSN2+hVDZU4yU+sp45rL4skmqxVJgPnHX7Zw304O45f\nUldT3uQiogSfmCl0nkTUAoCxhYJsRxJLGJs79tZgNGwgl1pdD2/hgUN5fPXB\nEn3a38MOms8Tpmna6Lx6BNRhH8zkvgMjg9HifcuoYwaVq2LORarZguQhRHfz\n/tz+\r\n=DcYP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAsNHQxMHf0IGVv3c7y6irGSgs71513a5O+48FttjGHVAiBK0Cg4sMjecF61QyCg89bb+UXr2pK5e2Yy6oiCWoBo4Q=="}],"size":3822,"noattachment":false,"key":"/intl-locales-supported/-/intl-locales-supported-1.3.2.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.2_1562288428791_0.5085026866704243"},"_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":1562288428934,"_cnpm_publish_time":1562288428934,"dist-tags":{"latest":"1.8.12"}}