Vee-Validate: 2.0
I am trying to change language like this in app.js file:
window.Vue = require('vue');
var VueValidation = require('vee-validate');
var VueValidationSwe = require('vee-validate/dist/locale/sv');
Vue.use(VueValidation, {
locale: 'sv',
dictionary: VueValidationSwe
});
I get no errors when I compile but the error messages still display in english.
Thanks
You are merging the locale as a root dictionary which doesn't work, try this instead:
window.Vue = require('vue');
var VueValidation = require('vee-validate');
var VueValidationSwe = require('vee-validate/dist/locale/sv');
Vue.use(VueValidation, {
locale: 'sv',
dictionary: {
sv: VueValidationSwe
}
});
Most helpful comment
You are merging the locale as a root dictionary which doesn't work, try this instead: