angular-gettext icon indicating copy to clipboard operation
angular-gettext copied to clipboard

Plural for attributes

Open markusklooth opened this issue 11 years ago • 4 comments

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

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

markusklooth avatar Sep 05 '14 00:09 markusklooth

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 avatar Sep 05 '14 10:09 rubenv

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

rubenv avatar Sep 05 '14 10:09 rubenv

This should become:

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

rubenv avatar Oct 01 '14 14:10 rubenv

is this working somehow? if so, how?

esseti avatar May 26 '15 12:05 esseti