diff --git a/src/locales/en-US.js b/src/locales/en-US.js index 976debe7fca483d5eebca421f8e946a848711ff8..802cf3cfa81be2f95ac17b1ff2bf35ed4f4a74c8 100644 --- a/src/locales/en-US.js +++ b/src/locales/en-US.js @@ -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', diff --git a/src/locales/pt-BR.js b/src/locales/pt-BR.js index 26abcc7cb5d113a0c08eb45956c87e2e3823b4d2..df223dbc53fc455fe446863ab4c707a4973374ba 100644 --- a/src/locales/pt-BR.js +++ b/src/locales/pt-BR.js @@ -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', diff --git a/src/locales/zh-CN.js b/src/locales/zh-CN.js index 0af5424855afb31cd0d26385358bf1bef226efb8..9e1df4b407c3074c7217bed74ed7b407cc4d9e4a 100644 --- a/src/locales/zh-CN.js +++ b/src/locales/zh-CN.js @@ -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': '自动登录', diff --git a/src/locales/zh-TW.js b/src/locales/zh-TW.js index e7def9d72df214b3c33efa7bc5fd32bf300b1535..4059702008743d576a3c4c3946a9a5dbf6ce151c 100644 --- a/src/locales/zh-TW.js +++ b/src/locales/zh-TW.js @@ -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': '自動登錄', diff --git a/src/pages/User/Login.js b/src/pages/User/Login.js index 6fa13b35d7adf47e214ff1e84ed57e62b4ccf273..3dd60797b4a48e9927baeba1e6960cdc7707aa8c 100644 --- a/src/pages/User/Login.js +++ b/src/pages/User/Login.js @@ -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' }))}