-
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';) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can use fetch("https://unpkg.com/[email protected]/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 |
Beta Was this translation helpful? Give feedback.
You can use
fetch
to get the json data.I admit this is not handy and will fix that for
v4