I'm building custom validation response from my API with localization. I need to localize default error messages for variables on model binding when requesting API. I localized almost everything, but I still get The X field is required
in English.
I used solution from this response and it works well with .NET 7, however this options configurator misses message for The X field is required
.
I also found solution with adding [Required]
attribute and overriding its message, but application is in advanced state, so this would take a lot of time.