MVC validation messages - localization?

后端 未结 2 524
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-01 05:30

I have a problem. On main server and localhost are the exacly the same files.

But in localhost I have messages in my home language, like

Pole Email je

2条回答
  •  無奈伤痛
    2021-01-01 06:03

    Do you happen to have

    ...
    

    in your web.config? This would automatically switch the culture of the site to suit the language passed via the browser request i.e. Accept-Language.

    If you want to force the language from the server just set enableClientBasedCulture to false.

提交回复
热议问题