feat[login]:add 18n to login form
This commit is contained in:
		@@ -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! ! !'
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -44,5 +44,14 @@ export default {
 | 
			
		||||
    theme: '换肤',
 | 
			
		||||
    clipboardDemo: 'clipboard',
 | 
			
		||||
    i18n: '国际化'
 | 
			
		||||
  },
 | 
			
		||||
  login: {
 | 
			
		||||
    title: '系统登录',
 | 
			
		||||
    logIn: '登录',
 | 
			
		||||
    username: '账号',
 | 
			
		||||
    password: '密码',
 | 
			
		||||
    any: '随便填',
 | 
			
		||||
    thirdparty: '第三方登录',
 | 
			
		||||
    thirdpartyTips: '本地不能模拟,请结合自己业务进行模拟!!!'
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user