Angular Gettext: plural format in .po file -
suppose have snippet
<span translate-n="foo" translate-plural="{{ $count }} items" translate>1 item</span>
what syntax have have in .po
file translate both singular , plural?
something this:
#: .tmp/ui/orders/views/detail.html:1 msgid "{{$count}} ticket selected" msgid_plural "{{$count}} tickets selected" msgstr[0] "{{$count}} ticket geselecteerd" msgstr[1] "{{$count}} tickets geselecteerd"
though highly recommend using tool poedit.
see developer documentation full walkthrough: https://angular-gettext.rocketeer.be/dev-guide/translate/
Comments
Post a Comment