{"name":"intl-locales-supported","version":"1.4.2","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":"daf961b0b7325dadeaecc384e9c08ab103b66df4","_id":"intl-locales-supported@1.4.2","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.15.0/node@v10.16.0+x64 (linux)","dist":{"integrity":"sha512-NBa2+cqGqitzWwUa+A50Qp986bU0S3fzds6ZHCZxZYsOy6xTUb7HuJ+1XPM7ti19LSFLq2pjma0K3StZ9hZ/fQ==","shasum":"56863218ad71ff0e23590d19247f64852be20dc2","tarball":"http://registry-npm.ywwl.com/intl-locales-supported/download/intl-locales-supported-1.4.2.tgz","fileCount":10,"unpackedSize":14113,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdNx03CRA9TVsSAnZWagAAffwQAImToL8sOeCY73TD3WKF\nrceB6iGNX7/VEitEyibHWjdSxVfdp4DWzDUpsYN6mU7VFjmewa0q9mOAFaIS\n0FjYWEUjBGDbyrXpixCWcR2HYW1o0yp5JaOCtwUM9UvSidM2k0ddEv2RGjQJ\nHoy/HLPWNAwo0oCVGzhdMKevzpPHbsxXIxVkj4z5CVr0mgYQWi62vx6KN6Yg\n45AAuBvnsPARL6SoCVy72dJOL26Y7DaTS31GJcSx4XoIfDlizVMNxAwMEj/S\nOWIAggNOsf4Z6Wmh9h/2YMlO+wd8u9OCrchjhlyBlsXVLTvuAAxMzbjODQGM\njNmhzka1R7BHWrH4TdnhJXjBg+tQO2AGLag6kcOdMQs6T9+a3JAvmLFZhVjV\nh7H9n/R3mmgRG1YAdrOdkTevGtu3L9Fr3bV+hr4gccEDjOG6MvJm/kbMSPSA\nrvHpUGH9muVjMtYVtaudjjW0iWuvH9xhq27JlzcapluRd1QaYkPCEao8VDWj\nt+g6ktVlb4iPjYgH1Phe1a2EK+n0vc/6haDW82riv7H3fX7oUXKe/DfBEzs0\nLe9FxWA3uvRw4hgSjELLcRbEDwT6bHCl8kITr++dehxdDbCsr7G92CbvpMWq\nsQlTeU4/StjtjhZMw4SxPtDD+GTCy90tFH1mkkrmydbwtITVw++9dYCIMwZK\nImyt\r\n=mGsb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICniMIgqScictbdbnc/L893tBP0EMnrx2esARuQ0dqo/AiBiSO3g1zefvzfYY7/dE/dLKKVEnZe0bh4XBgAOhcypDw=="}],"size":3535,"noattachment":false,"key":"/intl-locales-supported/-/intl-locales-supported-1.4.2.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.2_1563893046956_0.9567747043454231"},"_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":1563893047190,"_cnpm_publish_time":1563893047190,"dist-tags":{"latest":"1.8.12"}}