|
Using vee-validate in a browser build - not using nodejs -. I use the following code in js file to import " vee-validate" , const VeeValidate = window.VeeValidate; But i do not knew how to import localization i.e. (import en from 'vee-validate/dist/locale/en.json';) |
Replies: 1 comment
|
You can use fetch("https://unpkg.com/vee-validate@3.4.5/dist/locale/en.json").then(res => res.json()).then(en => {
VeeValidate.localize('en', en);
});I admit this is not handy and will fix that for |
You can use
fetchto get the json data.I admit this is not handy and will fix that for
v4