You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you try to use the pluralize or singularize view helpers in any other locale they do nothing, unless you have defined your own pluralizations (the rails new app generator provides a file for this in config/initializers/inflections.rb).
It feels like this is something that could go into rails-18n so that as well as default translations, pluralizations would work "out of the box".
Is this something that would be acceptable to the maintainers? I can probably make a pull request if it is (any hints on where the code aught to go or how it should be maintained would be welcome).
The text was updated successfully, but these errors were encountered:
There is already the inflections gem (by @davidcelis) but I think multilingual inflections support aught to come "out-of-the-box" with rails-18n, and including inflections here might encourage people to contribute inflections for languages other than english
By default Rails comes with inflections for the 'en' local:
https://github.com/rails/rails/blob/master/activesupport/lib/active_support/inflections.rb
If you try to use the
pluralize
orsingularize
view helpers in any other locale they do nothing, unless you have defined your own pluralizations (the rails new app generator provides a file for this inconfig/initializers/inflections.rb
).It feels like this is something that could go into rails-18n so that as well as default translations, pluralizations would work "out of the box".
Is this something that would be acceptable to the maintainers? I can probably make a pull request if it is (any hints on where the code aught to go or how it should be maintained would be welcome).
The text was updated successfully, but these errors were encountered: