Closed landyrev closed 2 years ago
Hi @landyrev, I suggest enabling ICU in the settings of your project. You can find this at: Project Settings -> Advanced -> Enable ICU Message format. After that ICU translations will be properly highlighted and should make editing for translators quite a bit easier.
For example, your translation would look like this:
In addition, you would have to disable pluralization for all keys that are using ICU. After this you'll also get proper ICU pluralization in your arb file when pulling it.
Thank you, @theSoenke, it helped 🙌
it might be useful to enable this option by default for flutter projects though
Flutter i18n has its own way to encode plurals in ARB files (see Flutter Internationalization User Guide). For example:
i18n codegenerator converts this object into handy method
String nWombats(num count)
But when I use Phrase I'm facing two problems:
nWombatsZero
,nWombatsOne
,nWombatsOther
), so I have to implement pluralization logic on my own