angular-gettext
angular-gettext copied to clipboard
Plural for attributes
Is there anyway to get plural working within attributes such as:
<span title="{{'1 Comment' | translate: translate-n='count' translate-plural='{{count}} Comments' }}"></span>
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>
Anyone who wants to have a go at implementing this: go for it.
This should become:
{{"1 car" | translatePlural:n:"$count cars"}}
{{"1 car" | translatePlural:n:"$count cars":"domain"}} // With a domain
is this working somehow? if so, how?