i18n for rails works in dev not in production

I think this is related to this bug: http://groups.google.com/group/rubyonrails-core/browse_thread/thread/1fe3e88f9fe73177/ .

18n.locale is called before the config.i18n.default_locale is propagated to the I18n class.

I will try to also change it in config/initializers/locale.rb. According to 2.2 Optional: Custom I18n Configuration Setup in http://guides.rubyonrails.org/i18n.html, you should also change it in config/initializers/locale.rb . Hope this will fix it for you.


Resolved by adding config.i18n.locale = :fr in addition of the default config.i18n.default_locale = :fr in my application.rb