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

Pluralization #33

Closed
VegardSkui opened this issue May 31, 2016 · 1 comment
Closed

Pluralization #33

VegardSkui opened this issue May 31, 2016 · 1 comment

Comments

@VegardSkui
Copy link

Hey folks!

This is by far the best internationalization library for VueJs I've found so far, but like every other library I think it has a pretty major short-coming. Pluralization of course. The translators have to make a separate string for multiple items and one for a single item.

I would propose an API similar to that of Laravel/Symfony as it is already known by many developers (at least those of us who come from the back-end) and it is pretty straight-forward. https://laravel.com/docs/5.2/localization#pluralization

To fit with this library the API would maybe be something like {{ $tc('user.have_apples', x) }}, which could then output either You have one apple or You have four apples depending on the value of x.

A feature like this would be extremely helpful for pretty much all projects, especially as there are no real good workarounds. Hope we see this feature in an upcoming version! 😃

@kazupon
Copy link
Owner

kazupon commented Aug 26, 2016

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

3 participants