You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For our current implementation, it would not be as easy as only instantiating new Intl.PluralRules object. We would need two because when you make a new Intl.PluralRules, you need to specify if you want either cardinal (default) or ordinal plural rules, you can't get both from one object.
Yes, i know. I'm going to make it a default behavior so users won't need to i18n.loadLocaleData at all. All this setup would happen inside of a lib. We use Intl objects anyway, so it will not add additional requirements for runtime.
This has decent browser support, including Node.js:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/PluralRules/PluralRules
https://caniuse.com/intl-pluralrules
So instead of:
We can do:
Things to consider:
Intl.PluralRules
supported in ReactNative (in both platforms?) https://formatjs.io/docs/guides/runtime-requirements#react-nativeIntl.PluralRules
instead ofmake-plural/plurals
Links:
The text was updated successfully, but these errors were encountered: