Skip to content

sample, use vee-validate in a browser build ,an html page with message localization #3138

Answered by logaretm
mrs01dev asked this question in Q&A
Discussion options

You must be logged in to vote

You can use fetch to get the json data.

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 v4

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by logaretm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants