Jesway / flutter_translate

Flutter Translate is a fully featured localization / internationalization (i18n) library for Flutter.
MIT License
405 stars 119 forks source link

Plural - ignores all above 2 #87

Closed davidhorac3 closed 2 years ago

davidhorac3 commented 2 years ago

Plural translation keys works only on 0, 1, 2 keys... everything else is ignore and goes right into "else" branch.

bratan commented 2 years ago

The plural feature uses https://pub.dev/packages/intl and seems to work correctly in the example app.

https://pub.dev/documentation/intl/latest/intl/Intl/plural.html

davidhorac3 commented 2 years ago

Ah, haven't noticed that it's a problem of another dependency, sry. I've just clicked into code and saw switch case with 0, 1, 2, else cases.