{"name":"intl-locales-supported","version":"1.4.7","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":"dist/index.js","module":"lib/index.js","types":"dist/index.d.ts","type":"module","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":"cross-env NODE_ICU_DATA=../../node_modules/full-icu mocha --opts ../../mocha.opts tests/index.ts"},"gitHead":"a00fcd57d1ade294efa943daee587c638223e572","_id":"intl-locales-supported@1.4.7","_nodeVersion":"8.16.1","_npmVersion":"lerna/3.15.0/node@v8.16.1+x64 (linux)","dist":{"integrity":"sha512-3arwVxqTBWRom7NiK9GUB25qLtJToH3QYxqMjbbq/+R3Pz3mMQo4GbWQxgM57Aj0bQnrZipht1fwous+QIPduQ==","shasum":"24acc88e1337429dbf1926463e6234c1325bbe6d","tarball":"http://registry-npm.ywwl.com/intl-locales-supported/download/intl-locales-supported-1.4.7.tgz","fileCount":9,"unpackedSize":13723,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdbc32CRA9TVsSAnZWagAAdnAP/RDVnJWB/pcHctoVI+7m\nIkuMXb1bAVDAX8o9HrbcHztBGvfcPFikRfMCsxM67DHycmfnCkQvCU9FoXOl\novyf23wx6JhU2ip77BNZiT+hHvj/R3ixq3AK4DLVOkVYyTlAFbSJaIWw9N/a\nDEyMmm1O0aXzidALoNNuJ4Mw2O6qqSGetXDW1CSWEnM4o1mQD1V7e8MARVeQ\nk/OKna8z9LO8dmDF8UnoTpkAY+UfdsKGWjkOqdy2+c46UQP7vrELo5dWNFmg\n3pUD7lcd7b+gOu5GmF7dX2syUmHKuk62GqwxvUs5V3QFwdtRHjcE84R3SHz4\nfi0yuxESecSfHNEcaEDcta0YB5hP0dHlrVRHyP/b0cxFGcVSTuwCTY3Xrh8M\nk6Z/llMft7SYL4eDeZty+K9N7c9MFcYk5RkYnkg2wScbcmwAxPbwYIBSilQe\n/U1Y4Rr0yqDiUOmXZ89hm59rxtnP93oDhB9MViMU2NTZn8ZSiamvp7wr1EOW\nl75zrHZCPubr5GYc8SuBQVgpm+Go9VytzZ3sv+yeo7u4y4xUBKWHEZdibFEw\nIHtK4MA9YGlZth7K7XNJaVCbYMaFvi2gjXW2oL73kEP5qYAAUB82wzXlnaKI\nsHxdmUUc9tRsisBfFiHqt0uDg/OcbsDtsBGJgyOhEWWrwsMtZtfHd7hHFb9H\nsy9K\r\n=pSH/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkZa4R2h/oI8JMCe9j+186ze3+mknwYnHm+4oMe8iYqgIhALiLLh1kbks9nZHh08TqRZO3PEncXSUeeoaG9CxyoctO"}],"size":3659,"noattachment":false,"key":"/intl-locales-supported/-/intl-locales-supported-1.4.7.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.4.7_1567477237359_0.6142405831432989"},"_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":1567477237565,"_cnpm_publish_time":1567477237565,"dist-tags":{"latest":"1.8.12"}}