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

Plural for attributes #104

Open
markusklooth opened this issue Sep 5, 2014 · 4 comments
Open

Plural for attributes #104

markusklooth opened this issue Sep 5, 2014 · 4 comments
Labels

Comments

@markusklooth
Copy link

Is there anyway to get plural working within attributes such as:

<span title="{{'1 Comment' | translate: translate-n='count' translate-plural='{{count}} Comments' }}"></span>
@rubenv
Copy link
Owner

rubenv commented Sep 5, 2014

Not yet, but I've been wanting to add it. I'd look something like this to match Angular.JS style:

<span title="{{'1 Comment' | translate:count:'{{count}} Comments'}}"></span>

@rubenv
Copy link
Owner

rubenv commented Sep 5, 2014

Anyone who wants to have a go at implementing this: go for it.

@rubenv
Copy link
Owner

rubenv commented Oct 1, 2014

This should become:

{{"1 car" | translatePlural:n:"$count cars"}}
{{"1 car" | translatePlural:n:"$count cars":"domain"}} // With a domain

@esseti
Copy link

esseti commented May 26, 2015

is this working somehow? if so, how?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants