Incorrect handling of empty string in pluralization for n = 0 #1972
Labels
🔨 p3-minor-bug
Priority 3: a bug in an edge case that only affects very specific usage
Status: PR Welcome
Welcome to Pull Request
Type: Bug
Bug or Bug fixes
Reporting a bug?
In the latest update of vue-i18n (checked on
v10.0.1
), there seems to be an issue with pluralization when handling an empty string for then = 0
case. The expected behavior is for the translation function to return an empty string when n is 0, but instead, it returns undefined.Expected behavior
case
n = 0
should return an<empty string>
and not'undefined'
.Reproduction
Please follow the link for the minimal reproduction:
https://stackblitz.com/edit/vitejs-vite-9tydzp?file=src%2FApp.vue
System Info
Screenshot
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: