{"name":"intl-locales-supported","version":"1.4.6","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":"cross-env NODE_ICU_DATA=../../node_modules/full-icu mocha --opts ../../mocha.opts tests/index.ts"},"gitHead":"a7842673d8ad205171ad7c8cb8bb2f318b427c0c","_id":"intl-locales-supported@1.4.6","_nodeVersion":"8.16.1","_npmVersion":"lerna/3.15.0/node@v8.16.1+x64 (linux)","dist":{"integrity":"sha512-ho6VlhVdxjG65Nqqc7lTnfhbLsdFplrgwvtpTVWecAnx2fdOhYPFIDkgyNnuzgMGQHeanG4L+AOeVmNTRGnvYQ==","shasum":"dd19d5e9b37b4a3a9c933cb75c2c0e241a6315ee","tarball":"http://registry-npm.ywwl.com/intl-locales-supported/download/intl-locales-supported-1.4.6.tgz","fileCount":9,"unpackedSize":13524,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdbcz/CRA9TVsSAnZWagAAy/MP/i+5Stq20wVHGQvjvFks\nrnGSAO+cEVqYqTI8/dJ2qDR8QaoZK/jS2ZSffR+UcBn1/QwAxmXO1U6Hf0Xm\nN3W4JVuGfwgmFejWeEEUp6BmWtn1AuwClT0xff8hPiKavG5OdssYRjd4wB5l\ntiAMPjI3XDW3Yj8F4bPEpLzly1WcmWEqoJ+69pXsVbq/sQZgqrfc1K8SP4VU\n/PrL5cVjjU2QRau2OXKXEulZXVXwxr/WLDFCsq8Z0PDRa4gqnvBmeOf4OIcp\njC41E3uHw8RJip0q0eGzVKf/dZ4tH7iei/jQSn9AZ/h+MiUoIlAakFiF7sy5\nGkpfvuJLAK7GX3kZmSEFP35qCvJEYQx258WdBjpI66noGn32A5K4vYZzsUHl\nawcKA5YWyL72uCuNhBOslIKDanl9xijf0FwGHJzF/zJ47p81idlnunnQNSAl\nX2E5hpyFBk5ZZhKvzT7siUkUh1s4nrPiCIhd+OUjAmxGpC8GVgug5LMRZSyR\nhgh98YsYw8pgIPYngd7ISVQsV8C8+FVF94zbKPRUBxQtDmNoRqoxxmshe0pJ\nXfBt6v4be4hJYl7Xf0Z542gIJfTIapfUGaI/TSDlK3yicMNH46eXWDm1x2YZ\nsPUM1XtEwkz2PL5OYz71Mn0zJfO4LNwBKvWT6J7VvHDDkYwHcPlPxeaDkzAx\nVrim\r\n=iA4S\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGCnr7vTWLum/4soT9BP70NVXVMo7dLHuZ1NRCHF12p9AiBHTD7Mpxk1f9K8Zgf09onhDqLn+9vCIdSxsksyS07eNw=="}],"size":3643,"noattachment":false,"key":"/intl-locales-supported/-/intl-locales-supported-1.4.6.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.6_1567476991180_0.6297947129417745"},"_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":1567476991308,"_cnpm_publish_time":1567476991308,"dist-tags":{"latest":"1.8.12"}}