feat[login]:add 18n to login form

This commit is contained in:
Pan
2017-12-25 15:29:59 +08:00
committed by 花裤衩
parent e261fbcbfb
commit f3bfaa0f2b
5 changed files with 133 additions and 83 deletions

View File

@@ -44,5 +44,14 @@ export default {
theme: 'Theme',
clipboardDemo: 'Clipboard',
i18n: 'I18n'
},
login: {
title: 'Login Form',
logIn: 'Log in',
username: 'Username',
password: 'Password',
any: 'any',
thirdparty: 'Or connect with',
thirdpartyTips: 'Local can not be simulated, please combine their own business simulation! ! !'
}
}

View File

@@ -20,7 +20,7 @@ const messages = {
}
const i18n = new VueI18n({
locale: Cookies.get('language') || 'zh', // set locale
locale: Cookies.get('language') || 'en', // set locale
messages // set locale messages
})

View File

@@ -44,5 +44,14 @@ export default {
theme: '换肤',
clipboardDemo: 'clipboard',
i18n: '国际化'
},
login: {
title: '系统登录',
logIn: '登录',
username: '账号',
password: '密码',
any: '随便填',
thirdparty: '第三方登录',
thirdpartyTips: '本地不能模拟,请结合自己业务进行模拟!!!'
}
}