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

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -