How to change the Vee-Validate default error messages?

RichC picture RichC · Jun 21, 2018 · Viewed 11.4k times · Source

Using Vue.js and Vee-Validate, how can I change the default error messages?

Vee-Validate Example Demos

Out of the box, for the required message, it will display, "The <fieldname> field is required." But I just want all fields that are required to display "Required" instead. I know I can override individual fields but I just want to globally override any field that displays a required error to display "Required".

Answer

chrisg86 picture chrisg86 · Jun 21, 2018

Have a look at Field-specific Custom Messages in the official documentation.

You basically have to provide a custom dict for each language you want to override.