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

Pluralise? #9

Closed
cjohansen opened this issue Sep 16, 2017 · 1 comment
Closed

Pluralise? #9

cjohansen opened this issue Sep 16, 2017 · 1 comment

Comments

@cjohansen
Copy link
Contributor

cjohansen commented Sep 16, 2017

Would you be interested in a pull request that makes vectors a valid value in dictionaries, as a way of pluralising translations?

{:en {:bananas ["No bananas" "A banana" "Two bananas" "{1} bananas"]}}
@tonsky
Copy link
Owner

tonsky commented Sep 17, 2017

The trick is it only works this way for english. For other languages rules are pretty crazy. It means pluralisers would have to be locale-specific, and I don’t want to include any locale-specific code in Tongue (because if I include one I’ll have to include all of them)

@tonsky tonsky closed this as completed Sep 17, 2017
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

No branches or pull requests

2 participants