aiji42 / zod-i18n

Useful for translating zod error messages.
https://zod-i18n.vercel.app
MIT License
668 stars 72 forks source link

Strange plural behaviour for string #198

Open dhythm opened 10 months ago

dhythm commented 10 months ago

Thanks for maintaining a great library, guys.

I try using plural feature in the current project. Then, I meet with a strange behaviour.

I set both _one and _other but display as _others even though .length is 1. (meet with the same issue for .min as well).

image

image
dhythm commented 10 months ago

I figure out that Japanese doesn't have plural concept. So, this feature may not use in ja. image