ruby-i18n / i18n

Internationalization (i18n) library for Ruby
MIT License
977 stars 408 forks source link

[BUG] `I18n::Backend::Pluralization` should support CLDR pluralization #629

Open movermeyer opened 2 years ago

movermeyer commented 2 years ago

ruby-i18n/i18n should ship with a pluralization backend compatible with CLDR.

Especially when the README advertises it as such:

image

The default I18n::Backend::Pluralization does not support CLDR's pluralization rules.

Differences with the CLDR spec:

Limitations

  1. We don't currently have a defined standard way to serialize the other lateral inheritance attributes (e.g., case, gender) present in the CLDR XML into YAML. If/when we figure out how to support those, that would be a future change.

  2. Making these changes to I18n::Backends::Pluralization would be a breaking change. While I'm personally in favour of this change (i.e., forcing users to rename their already problematic zero keys to "0"), obviously this is your call.

franzliedke commented 2 years ago

Should this be re-opened now that #630 was reverted?