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

Choice locale parameter #63

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

aalmonte
Copy link

@rmariuzzo Please your review

This change fix usage of locale parameter inside choice method. Before it was only used for message resolution but not for plural form.

By default supports plural forms 0 and 1. This allows to use locales not listed in __getPluralForm function.
- Use locale parameter to resolve plural form of messages
- Adds locale parameter to transChoice method
- Adds locale parameter and fallback to default in getPluralForm method
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

1 participant