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

Added support for arrays of strings to i18n. Arrays support pluralisa… #30

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

personalnadir
Copy link

Hi, this is my attempt to add support for #29

I've changed the way pluralisation works to support this. Whereas previously the code always used data.count to determine the pluralisation it now uses the first %{field} or %<value> name in the string, falling back to count if none found.

This will cause issues if the user attempts to combine pluralisation and interpolation with independent variables at the same time. At the moment I cannot think of a use case for this.

@coveralls
Copy link

coveralls commented Nov 4, 2019

Coverage Status

Coverage decreased (-0.04%) to 98.613% when pulling 9e255c1 on personalnadir:master into 93f8cbe on kikito:master.

@coveralls
Copy link

coveralls commented Nov 4, 2019

Coverage Status

Coverage decreased (-0.02%) to 98.631% when pulling a0ada42 on personalnadir:master into 93f8cbe on kikito:master.

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.

2 participants