{"name":"intl-locales-supported","version":"1.8.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","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"},"sideEffects":false,"homepage":"https://github.com/formatjs/formatjs","scripts":{"clean":"rimraf dist lib *.tsbuildinfo","build":"tsc && tsc -p tsconfig.esm.json","test":"cross-env NODE_ICU_DATA=../../node_modules/full-icu mocha --opts ../../mocha.opts tests/index.ts"},"gitHead":"84e7cc6f3723801271661fdbdb5391fac7e6f74c","devDependencies":{"@types/chai":"^4.2.11","@types/mocha":"^7.0.2","chai":"^4.2.0","mocha":"^7.1.2"},"_id":"intl-locales-supported@1.8.7","_nodeVersion":"12.3.1","_npmVersion":"lerna/3.20.2/node@v12.3.1+x64 (darwin)","dist":{"integrity":"sha512-43H67W+MP0gV1bB4pOGmJcQoNKJdvkUhvhjZpGxaJSDy6steE13iKcG0beY1faIHFfFSyq8mlJSeAiFXhkNLAQ==","shasum":"3a03c127bb5fba9164759892af1254677246f533","tarball":"http://registry-npm.ywwl.com/intl-locales-supported/download/intl-locales-supported-1.8.7.tgz","fileCount":13,"unpackedSize":19608,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJep6smCRA9TVsSAnZWagAAhpcP/RkSSgTKV+zjdqtRpXq+\n35ACwbLo7bV+tpax4Ym1eWeUpph4Qx0NAPKdjOobsyITZYJDlM4XR9Q6yrU3\nhL+T0FVlb1G3XarImdJOtvzzN6W4Fx50iKk+gWf87UQYaZ2MuC42MmjjsRJy\nOkgF219u9vOIQ0WQvIf6JrLlXB0Wn370YA5anP+4UTZ+l66qBRf/0tH7PkdL\ndTYbf9rUL3PHgVXC+zrJUPhaZkVGqxZL/bzOrsNHl2s9WMyRhEgmVMwR0QtH\n67TCKplRr3u728pqMQZIEhFFIzcWN6G80qMPhXwzE1huCfUNz8e3kLVSAsZo\nwW8OSeup/brYB5sh+ojgGDVTQW2OrypYnM46vzIO/HmMTUKM3F9PX68t9dXI\nwnPAQchnA5ozahrP5XpHSqNDJ15XBLhbjLQjV3Y90boeJiofFvVPPeKIpaq9\npwNfXeGt7G5grNB7/6SozEjIST28PKElVZSwn45NQFEo7nMweKf/dF+QP6z3\nTNhjMUeZRO5JlEX8E+Nqlymh11NJM31IPc0MFthY6wLXdMuK1zBXRJmylewf\niWnu8bCy8IMGXAjPf3E1Fi4t79FGJ9JZEObwe7krNpdwlA3TGZkSyfWuGZQm\nFFA4hM3gD4Q1sj/A3A618WCKdt/r0VnWozPla1StwhoZ9XI++QOZdP9TOYFi\nKRFj\r\n=qncO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICKLVN1ovvnucOp+65qXKe87GNDM5zxylFecy8N5sCSLAiAhayrQWxAQBT/qdlp4WSkxLtyhnn7vvy8CfUVI/bdVOg=="}],"size":4909,"noattachment":false,"key":"/intl-locales-supported/-/intl-locales-supported-1.8.7.tgz"},"maintainers":[{"email":"eferraiuolo@gmail.com","name":"ericf"},{"email":"holevietlong@gmail.com","name":"longlho"},{"email":"okuryu@okuryu.com","name":"okuryu"},{"email":"dinglinjie+npm@gmail.com","name":"pyrocat"},{"email":"seth@bertalotto.net","name":"redonkulus"}],"_npmUser":{"name":"longlho","email":"holevietlong@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/intl-locales-supported_1.8.7_1588046629511_0.7886757704934775"},"_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":1588046629645,"_cnpm_publish_time":1588046629645,"dist-tags":{"latest":"1.8.12"}}