Skip to content
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

Pluralization completely broken #62

Open
vojtabohm opened this issue Jan 7, 2021 · 1 comment
Open

Pluralization completely broken #62

vojtabohm opened this issue Jan 7, 2021 · 1 comment

Comments

@vojtabohm
Copy link

This is not proper pluralization
image

It does not work for basically any other language than English, see
https://unicode-org.github.io/cldr-staging/charts/37/supplemental/language_plural_rules.html

For example "Czech" language has 4 categories:
image
"few" = 2-4, but your code always assigns 3 to "many"

@vojtabohm
Copy link
Author

Plus it does not localize when the key contains a dot:

"something.people": {
    "one": "there is one person",
    ...
}

The .pluralize value comes out as "something.people.one"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant