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
0c2a70f1
Commit
0c2a70f1
authored
Oct 12, 2018
by
kennylbj
Committed by
陈帅
Oct 12, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Internationalize avatar title (#2531)
* Internationalize avatar title * avatar -> Avatar
parent
66e238ee
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
6 deletions
+12
-6
src/locales/en-US.js
src/locales/en-US.js
+2
-1
src/locales/pt-BR.js
src/locales/pt-BR.js
+2
-1
src/locales/zh-CN.js
src/locales/zh-CN.js
+2
-1
src/locales/zh-TW.js
src/locales/zh-TW.js
+2
-1
src/pages/Account/Settings/BaseView.js
src/pages/Account/Settings/BaseView.js
+4
-2
No files found.
src/locales/en-US.js
View file @
0c2a70f1
...
@@ -181,7 +181,8 @@ export default {
...
@@ -181,7 +181,8 @@ export default {
'
app.settings.menuMap.security
'
:
'
Security Settings
'
,
'
app.settings.menuMap.security
'
:
'
Security Settings
'
,
'
app.settings.menuMap.binding
'
:
'
Account Binding
'
,
'
app.settings.menuMap.binding
'
:
'
Account Binding
'
,
'
app.settings.menuMap.notification
'
:
'
New Message Notification
'
,
'
app.settings.menuMap.notification
'
:
'
New Message Notification
'
,
'
app.settings.basic.avatar
'
:
'
Change avatar
'
,
'
app.settings.basic.avatar
'
:
'
Avatar
'
,
'
app.settings.basic.change-avatar
'
:
'
Change avatar
'
,
'
app.settings.basic.email
'
:
'
Email
'
,
'
app.settings.basic.email
'
:
'
Email
'
,
'
app.settings.basic.email-message
'
:
'
Please input your email!
'
,
'
app.settings.basic.email-message
'
:
'
Please input your email!
'
,
'
app.settings.basic.nickname
'
:
'
Nickname
'
,
'
app.settings.basic.nickname
'
:
'
Nickname
'
,
...
...
src/locales/pt-BR.js
View file @
0c2a70f1
...
@@ -129,7 +129,8 @@ export default {
...
@@ -129,7 +129,8 @@ export default {
'
app.settings.menuMap.security
'
:
'
Configurações de Segurança
'
,
'
app.settings.menuMap.security
'
:
'
Configurações de Segurança
'
,
'
app.settings.menuMap.binding
'
:
'
Vinculação de Conta
'
,
'
app.settings.menuMap.binding
'
:
'
Vinculação de Conta
'
,
'
app.settings.menuMap.notification
'
:
'
Mensagens de Notificação
'
,
'
app.settings.menuMap.notification
'
:
'
Mensagens de Notificação
'
,
'
app.settings.basic.avatar
'
:
'
Alterar avatar
'
,
'
app.settings.basic.avatar
'
:
'
Avatar
'
,
'
app.settings.basic.change-avatar
'
:
'
Alterar avatar
'
,
'
app.settings.basic.email
'
:
'
Email
'
,
'
app.settings.basic.email
'
:
'
Email
'
,
'
app.settings.basic.email-message
'
:
'
Por favor insira seu email!
'
,
'
app.settings.basic.email-message
'
:
'
Por favor insira seu email!
'
,
'
app.settings.basic.nickname
'
:
'
Nome de usuário
'
,
'
app.settings.basic.nickname
'
:
'
Nome de usuário
'
,
...
...
src/locales/zh-CN.js
View file @
0c2a70f1
...
@@ -179,7 +179,8 @@ export default {
...
@@ -179,7 +179,8 @@ export default {
'
app.settings.menuMap.security
'
:
'
安全设置
'
,
'
app.settings.menuMap.security
'
:
'
安全设置
'
,
'
app.settings.menuMap.binding
'
:
'
账号绑定
'
,
'
app.settings.menuMap.binding
'
:
'
账号绑定
'
,
'
app.settings.menuMap.notification
'
:
'
新消息通知
'
,
'
app.settings.menuMap.notification
'
:
'
新消息通知
'
,
'
app.settings.basic.avatar
'
:
'
更换头像
'
,
'
app.settings.basic.avatar
'
:
'
头像
'
,
'
app.settings.basic.change-avatar
'
:
'
更换头像
'
,
'
app.settings.basic.email
'
:
'
邮箱
'
,
'
app.settings.basic.email
'
:
'
邮箱
'
,
'
app.settings.basic.email-message
'
:
'
请输入您的邮箱!
'
,
'
app.settings.basic.email-message
'
:
'
请输入您的邮箱!
'
,
'
app.settings.basic.nickname
'
:
'
昵称
'
,
'
app.settings.basic.nickname
'
:
'
昵称
'
,
...
...
src/locales/zh-TW.js
View file @
0c2a70f1
...
@@ -179,7 +179,8 @@ export default {
...
@@ -179,7 +179,8 @@ export default {
'
app.settings.menuMap.security
'
:
'
安全設置
'
,
'
app.settings.menuMap.security
'
:
'
安全設置
'
,
'
app.settings.menuMap.binding
'
:
'
賬號綁定
'
,
'
app.settings.menuMap.binding
'
:
'
賬號綁定
'
,
'
app.settings.menuMap.notification
'
:
'
新消息通知
'
,
'
app.settings.menuMap.notification
'
:
'
新消息通知
'
,
'
app.settings.basic.avatar
'
:
'
更換頭像
'
,
'
app.settings.basic.avatar
'
:
'
頭像
'
,
'
app.settings.basic.change-avatar
'
:
'
更換頭像
'
,
'
app.settings.basic.email
'
:
'
郵箱
'
,
'
app.settings.basic.email
'
:
'
郵箱
'
,
'
app.settings.basic.email-message
'
:
'
請輸入您的郵箱!
'
,
'
app.settings.basic.email-message
'
:
'
請輸入您的郵箱!
'
,
'
app.settings.basic.nickname
'
:
'
昵稱
'
,
'
app.settings.basic.nickname
'
:
'
昵稱
'
,
...
...
src/pages/Account/Settings/BaseView.js
View file @
0c2a70f1
...
@@ -13,14 +13,16 @@ const { Option } = Select;
...
@@ -13,14 +13,16 @@ const { Option } = Select;
// 头像组件 方便以后独立,增加裁剪之类的功能
// 头像组件 方便以后独立,增加裁剪之类的功能
const
AvatarView
=
({
avatar
})
=>
(
const
AvatarView
=
({
avatar
})
=>
(
<
Fragment
>
<
Fragment
>
<
div
className
=
{
styles
.
avatar_title
}
>
Avatar
<
/div
>
<
div
className
=
{
styles
.
avatar_title
}
>
<
FormattedMessage
id
=
"
app.settings.basic.avatar
"
defaultMessage
=
"
Avatar
"
/>
<
/div
>
<
div
className
=
{
styles
.
avatar
}
>
<
div
className
=
{
styles
.
avatar
}
>
<
img
src
=
{
avatar
}
alt
=
"
avatar
"
/>
<
img
src
=
{
avatar
}
alt
=
"
avatar
"
/>
<
/div
>
<
/div
>
<
Upload
fileList
=
{[]}
>
<
Upload
fileList
=
{[]}
>
<
div
className
=
{
styles
.
button_view
}
>
<
div
className
=
{
styles
.
button_view
}
>
<
Button
icon
=
"
upload
"
>
<
Button
icon
=
"
upload
"
>
<
FormattedMessage
id
=
"
app.settings.basic.avatar
"
defaultMessage
=
"
Change avatar
"
/>
<
FormattedMessage
id
=
"
app.settings.basic.
change-
avatar
"
defaultMessage
=
"
Change avatar
"
/>
<
/Button
>
<
/Button
>
<
/div
>
<
/div
>
<
/Upload
>
<
/Upload
>
...
...
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