{"name":"intl-locales-supported","version":"1.4.4","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":"mocha --opts ../../mocha.opts tests/index.ts"},"gitHead":"e5de8b825e305ca36ebbc821f15d9721b0c9451b","_id":"intl-locales-supported@1.4.4","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.15.0/node@v10.16.0+x64 (darwin)","dist":{"integrity":"sha512-dm8tjMFfy6Y+MStEBqzslnV0LTmoEAOGSnZchlKcuyOd9LlxKT8MKLOhq0KqGSRPvWfDRTs94UYTvESw5d+YYA==","shasum":"0f2320f295de1a217de4037ede5a5f3a3ebc2320","tarball":"http://registry-npm.ywwl.com/intl-locales-supported/download/intl-locales-supported-1.4.4.tgz","fileCount":9,"unpackedSize":14346,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdT3MlCRA9TVsSAnZWagAAa74QAIT7Wuyi3RpwnamJI72C\nS3/HKNQf3qAw+PuHJYFMTKV4BmrqhAEP17DoLPcOutXDJ2h02ZSnUsPQ1d++\n+1u4t+rfFAkHZK87V36UOf4uxEdaraDs7WTg23dtRGtILRPIkypvB2+uERqb\nTp5amhm4dWYJMk0gCCZBIQvYMs85YDntmbfiYR1zsig+gMI+0PQeDcAsmntN\ndHZIWSN+GuZka2dCCCxS7HJ62qmFpjpD/C6gReu7FxUPkjjcflCG1PY4OgF+\np3l3t0ozYB68L02HRHFD23AO9hA5S6Aby6hB/eZ/WoQ6ZrrOBW//YYnzQe29\nOkgqeDqm/KN4BWsC98bwDqrLRLxfRcuESj80N5eUJEEjH3SgY6e4WRhF3Ha/\nVeo2mSymQzQuvnbVDR/lCGnf5ReZUGU71D2RUSoP5z8MhEgpKbNCTcPu1Ykc\nes+aTsDzHdgdJEn/z7YThvgFhzEN32yBuue1ZzHOvHIG1JLQPB6IyB4mcqPM\nF5lSw2KIOsnpzHPlvkRLhC2rOk46Q5RBXJfCBwJaeV1HfdBXaZDP/hmcFTia\nPfUWQ3VfRSOyjtmO5u+VIV5nrT9tclOXiimSIJwFcqTkZxo1YuCf00pRrJxY\nCMDai8FKXdfBESsr3V+8R3dpWSEmeMQ3t6RxoL1bc78eEaxXI+Z/0ADk8zwe\nlqrt\r\n=VDJf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGPioct3AJhoC1ZsGZr4FUrNcFaDdjS8OJZbD4JWQ07/AiEA3uEiY7SbUbLddakE49/vAVS+BlojbZ1NBIgYcGNs1lQ="}],"size":3577,"noattachment":false,"key":"/intl-locales-supported/-/intl-locales-supported-1.4.4.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.4_1565487909208_0.2464005751623839"},"_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":1565487909320,"_cnpm_publish_time":1565487909320,"dist-tags":{"latest":"1.8.12"}}