Skip to content

Instantly share code, notes, and snippets.

@komatzz
Created September 28, 2017 13:18
Show Gist options
  • Select an option

  • Save komatzz/4094fedcdd5981e8b5a16eb6b25109d1 to your computer and use it in GitHub Desktop.

Select an option

Save komatzz/4094fedcdd5981e8b5a16eb6b25109d1 to your computer and use it in GitHub Desktop.
Vue.js でバリデーションしてメッセージを日本語化する ref: http://qiita.com/komatzz/items/c27cfec74804e6275252
import ja from 'vee-validate/dist/locale/ja';
Vue.use(VeeValidate, {
locale: 'ja',
dictionary: {
ja: {
custom: {
password: {
regex: 'パスワードは半角英数字をそれぞれ1種類以上含む8文字以上100文字以下で入力してください',
},
},
},
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment