diff --git a/src/lang/en.js b/src/lang/en.js index 3986a2e5..a5e31a96 100644 --- a/src/lang/en.js +++ b/src/lang/en.js @@ -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! ! !' } } diff --git a/src/lang/index.js b/src/lang/index.js index 12b9cacb..a36a9804 100644 --- a/src/lang/index.js +++ b/src/lang/index.js @@ -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 }) diff --git a/src/lang/zh.js b/src/lang/zh.js index e44d0cf0..61e3d13b 100644 --- a/src/lang/zh.js +++ b/src/lang/zh.js @@ -44,5 +44,14 @@ export default { theme: '换肤', clipboardDemo: 'clipboard', i18n: '国际化' + }, + login: { + title: '系统登录', + logIn: '登录', + username: '账号', + password: '密码', + any: '随便填', + thirdparty: '第三方登录', + thirdpartyTips: '本地不能模拟,请结合自己业务进行模拟!!!' } } diff --git a/src/utils/i18n.js b/src/utils/i18n.js index 6c9a8689..6e4ca145 100644 --- a/src/utils/i18n.js +++ b/src/utils/i18n.js @@ -1,3 +1,4 @@ +// translate router.meta.title , be used in breadcrumb sidebar tagsview export function generateTitle(title) { return this.$t('route.' + title) // $t :this method from vue-i18n ,inject in @/lang/index.js } diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 1a74c0d7..72237f31 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -1,22 +1,15 @@