Override field name only in error message #4653
Unanswered
kristijan11b
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello guys, I have a question about field names and the translation of error messages.
I am using @vee-validate/i18n to translate common validation errors. However, there is still problem with fieldName.
In order to have nice validation errors, I set fieldName in German ("Neues Kennwort" and "Passwort bestätigen").
That fixed my problem with validation messages. However, that raised other problem.
Now structure of
values
is not what I would like. Please take a look at code bellow:In the code above I was expecting that value of
values
is{ newPassword: '', confirmPassword: '' }
,but since I set the field name in German I am getting this
{Neues Kennwort: '', Passwort bestätigen: ''}
Can you point me how to achieve this? Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions