aissat / easy_localization

Easy and Fast internationalizing your Flutter Apps
https://pub.dev/packages/easy_localization
MIT License
916 stars 329 forks source link

Incorrect plurals for Vietnamese, Bahasa and Tagalog #466

Open Dersh opened 2 years ago

Dersh commented 2 years ago

We are using the EasyLocalization for Vietnamese, Bahasa and Tagalog and use plurals to show 'day', 'days' ...

For Vietnamese the correct Json keys should be

"date": {
    "day": {
      "other": "{} ngày",
      "zero": "{} ngày"
    },
    "today": "Hôm nay"
  },

But

'date_day'.plural(1);

returns '1 day'

Explanation

This languages do not have separate form for 'one' localisation. Also we use https://app.phrase.com/ to manage translation. This service knows that and blocks us to add useless keys. But EasyLocalization do not follow this logic and is waiting for extra keys for 'one'. If it is omitted it fails back to failbackLocale that is English in our case.

Could you fix this?

Ioana-Sofia-Lazar commented 1 year ago

Hi, I have the same issue when trying to display "day/days" at least for Ukrainian and Russian languages.