use Intl.PluralRules instead of packaging CLDR#185
use Intl.PluralRules instead of packaging CLDR#185longlho merged 3 commits intoformatjs:masterfrom longlho:pluralrules
Conversation
…version with PluralRules yet
redonkulus
left a comment
There was a problem hiding this comment.
Would be nice to only require it if the native API is not available. Is that possible?
|
@redonkulus Intl.js polyfill already supports it (andyearnshaw/Intl.js#262) like 2 years ago, but for some reason hasn't been released. The other polyfill is https://github.com/eemeli/intl-pluralrules We can def package a polyfill with ourselves. I don't mind either way |
|
Could we just require the application to provide the polyfill instead of doing it here? |
|
I hope Intl.js moves to FormatJS org to maintain parts. |
Intl.js was meant to be a stop gap solution until JS runtimes supported Intl natively. I believe most, if not all, modern browsers and Node support it today. We should start considering the general availability of these APIs instead of continuing to bundle or rely on a polyfill. |
fixes #172
also bumped major version since this is not backwards compat