Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ant-design-pro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
ant-design-pro
Commits
e0882a7c
Commit
e0882a7c
authored
Oct 09, 2018
by
michael
Committed by
陈帅
Oct 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Internationalization Login error message(#2507)
parent
02398487
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
2 deletions
+10
-2
src/locales/en-US.js
src/locales/en-US.js
+2
-0
src/locales/pt-BR.js
src/locales/pt-BR.js
+2
-0
src/locales/zh-CN.js
src/locales/zh-CN.js
+2
-0
src/locales/zh-TW.js
src/locales/zh-TW.js
+2
-0
src/pages/User/Login.js
src/pages/User/Login.js
+2
-2
No files found.
src/locales/en-US.js
View file @
e0882a7c
...
...
@@ -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
'
,
...
...
src/locales/pt-BR.js
View file @
e0882a7c
...
...
@@ -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
'
,
...
...
src/locales/zh-CN.js
View file @
e0882a7c
...
...
@@ -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
'
:
'
自动登录
'
,
...
...
src/locales/zh-TW.js
View file @
e0882a7c
...
...
@@ -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
'
:
'
自動登錄
'
,
...
...
src/pages/User/Login.js
View file @
e0882a7c
...
...
@@ -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
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment