{"name":"intl-locales-supported","version":"1.0.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":"index.js","typings":"lib/index.d.ts","author":{"name":"Eric Ferraiuolo","email":"edf@ericf.me"},"license":"BSD","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","test":"mocha --opts ../../mocha.opts tests/index.ts"},"gitHead":"6c131ebfbd0431cc32520f6880e1ea917797a389","_id":"intl-locales-supported@1.0.8","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.14.1/node@v10.16.0+x64 (linux)","dist":{"integrity":"sha512-S/LQ20ajz/2QyA8V3nBLRle9d6LUjncuI2w5npvWLAWoQ3eRBRvIpFQ8NDqZKjnyZQ/r1d1Qqa2rRQyNn6AH0w==","shasum":"0e31aa591e381f54600f5ee31b11f824ab59fb6a","tarball":"http://registry-npm.ywwl.com/intl-locales-supported/download/intl-locales-supported-1.0.8.tgz","fileCount":27,"unpackedSize":129572,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc9Jk7CRA9TVsSAnZWagAAwUoP+wTKzgLPVrYo7j1VFDtF\nPnSFPv7F9hT0MbBs71kjMUUEkEUrf47FRHUO+lE9WOMnPR5bxXnErdoQbOv6\n9Pm0Fqqggnl3eFtwxIfOp3zl8L3E1hfKIzYm4ZsG//dSXW/9sAPu/4KS4eaY\nqyKFaJLuh1hKxPegOdhc3xuDglEeMg+vK/QP2iOyPuN0zeHD3kv8sNPiJX1H\nbG6FAX42Pb2wy7TEMjk5Q+9QL0rmaMvxsQIvZL4lxGmlRCO8ctG4CEWEnrba\npFab5lx0HFz2B9kWBGnUk1YLAxtgf9sWARps+Tsbwm205afYTjK2Trt2DXVk\nY0CbfO6IPdQO4d7RNpfkgE/UpncwwvCiOBAewQweZXrVLuPEa03tV261AoOz\nRpQVqsPVvzf6jn8MQ3vvsfoz+3Ev6O4Cse8G9KX6MhNPQbrOwy4sVoVDLmIL\nmINHdU/p4grAGFqG3p37HASJJ8Tj6qc9Kk9uNbJgfhkrDLOs85obq1ff11lH\nyQCyzV9ojc29kGhNLVJtT1Cv2B/KVy0SLuH/W2aqGdLf57hXoO9VVVwn67sF\ntem3ntrGZTKXcC2M1YvUIGLlbQzi9usYV0OvlcE+C6FvpEpU7t41iGutO5Zb\nnBk7a4OBnOIEP0/jdj7P+MbKEYV2HgT+eELzHRf5JRVCgX6tKMZNna3pXww6\nr3I3\r\n=cb2r\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFY8YKOY5EuHQiEK8mV8x/lCtdDga5kBtClPiT6jlOIwIhAP8YvyYyXqPJhYSEXarRldcM+/At1Es3vQ7kglIKVmuG"}],"size":24388,"noattachment":false,"key":"/intl-locales-supported/-/intl-locales-supported-1.0.8.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.0.8_1559533882575_0.7600581687606269"},"_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":1559533882737,"_cnpm_publish_time":1559533882737,"dist-tags":{"latest":"1.8.12"}}