I've read answers about localization of validation errors by specifying DefaultModelBinder.ResourceClassKey
, basically it's when entering string values in int field or not a datetime in datetime field.
But when I'm typing "111111111111111111111111111111" for an int field I get System.OverflowException
and it looks like "The value '{0}' is invalid."
.
Is there a way to localize (translate that message to other languages) that validation error in a way similar to other MVC-validation?