{"name":"intl-locales-supported","version":"1.4.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":"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":"78355538d14153fa3e52d483b7840106573c3fc7","_id":"intl-locales-supported@1.4.8","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.16.4/node@v10.16.0+x64 (darwin)","dist":{"integrity":"sha512-kua9s/BGXo3BmqvQiN/xGsMJZnMqlNrZvXzxbDaIUD2Zt4gV5G8o/YUhuTUu3V9DTVWEx9ZSVRCvZxXK1Ig95w==","shasum":"99263bc4777fac409610093cf65aba7ffbe5c694","tarball":"http://registry-npm.ywwl.com/intl-locales-supported/download/intl-locales-supported-1.4.8.tgz","fileCount":9,"unpackedSize":14089,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJde/BqCRA9TVsSAnZWagAAzXcP/jegDej4jPwXe3Jyyfgt\nssi2n5ZAB7IA0xpOsuvLbh0qefMAyfcUwEmvO79t7VkwO0bp4lVer+9vHuH6\nIVtJrq7HsbFGMBjJK+0XHreEiV+Deu749yKfFAhbPm8PcshLxEg4P7ZcvAEg\nJqKAonyUMqpJF03NAKAOZOQlWAa5xQZm0TCgzBTjGzXkYRyhB1TkRmuyORSP\n/poi7YioTNokbjsu/OYsWaJZCFXaoafUMc2FHfMuWXS8sAipe6S46dIn2YFO\no2sP4y/XbjvcZumCyXfO1yQQaz+4c6Y6ThQL2ysSwkG88NjK3EwdYZnA79Lx\ntiddngW+qUI4Y+iADBef9icM3gFkF6sqj+JFbnrnFoyIpwcbYlkpW27Cq78G\ndw6Rh8J6Ega91CmDfOBKX/1oO9RDj5tNBI8aWM28kWEvIWtTNWeb6fZQzJyb\n8owBT8C4Z4nJV/rx84Uk+g830rOXVqFYKRVPKQpCUhDLA3m58+fCAZRU53px\nCvchZ8PC3kzDl79LRgfHHj1O01j4SZrlLmLTp1qs5mtoygCW8RbpgbG4NL9O\nYBBWIVqcOcxxln2y8yzgWhpRUPIB/M7LHF4JRK1ogkXIVFd10+/zhTBMciLi\nxCpvWuMbE8EdYikJyT84LqczWwQm4PB70LA0X7qVn2eitif9vfDrRvJdu8lG\nyURb\r\n=v0Zd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCyIfSugFW9NPCM85ZPbZXNOYRQNdmgbwqQ1ZdshEvorgIhANaFMda6fNACwL1a+sS/MMaXVI6LFoXLAB7nhZsJzXsl"}],"size":3744,"noattachment":false,"key":"/intl-locales-supported/-/intl-locales-supported-1.4.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.4.8_1568403562214_0.8426393865583395"},"_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":1568403562346,"_cnpm_publish_time":1568403562346,"dist-tags":{"latest":"1.8.12"}}