So, everything works fine locally, but in heroku it changes to: en
Launch console in both environments:
Geroku:
heroku console --app myapp
Local:
rails c
Then play around
Heroku: > I18n.l Time.now => "Tue, 01 Mar 2011 06:43:58 -0800" Local: > I18n.l Time.now => "tirsdag, 1. mars 2011, 15:43" Heroku: > I18n.default_locale => :nb Local: > I18n.default_locale => :nb
Just doing I18n.locale = :nb in the console fixes the ATM issue, and when I update in different browsers, it works fine. But upon redeployment, it reverts to: ru.
Do I need to set the locale in the initializer? I'm confused.
FYI: I have not programmed I18n.locale anywhere. staging.rb is simple.
source share