Problem validators langage use when there is a decimal field in a form #42014
Labels
area-mvc
Includes: MVC, Actions and Controllers, Localization, CORS, most templates
feature-mvc-razor-views
Features related to the Razor view engine for Razor pages and MVC views
✔️ Resolution: Duplicate
Resolved as a duplicate of another issue
Status: Resolved
Describe the bug
With a model that contains a
decimal
property, this doesn't work with a locale that uses a decimal comma:Code:
I am used a modal for display my form and a ViewModel:
The first issue is that the rest of the form return french validator langage as expected, but for all the properties which use
decimal
the validator is in English.The second issues is that we give a data without comma it's send and receive correctly. But if we respect the
English format
as9.8
we receive0
.I tried to force the loading of the file jqueryvalidator/message_fr.js or some differents fix find on web without success
The text was updated successfully, but these errors were encountered: