Commit e0882a7c authored by michael's avatar michael Committed by 陈帅

Internationalization Login error message(#2507)

parent 02398487
......@@ -108,6 +108,8 @@ export default {
'menu.account.settings': 'Account Settings',
'menu.account.trigger': 'Trigger Error',
'menu.account.logout': 'Logout',
'app.login.message-invalid-credentials': 'Invalid username or password(admin/888888)',
'app.login.message-invalid-verification-code': 'Invalid verification code',
'app.login.tab-login-credentials': 'Credentials',
'app.login.tab-login-mobile': 'Mobile number',
'app.login.remember-me': 'Remember me',
......
......@@ -75,6 +75,8 @@ export default {
'menu.account.settings': 'Configurar Conta',
'menu.account.trigger': 'Disparar Erro',
'menu.account.logout': 'Sair',
'app.login.message-invalid-credentials': 'Nome de usuário ou senha inválidosd(admin/888888)',
'app.login.message-invalid-verification-code': 'Código de verificação inválido',
'app.login.tab-login-credentials': 'Credenciais',
'app.login.tab-login-mobile': 'Telefone',
'app.login.remember-me': 'Lembre-me',
......
......@@ -106,6 +106,8 @@ export default {
'menu.account.settings': '个人设置',
'menu.account.trigger': '触发报错',
'menu.account.logout': '退出登录',
'app.login.message-invalid-credentials': '账户或密码错误(admin/888888)',
'app.login.message-invalid-verification-code': '验证码错误',
'app.login.tab-login-credentials': '账户密码登录',
'app.login.tab-login-mobile': '手机号登录',
'app.login.remember-me': '自动登录',
......
......@@ -106,6 +106,8 @@ export default {
'menu.account.settings': '個人設置',
'menu.account.trigger': '觸發報錯',
'menu.account.logout': '退出登錄',
'app.login.message-invalid-credentials': '賬戶或密碼錯誤(admin/888888)',
'app.login.message-invalid-verification-code': '驗證碼錯誤',
'app.login.tab-login-credentials': '賬戶密碼登錄',
'app.login.tab-login-mobile': '手機號登錄',
'app.login.remember-me': '自動登錄',
......
......@@ -80,7 +80,7 @@ class LoginPage extends Component {
{login.status === 'error' &&
login.type === 'account' &&
!submitting &&
this.renderMessage('账户或密码错误(admin/888888)')}
this.renderMessage(formatMessage({ id: 'app.message-login.invalid-credentials' }))}
<UserName name="userName" placeholder="admin/user" />
<Password
name="password"
......@@ -92,7 +92,7 @@ class LoginPage extends Component {
{login.status === 'error' &&
login.type === 'mobile' &&
!submitting &&
this.renderMessage('验证码错误')}
this.renderMessage(formatMessage({ id: 'app.login.message-invalid-verification-code' }))}
<Mobile name="mobile" />
<Captcha name="captcha" countDown={120} onGetCaptcha={this.onGetCaptcha} />
</Tab>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment