Open
Description
Describe the bug
When exporting to .PO with plural keys, the po file is invalid.
To Reproduce
Flat JSon
{
"user.notification.count": "{value, plural, one {Notification} other {Notifications}}"
}
Exported PO
msgid ""
msgstr ""
"Language: fr-FR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals = 2; plural = (n > 1)\n"
"X-Generator: Tolgee\n"
msgid "user.notification.count"
msgstr[0] "Notification"
msgstr[1] "Notifications"
PoEdit complain about invalid file with message: Broken PO file: plural form msgstr used without msgid_plural
Expected behavior
msgid "user.notification.count"
msgstr "{value, plural, one {Notification} other {Notifications}}"
Versions and environment
- Tolgee Platform version: tolgee/tolgee:v3.113.0
- Environment: Docker