{"name":"intl-locales-supported","version":"1.8.8","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":"9c79d2dd356d0d136e7c3d435933acf522fb19a4","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.8","_nodeVersion":"14.1.0","_npmVersion":"lerna/3.20.2/node@v14.1.0+x64 (darwin)","dist":{"integrity":"sha512-mlbJIVafpWJlB1JzDPc/QHDTkvLec/2mDf6zAumaN8LNyI4s52lvNjhTj1s7Gtff0t8vZu7lM//VB/J5j3Qa+g==","shasum":"d53ef0dc72a6af20e58a251d1b2666f2db4c32e6","tarball":"http://registry-npm.ywwl.com/intl-locales-supported/download/intl-locales-supported-1.8.8.tgz","fileCount":13,"unpackedSize":19807,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesOxcCRA9TVsSAnZWagAA7dYP/1+YV2Yo/d/xs8/tF1i+\n+NtEWPNxCPhr0GdQce7QLvf5+dXFprWpn/Hey1V9meKosqI8oSuj1N32nWRP\nMZfTQL4kHcUflR1VSaKB2rpPI2jzAdPPY76XGCmDKCbN2/vkzpMgIWIbLZAN\n2Ai7xUBRjlxPCIRZIsJaXVopgutxp8T/9mQUC2U5hyQ71D83a+NZ2M24y8aD\nhQjCFgzMr9W74gGvo2Bk6oNhYG+8UtWLqBqiPDCkTmQBOnX2fgdBBR2eEu9+\nOB0kPMVE1oHS6VgFx9WNBKaTn54Lys/3YxLQ6GUKE4WV+xdU4QwD/yS1B1KG\npEKTW16lHVMIkrKTQ2uMwXjCvE/XCOI6uplBIn/lnxvLp8IAoyOPYCCOnFdg\nFnITybGQ5uo7cgIAJve4S1Wl9a4b2mGTfWrK+RKT+C4bhUI96lVXo8B6Q4m7\nQCJzfBLSxa3E+OCUpj4PqVWfIWzRuEz0leP9lfXWesPkeYizTBjntUOJId2y\nnI2jGL4nmL2631e3pcXmHeAbNTgpXRG2c/gyXmSlDsSYzM/VCvqZGFh6v4BW\nmMVqq0ldCGO6OnzxT/mrTH6FEPlEX0LmSuEWSCuwgs3/Z49HUDXmRfXj16ia\naZo7cvo4toEu0JXCEt7KJ4Aptg3Pt0wMcXMn2KGuMvYKZwsD3nv4HvRSWWxq\nNcQu\r\n=OipF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDANf8mdbvWN4xHQHrasVlu80Sca94+RizQB1Pxd8aJ3wIhALaHKSZGydkgke7QDtSXxgGfd1dKqhNzPtfYydhSvt7T"}],"size":4921,"noattachment":false,"key":"/intl-locales-supported/-/intl-locales-supported-1.8.8.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.8_1588653148406_0.32590033584865785"},"_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":1588653148507,"_cnpm_publish_time":1588653148507,"dist-tags":{"latest":"1.8.12"}}