{"name":"intl-locales-supported","version":"1.1.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","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":"1dc8b1c43fd0704398dffd888d70214558cfb17d","_id":"intl-locales-supported@1.1.2","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.15.0/node@v10.16.0+x64 (linux)","dist":{"integrity":"sha512-wKgA9ba19hSb8qp6frbgSWOMwr7POsSkGuFU6YcqBJ8IpVqqy9jHCMLKq8zsMtwijBeI+sTiQYNUcQI6kg3viw==","shasum":"ffceaa862c289ed8542e21a4bc04f57dc6b42776","tarball":"http://registry-npm.ywwl.com/intl-locales-supported/download/intl-locales-supported-1.1.2.tgz","fileCount":12,"unpackedSize":13662,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdCGj5CRA9TVsSAnZWagAALl8P/RYUugIX1Y0y3XK8zDEs\n27sRsCufdRsuNlFWFTzirKX5Z8m+kSTYgJfwKHpBa85uyWhnJrcXuAgh1tj4\njXUrUPgOGG7ve2tbQFeTnhRqpKgyTD6VLU7hQ5woKSbfIdxn9W8/b9dFR7q7\n+ItXDtWuw3eQIQ8NbI4+hvm/QDqj1P60tDaVaKaLvmP3Mygbmr3LgtNo692r\nIMmg2EXPXIEqzcXiXmbEyV1h+f7UdlGNL8Vf/tC08Vmf8KzNbaM/tjnD2i5n\nFt0D8ga9yA2Nl7rp7aZeXCrbvdAGZWu7Goiu3dG0qBz+sbeK5vCE2Ul1zma8\nC73lAN2RL48w42i+2CrOjrL57gfgpWrZQo0h7qmeuESHRYNkpHapNYmhc3ww\nKx5pvPQ+GN4sf5HBz9AHnAXXWmI0RhG0NWyAlTnpXkOKgKbcaVQAesnqoI9k\np75GmTIAjR8Mf49tIPfugA+8ogG+3XNoggn6jggOf4TkVOSFPJrlFc3cQLs7\n6s6oBTIYOELWFsIP4GtSGe9DWS9WW0+b4/13CxNi3RPyDDyfN3nR7WE1lMam\nMsUc8K7XcuhtXIWkAw+25emL36vplgOd/pMKb3bYuHnsLsdnqSJtpThgEDdT\n5yr8df4jYnSUc+OJDH/quj1qPBdb1JAQey8qPLtGHmXwT/hUG/de6u5fP6Jp\nXSxG\r\n=FRMA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAGCpweDS1K7ARLOyfjfFnMeAZtTp1CJ9BNZ9GLqnwMoAiEAncc0TvgEtlyDj3AIEEGSxWFI8SQnzzn4FsH8ZIvK6Og="}],"size":3695,"noattachment":false,"key":"/intl-locales-supported/-/intl-locales-supported-1.1.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.1.2_1560832249281_0.6095923148329325"},"_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":1560832249441,"_cnpm_publish_time":1560832249441,"dist-tags":{"latest":"1.8.12"}}