ASP.NET Core Model Binding Error Messages Localization
<p>I'm using ASP.NET Core, and trying to localize the application. I managed to use <em>new</em> asp .net core resources to localize controllers and views, and <em>old</em> resources to localize error messages for model validation. 
However, when the error message is not linked to a model field annotation (like "Required") and the data for model binding is incorrect (like a text where a number is expected), I receive the error like below, which I'm unable to localize:</p>

<blockquote>
  <p>"The value 'abc' is not valid for ID."</p>
</blockquote>

<p>When I enter <code>abc</code> for <code>ID</code> property in <code>View</code>, since the model binding can not be done to the field and it shows a validation message near the field, saying <em>"The value 'abc' is not valid for ID."</em>. Here is the class I'm using:</p>

<pre><code>public class Country : IHasID
{
    public int ID { get; set; }

    [Required(ErrorMessageResourceType = typeof(L.Val),
    ErrorMessageResourceName = "NameR")]
    [MaxLength(100, ErrorMessageResourceType = typeof(L.Val), 
    ErrorMessageResourceName = "Max")]
    public string Name { get; set; }

    /*Some other properties*/
}
</code></pre>

<p>The similar issues I found on the internet were either targeted to older asp .net version, or else didn't help me solve the problem.</p>