In Rails 4 (which supports multilingual kinks) I can set:
config.i18n.default_locale = :es
in my config / application.rb, which allows me to do such things in the console:
'general'.pluralize(:es) => "generales"
But when I run:
rails g model General conciencia:string atencion:string
Rails generates files with a “general” with multiple extensions as “generals”, which in Spanish should be “general”
Doesn't Rails use a multilingual inflector for its generators if the locale is set? Is there a way to get them to use them?
Thanks!
source
share