{"name":"intl-locales-supported","version":"1.1.1","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","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":"10a14dda59e32f7fdae54fe258da0eed1437c9cc","_id":"intl-locales-supported@1.1.1","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.15.0/node@v10.16.0+x64 (linux)","dist":{"integrity":"sha512-fQ11DTYjyrhAf+3t1ESj7pg0HBPgnmfwQFITyKDtOJNIyB+wqW/09XPEMSRnEzEPesjXwiulnFsU03RcLeiFNw==","shasum":"6a263b31191243b190c45b063f66ce1eae81560e","tarball":"http://registry-npm.ywwl.com/intl-locales-supported/download/intl-locales-supported-1.1.1.tgz","fileCount":19,"unpackedSize":15736,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdCGb/CRA9TVsSAnZWagAAxjMQAKMPRN0u8aAyX7aYCdjX\nd1DD1YzqjfwCN+mmG+hzDrZzB1/VDWPSberF+wXJxiThPsSlRirRrjWyi2Mj\nBDCt/xwENxkLfMb0C/Np1np7k3ekomHlY+GtUeL3XTF9ITcBWQ0xPIJvP3ic\navLVv/X8bG1eacMKTtqVn2RhFd267t0KcMm34xbn/TxvfrN4vQxgtVf5Kzvx\nU8KUakATr5lGSddYr3NJ8CSx8DyDYZ3OwhZfs8Wy98RW1mnS7DcdwBZv2wiK\neuuSnSawMoXMbw+kSWHLldhLzqKsTTQtJMXAnE5BpR9U+bDv+rWpl0GfP9mp\nimCDV6JhwSDVQDT1yMcwwuJDfKRxTgLqBJfNh8JdNlV3fNRBGzBx+lghEUhS\nn8SBvk8iV42hidCryDpl20SjyUpfuXGIdBnYj3Z8aq3wBT8qUDXGaerkbg0F\nkqCqiHiclBTXLTK3qbno+4eg0q0YplPrAXq8ce84eaQUR2agKD3tY6MUa0eb\nYCqzZJYNe4/MImORRvmj3hWoz5K+FkYOz5nwLC+zCIX6186n9uKyqpTl19uH\ndzsKtZQAxaIOaYfU4vqsMM7WYHfXSHr9YTKAF/G7KZGx/9g0DYmlBmRI819x\nn1b5u2C7effpTNJfCzlybs5G8HJk7YLCl8zX5sMKgFrDBqb+wu2Cit98nRnM\nEerv\r\n=JPFf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDGS/srSHIlIx+5+To4G8lp4rjEEfHYdl3vaxFRvJmkNAiB0Lk0BECpep9T+xtaFbqFqsCxPJ04tlEEzXhojOBqrhQ=="}],"size":4443,"noattachment":false,"key":"/intl-locales-supported/-/intl-locales-supported-1.1.1.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.1.1_1560831743020_0.8120382776506869"},"_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":1560831743303,"_cnpm_publish_time":1560831743303,"dist-tags":{"latest":"1.8.12"}}