easy_localization icon indicating copy to clipboard operation
easy_localization copied to clipboard

Incorrect plurals for Vietnamese, Bahasa and Tagalog

Open Dersh opened this issue 2 years ago • 1 comments

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?

Dersh avatar Mar 18 '22 05:03 Dersh

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

Ioana-Sofia-Lazar avatar Aug 25 '23 10:08 Ioana-Sofia-Lazar