Vee-validate: Can't localize "Please include an '@' in the email address. '' is missing an '@'."

Created on 17 Sep 2018  ยท  2Comments  ยท  Source: logaretm/vee-validate

Versions

  • vee-validate: 2.1.0-beta.9
  • vue: 2.5.17

Describe the bug
Hello guys. I wasn't sure if is this a bug or a feature, but I bug's label won because due to this issue I can't localize error message properly.
I've got input field with required and email validation rules.
v-validate="'required|email'"

In a short moment after user start typing his email, he receives the following error:

Please include an '@' in the email address. '' is missing an '@'

I didn't find any way to localize this message to different language.

To Reproduce
Steps to reproduce the behavior:

  1. Create input field with rules listed above
  2. Type one letter
  3. See the message which probably can't be translated

Expected behavior
There is a way to localize this

Desktop (please complete the following information):

  • OS: macOS High Sierra 10.13.6
  • Browser: Chrome
  • Version: 69

Additional context
Sorry if any way to localize this message actually exists, but I was looking for this and didn't find.

โ” question

Most helpful comment

This is not the vee-validate validation message, It could be actually the native browser validation. add novalidate attribute to your form and try again. Check out the spec here attrs.

All 2 comments

This is not the vee-validate validation message, It could be actually the native browser validation. add novalidate attribute to your form and try again. Check out the spec here attrs.

This solution worked for me.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MaxMilton picture MaxMilton  ยท  3Comments

kidox picture kidox  ยท  3Comments

YamenSharaf picture YamenSharaf  ยท  3Comments

7immer picture 7immer  ยท  3Comments

parweb picture parweb  ยท  3Comments