Skip to content

Conversation

@mledl
Copy link
Contributor

@mledl mledl commented Jul 28, 2023

closes #672

Resolves Issue

The specific issue as well as a discussion on how it could be solved is given in #672.

The issue basically is that there are languages where Intl.PluralRules does not always resolves to other, but it resolves to many in cases where other would be expected by the current implementation. This causes the plural to resolve to an empty string. This PR fixes the issue by setting an appropriate fallback.

Some tests for Polish were added that illustrate the problem and that would fail without the fixed introduced in this PR.

PS: Sorry for the very delayed PR 😆

Copy link
Collaborator

@ivanhofer ivanhofer left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

@ivanhofer ivanhofer closed this Aug 1, 2023
@ivanhofer ivanhofer reopened this Aug 1, 2023
@ivanhofer ivanhofer merged commit 2c8f58d into codingcommons:main Aug 1, 2023
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.

Plural rule with injected argument not working as expected for Polish

2 participants