Commit 0c2a70f1 authored by kennylbj's avatar kennylbj Committed by 陈帅

Internationalize avatar title (#2531)

* Internationalize avatar title

* avatar -> Avatar
parent 66e238ee
...@@ -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',
......
...@@ -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',
......
...@@ -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': '昵称',
......
...@@ -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': '昵稱',
......
...@@ -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>
......
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