{"name":"intl-locales-supported","version":"1.5.0","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"},"sideEffects":false,"homepage":"https://github.com/formatjs/formatjs","scripts":{"clean":"rimraf dist lib","build":"tsc && tsc -p tsconfig.cjs.json","test":"cross-env NODE_ICU_DATA=../../node_modules/full-icu mocha --opts ../../mocha.opts tests/index.ts"},"gitHead":"3e5b09cafdf3b136d7f0f828bf4d56fa0c1a6f2c","_id":"intl-locales-supported@1.5.0","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.16.4/node@v10.16.0+x64 (linux)","dist":{"integrity":"sha512-VYLdcF3Z4b8UZ7tj3hxz9auSjIxpm18NLoUlgvt4I78vrskxstKqfKQlsuFpGE+n2RNkqrwlYo3D9QcYSjx4NA==","shasum":"5025fb6bed369b30aa83e559cb892cf6881baacf","tarball":"http://registry-npm.ywwl.com/intl-locales-supported/download/intl-locales-supported-1.5.0.tgz","fileCount":9,"unpackedSize":14396,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdhCagCRA9TVsSAnZWagAAYOAP/icYFYiu/XCAFzv9uzYd\nkwM82OShgG3nGc0tFcdSe/mQMBEggamZBJdiKrATHV900CBR4yGXoTIkprlO\nBfk0LOqWp53MleU0LnI01yCHOnnXLiQr/liwhDbamLlX8mrdvR3j9jjA2txN\nh48+j2wvM0fEa7Zpaox9wloQkGjHpfGirhD6SML7CmDiYXtIwtCNHVciOJxb\nRk3r4PQ5ONVZ+W1lX+fxcSHvmuH6q0xcA+U/v3zGvbbq53BLfyJsNJIAwtHr\nkpzoamIBixEpQ5lCOaZSYGwS0xro3N9tu3v7yqickhUEw1TYBGBoIzVZuol1\n9Zn4HsFsOa9/X0nDohl8TFKfTxRjB4U71ehWoafyaVNHTI0pdXey/TAwZmL/\nccs2tqk8NOEPxtjA13dqyEdpvTmiim0BXZSpBr2w6hGZdHpFDTyJ5yqfQFZ1\nWBPmV/Hs072m6bwiFWBvoImwkFZmjiufqgVpWDQW5fTE4E/XVmCRo3tUmxl7\nWGFlFJTtvwJ6MVYfgTLw+4GNRs7l7uXpsBLB+njzyY9V1c/s/pSQhxN5JX4J\nvm+1XyzEwD1OU7QspwM8OB1JpsB7c6dtBKI1LEJaPjI2L693T2Q9XCQI1pJm\nVMzQo/klOIG9VtSqhHGAz8KfI4uego8CgAwDiuMWjMGGfyT4zMp5yk/EIGyP\nS4kj\r\n=ZKTN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIACM/l1pVzeVxHZwpU8QEUwDP6wxe/Exxc8Qw+4sfRl9AiEA+HAo+yFQ8EHsDDDdzWJkwKO5PLFOvaEOHOqpaWQfoeI="}],"size":3825,"noattachment":false,"key":"/intl-locales-supported/-/intl-locales-supported-1.5.0.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.5.0_1568941727570_0.29197509109500697"},"_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":1568941727736,"_cnpm_publish_time":1568941727736,"dist-tags":{"latest":"1.8.12"}}