このスニペットがあるとします
<span translate-n="foo" translate-plural="{{ $count }} items" translate>1 item</span>
.po
単数形と複数形の両方に翻訳するには、ファイルにどのような構文が必要ですか?
このスニペットがあるとします
<span translate-n="foo" translate-plural="{{ $count }} items" translate>1 item</span>
.po
単数形と複数形の両方に翻訳するには、ファイルにどのような構文が必要ですか?
このようなもの:
#: .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"
ただし、PoEdit などのツールを使用することを強くお勧めします。
完全なチュートリアルについては、開発者向けドキュメントを参照してください: https://angular-gettext.rocketeer.be/dev-guide/translate/