Created
September 28, 2017 13:18
-
-
Save komatzz/4094fedcdd5981e8b5a16eb6b25109d1 to your computer and use it in GitHub Desktop.
Vue.js でバリデーションしてメッセージを日本語化する ref: http://qiita.com/komatzz/items/c27cfec74804e6275252
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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