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

Add Croatian support #65

Merged
merged 4 commits into from
Jul 4, 2023
Merged

Conversation

icrnjak
Copy link
Contributor

@icrnjak icrnjak commented Dec 13, 2022

Added Croatian support

}

private boolean useSingular(Integer value) {
return value == 1 || (value % 100 != 11 && value % 10 == 1);
Copy link
Collaborator

@jglaszka jglaszka Jul 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that identical logic is in other slavic languages - russian, ukrainian, bulgarian - so this class in future could be refactored into shared one class. In polish 121 000 000 is plural (sto dwadzieścia jeden milionów), because for polish people every number over 1 is plural. It looks that in other slavic languages numbers ending on 1 (but not 11) is singular:

  • HR: sto dvadeset jedan milijun
  • RU: сто двадцать один миллион
  • UK: сто двадцять один мільйон

So I think we could move polish code into PolishPluralForms and other slavic into SlavonicPluralForms.

@jglaszka jglaszka merged commit 7d50aa8 into allegro:master Jul 4, 2023
4 checks passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants