I want to localize my application for Russian.
I have this model (simplified):
public class MyModel
{
[Range(1, 100, ErrorMessage = "RangeError")] // - this translates fine
public int? PremiseArea { get; set; }
}
I have .resx file with my custom localization strings and when I enter 200 in input, the error shows in Russian, as I want.
My problem is when I'm entering letters in the input. I get this error:
How to handle these errors? Where to find the list of all the DataAnnotations errors by default?