Heroku language locale not working

前端 未结 2 1219
执笔经年
执笔经年 2021-01-22 08:27

It seeems like my language locale on heroku is not working.

On my local mashine : 1. maj
Heroku              : 01 May 00:00

My view:

         


        
2条回答
  •  自闭症患者
    2021-01-22 08:38

    Your locale data is for English (en) but your strings are, I think, Norwegian (no). What locale is your application running as? What language is your browser asking for? What happens if you add an no: section for the Norwegian?

    As a wild guess I'd think that you application ends up trying to use the Norwegian locale but it can't find any configuration for Norwegian so it uses the hard-coded en_US stuff as a fallback. I'd also guess that everything works out on your machine because the default fall-back locale is no_NO; what happens on your local machine if you change the short date format in your en: locale section?

    More guesses that answers here but this was a little too big and involved for a comment.

提交回复
热议问题