heroku I18n locale is different from default_locale, works fine locally

前端 未结 2 1434
旧巷少年郎
旧巷少年郎 2021-01-15 16:33

So, everything works fine locally, but at heroku it changes to :en

Fire up console on both environments:

Heroku:

heroku console --app myapp         


        
2条回答
  •  情深已故
    2021-01-15 17:06

    What version of Ruby on Rails are you using? I'm not positive about 2.x, but in Rails 3 you can set the default locale in config/application.rb using config.i18n.default_locale = :en. (This is the line, commented out by default.)

提交回复
热议问题