long1eu / flutter_i18n

This plugin create a binding between your translations from .arb files and your Flutter app.
Apache License 2.0
251 stars 55 forks source link

[Question] Flutter i18n plural #131

Closed iTEEECH closed 2 years ago

iTEEECH commented 4 years ago

Hi

I've been using your plugin on my project for a few days now and I have one question on the plural use.

I created a Enumeration like this :

enum state { TESTA, TESTB, } And I would to translate dynamically this enum.

My code :

{ "stateTestA": "No items selected", "statetestB": "to many items", //not actual real }

Is it correct ? Or it's juste possible with 1, 2 ?

Thank you