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
The default pluralization rules are pretty simple and Intl.PluralRules has 97% browsersupport so it would be nice to have an implementation based on it with fallback to the current simple one. Which maybe needs revising since it can currently return a number greater than choicesLength - 1 that then crashes vue
Suggested solution
Here is an implementation that works with the current api but the implementation could be cleaner without the Proxy
If shipping it by default is considered too large it could live in an extra import so that it's easy to use
importpluralRulesfrom'@intlify/plural'
The implementation could also be cleaner if instead of an object pluralRules could be a function that receives the locale maybe it would be a factory so that it only gets called once per locale
Clear and concise description of the problem
The default pluralization rules are pretty simple and Intl.PluralRules has 97% browsersupport so it would be nice to have an implementation based on it with fallback to the current simple one. Which maybe needs revising since it can currently return a number greater than choicesLength - 1 that then crashes vue
Suggested solution
Here is an implementation that works with the current api but the implementation could be cleaner without the Proxy
Alternative
If shipping it by default is considered too large it could live in an extra import so that it's easy to use
The implementation could also be cleaner if instead of an object pluralRules could be a function that receives the locale maybe it would be a factory so that it only gets called once per locale
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: