Skip to content

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

Open
personalnadir wants to merge 3 commits into
kikito:masterfrom
personalnadir:master
Open

Added support for arrays of strings to i18n. Arrays support pluralisa…#30
personalnadir wants to merge 3 commits into
kikito:masterfrom
personalnadir:master

Conversation

@personalnadir

Copy link
Copy Markdown

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

coveralls commented Nov 4, 2019

Copy link
Copy Markdown

Coverage Status

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

@coveralls

coveralls commented Nov 4, 2019

Copy link
Copy Markdown

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