{"name":"intl-locales-supported","version":"1.3.1","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":"80bda0e73b3504f88fca4435ed7664494cd02be6","_id":"intl-locales-supported@1.3.1","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.15.0/node@v10.16.0+x64 (darwin)","dist":{"integrity":"sha512-HeIlYUaSWG11MVG2dMAQJ3iVIxkFQ5E0t7PMlgTO7UoW16hFaCeVc/hFNNPZzbNvLZQ/rRwNI9baCFqq7k9dIQ==","shasum":"4f068469b0dcc84eaa01a3c8c9e819f79f67bffa","tarball":"http://registry-npm.ywwl.com/intl-locales-supported/download/intl-locales-supported-1.3.1.tgz","fileCount":14,"unpackedSize":15588,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdG8f7CRA9TVsSAnZWagAAbhgP/jUPEH3CuEV3I+8fFkqj\nQhVWImLokrGXWrfahGtFRQ/6+VKQzVKwD/N+DpKggKos3xpLLKqsQa/p552e\nMmTwMDTMkaY5tb6a+YQKlcmz8p/nTL8bLifu870ocDVdt4IvHWPHv74MolAM\ncVZj/rIepcI98VKgUYVZ+abAfAmW05VFy7G20ZHQ8nJmjhlHjzhbl1N/483T\nVNLJy3d4A0haDpwTLPAMNsmRvcGTzOgnMsyTV7g5zBzzTE0hLwSwyT8+yMAs\n7m5BCWKvF2KvCvdzXFfP1u/bYDfSZ79Fcdm1XhZZdkdY9qK+83bfKu4aMnjB\nQNi5Cl6iR76Nl6wqaePWqzDOObNlC2PFJtJ6y5GzboLIaXfkpE4e0Nr172T0\nOX+EvSdYsIXwsFMdGoJPqRxfwHOcvLiKxkwUfnEMaedl+RyYSxcQIo6g2ucz\nZILY5Z9OR5SDXpzMwbkJvZmiVbyvv+jDy+kFQjOwZtoHgJa8zRnIlt+43mPd\n0D6WIeZvnLvYnFbDl3TUQQIQDWPXHxTPNKeEUoymJAe0JnBofuEPpSBVb4uw\nNWsTymJh50iouCNjpzZzxIv/tBo45mlWWa66r82ezlfu4Ku4+a2Kaj2WjWMb\nHp/dgGXmU4OWjU0ruP3och2R+MDkuBiNPe80zJnKCGmy09z+qeYHrXTn0eQK\nWdGg\r\n=yV6u\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE4th1HQbJJosJk5j1dT/WNiwi1aikBY3m2gYZll02YnAiEAg6+MGrg7FFi1a4VSKbg7MxSeKAcC9Te4VoFvs1aQ2xo="}],"size":4088,"noattachment":false,"key":"/intl-locales-supported/-/intl-locales-supported-1.3.1.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.1_1562101754399_0.3591686693735827"},"_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":1562101754520,"_cnpm_publish_time":1562101754520,"dist-tags":{"latest":"1.8.12"}}