Closed jdescelliers closed 1 year ago
I suspect, 6 months later, you have found your issue out already.
For posterity's sake: pluralize
takes two positional arguments:
def pluralize(count = nil, locale = :en)
To get what you're after:
"quizz".pluralize(2, "fr")
What I tried to do
And the inflection configuration:
What I expected to happen
"quizz".pluralize(locale: :fr)
Output quizz
What actually happened
"quizz".pluralize(locale: :fr)
Output quizzs
Versions of i18n, rails, and anything else you think is necessary
i18n version : 1.12.0 Rails version 7.0.4
Bonus points for providing an application or a small code example which reproduces the issue.
Use the files provided.
Oddly when I add these rules to the en locale, these rules are applied correctly. This works fine :
In the rails console,
I18n.locale
returnsfr
What am I missing?