Derived from the bug https://github.com/fnando/i18n/issues/99. If I wanted to patch current I18n.pluralize behavior by overriding pluralize method, it wouldn't work. This is because i18n class has code duplication and it does not uses a single point of entry into pluralizer
Description
Derived from the bug https://github.com/fnando/i18n/issues/99. If I wanted to patch current I18n.pluralize behavior by overriding
pluralize
method, it wouldn't work. This is becausei18n
class has code duplication and it does not uses a single point of entry intopluralizer
Describe the solution
To update lines
https://github.com/fnando/i18n/blob/f49c86d905928d89c3e6bb0265038274be1e92c9/src/I18n.ts#L383-L389
to something like
in this case the overrides
pluralize
will be respected count based translations.