How to translate the default ModelErrors in ASP.NET Core?

后端 未结 0 1838
梦毁少年i
梦毁少年i 2020-12-31 02:22

In my app, I have custom ModelErrors set, with a fixed message in my case in spanish, for example:

if (tripOdometer <= 0)
{
    ModelState.AddModelError(&q         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题