Heroku language locale not working

前端 未结 2 1200
执笔经年
执笔经年 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:29

    I had a problem that could very well have been the same.

    I fixed it by taking out the byte order mark from the localization files.

    More info in the question I opened: heroku not loading language file

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题