{"name":"intl-locales-supported","version":"1.0.0","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":"https://github.com/yahoo/intl-locales-supported.git"},"keywords":["i18n","intl","internationalization","localization","globalization"],"bugs":{"url":"https://github.com/yahoo/intl-locales-supported/issues"},"homepage":"https://github.com/yahoo/intl-locales-supported","scripts":{"test":"mocha test/unit/*.js"},"directories":{"test":"test"},"devDependencies":{"expect.js":"^0.3.1","intl":"^0.1.4","mocha":"^2.2.5"},"gitHead":"42552966922e8d5e9e5eb809a77bcd69fc03cb29","_id":"intl-locales-supported@1.0.0","_shasum":"9a9d94dbf104a87818881952dcb782053f0aeefa","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"ericf","email":"eferraiuolo@gmail.com"},"dist":{"shasum":"9a9d94dbf104a87818881952dcb782053f0aeefa","tarball":"http://registry-npm.ywwl.com/intl-locales-supported/download/intl-locales-supported-1.0.0.tgz","integrity":"sha512-wKtLhStFDTpKLwaje0EymduhVokSe4c7rW/qfnDxxyGs7QLI/TSnSVpxu4TqveMLp3AHlH0IMcGkzhk+WXLAIA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFpp0z3p13ydQfh3oVHBakG8Q2VrQHybRlwgANub/tmtAiEA/al9qVars+3nJ3mds1T7ueBYOL5x4NWkSYU/2YJbWv4="}],"size":3029,"noattachment":false,"key":"/intl-locales-supported/-/intl-locales-supported-1.0.0.tgz"},"maintainers":[{"name":"ericf","email":"eferraiuolo@gmail.com"}],"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":1433014217372,"_cnpm_publish_time":1433014217372,"dist-tags":{"latest":"1.8.12"}}