[Vuejs]-Vuejs vee-validate: this.error.add -> add message from dictionary

0๐Ÿ‘

โœ…

I got the answer there ๐Ÿ˜‰

https://github.com/baianat/vee-validate/issues/963

Validator.dictionary.merge({
    en: {
        messages: {
          credentials: 'Wrong user or password'
    }
  }
});

const message = this.$validator.dictionary.getMessage('en', 'credentials');
this.errors.add('credentials', message); //this message i want to move to the dictionary

Leave a comment