heroku I18n locale is different from default_locale, works fine locally

前端 未结 2 1413
旧巷少年郎
旧巷少年郎 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 16:58

    It helped setting locale directly.

    config.i18n.default_locale = :nb
    #Adding the below makes it work as expected at heroku
    config.i18n.locale = :nb 
    

    If you have a better solution, please let me know and you'll get upvote and accepted answer.

提交回复
热议问题