Changing the en.yaml for another one in rails
-
18-01-2021 - |
题
I managed to get a fr.yaml. I want this to be the default, an old Rails 2.2 tutorial says to add:
config.i18n.default_locale = :fr
in environment.rb
It does not work, my rails server crashes on this config line.
What is the syntax for this setting in Rails 3? I do not want a multi-language app, I want to use only the french settings.
解决方案
In Rails3, you add this line to application.rb
config.i18n.default_locale = :fr
其他提示
This goes in config/application.rb
in rails 3.
不隶属于 StackOverflow