-
-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom pluralization rule is not working #882
Comments
I played with pluralization function and I think that it never called. |
After reading sources I have found the problem
It is necessary to change documentation to fit source or source to fit documentation. |
Thank you for your feedback. About custom pluralization, vue-i18n@v9.x or later have a breaking change In composition API, we don't mention custom pluralization. |
thank you for prompt reaction. |
The problem is still found instead of 'pluralizationRules' as in documentation it should be 'pluralRules' or change the code to be pluralizationRules |
OMG There is still an issue in documentation! 😮
|
Yup, please fix it, chat gpt also suggests "pluralizationRules" |
As described in the documentation both
See https://vue-i18n.intlify.dev/guide/essentials/pluralization.html#custom-pluralization and compare highlighted lines in breaking changes with highlighted lines in breaking changes. If you feel like this could be documented in a better way feel free to open a PR!
As for this, we have no control over what information chat GPT uses and it's your own responsibility to verify its output. |
@RollingTL earlier asked about the purpose of second and third argument (choicesLength, orgRule). I found an explanation of the choicesLength as an overall amount of available choices. But I did not find an explanation of Could anyone help with this explanation? I wonder if it might help to customize rule sets for different words. Within a Slavic language, different words have different plural forms... |
Reporting a bug?
Hi,
I am trying to use custom pluralization function but it seems it is not working as expected:
The result is:
Expected behavior
12 and 21 result is wrong.
Reproduction
https://github.com/RollingTL/Testing-intlify-vue-i18n-next-custom-pluralization
System Info
Screenshot
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: