Skip to content

Model Binding Errors Localization

Ziya Mollamahmut edited this page May 7, 2020 · 2 revisions

Model binding error localization setup is done by default with ExpressLocalization, you only need to provide the localized versions for the below messages in resx files:

Default model binding errors

A non-empty request body is required.
A value for the '{0}' parameter or property was not provided.
A value is required.
The field {0} must be a number.
The supplied value is invalid for {0}.
The supplied value is invalid.
The value '{0}' is invalid.
The value '{0}' is not valid for {1}.
The value '{0}' is not valid.