{"name":"intl-locales-supported","version":"1.0.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","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":{"build":"tsc","test":"mocha test/unit/*.js"},"gitHead":"45cf9119c119c26a0d0b939560d3fd9af6b4ef37","_id":"intl-locales-supported@1.0.2","_nodeVersion":"12.3.1","_npmVersion":"lerna/3.14.1/node@v12.3.1+x64 (linux)","dist":{"integrity":"sha512-QNMbJv/4Fd1AYw+qTm34XVJn++pURNHDYybsijV9++CmJXUXp8UuPlcbFWrTzyMZi4pzaZiCVrFpvxFtUqEVcw==","shasum":"bf2f6f47b42b4e26466287fbe206509769f8ffd4","tarball":"http://registry-npm.ywwl.com/intl-locales-supported/download/intl-locales-supported-1.0.2.tgz","fileCount":7,"unpackedSize":7853,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc6xSUCRA9TVsSAnZWagAAtIoP/A6AxeWfy3nCKEZHmDpM\n9qKiI1jQpzMK4VIQtsPMFqa+xHnLqpRYGvKHLHRy2UA/CFfPRsdEjj+VL1a+\ni8ADLqWVEJwzzehUYKiRbFC9oh8ChT7XuqH4Yam+E6DgZt4lcdsAzFs9do5/\nG29GW7EQeEVmIH+LfJfGgGbSkD4WfgoNhJ6KPOvwAVoB66/Eb8S/zuNtE1th\nQcgGNQHBTKak6R0ZHK2qbRwfx9/NmhYjtPrPDFyyVf8gvuLOR77rUIHDJeep\nHs+Wucu8fJlgFeLq0pMJ5BhzjRNhA8Rj4tPm49lrUduY4SCx7QdSbvX9ST8U\nxHy2wPUQApyy7q9AD4ZhExEOULU+McZThADpmdr2plmJAmN0lC0Rqk+DWxfq\n0rI1n/o6hYpagcLpKc1hdQnmspjKI+50GiCq9Mkdo/guyZgCpk00NLGQ9Qp1\nlPUtFsS9lY/nStTbT3Y6iCH6f+r+ZO8Rdyq1/xmiZQ1vBbjhIPHH49fumLHe\nqnhxTVNX4QpU22OhoFzBYoNV/2TKzhQY8BDYjXBJx3kGDs/ut03csLLJlJfR\nnFjXEEzTvKTjWpOZCfQm3L1GhaD/SLqCiJx/txrrft11vPAFiQWwrvqqnDa4\nkKG19cU427Rt64cBKw4Q+apFIutVHwDOrIMvMJ8fct5239wGF3qjl/iNiyi2\ni72O\r\n=wIj5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDX/g61IVzGPPNUCAWKK+rF31F6pCZBTANem3M1/FC+QAiBDAJ/djM2pCdBz9+csHw+YJbonwajTBJXpMbqMBq3F2w=="}],"size":3025,"noattachment":false,"key":"/intl-locales-supported/-/intl-locales-supported-1.0.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.0.2_1558910099212_0.4707184003911977"},"_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":1558910099406,"_cnpm_publish_time":1558910099406,"dist-tags":{"latest":"1.8.12"}}