From 0c2a70f103af9439319985288e3308e4a323729c Mon Sep 17 00:00:00 2001 From: kennylbj <632786081@qq.com> Date: Fri, 12 Oct 2018 17:51:56 +0800 Subject: [PATCH] Internationalize avatar title (#2531) * Internationalize avatar title * avatar -> Avatar --- src/locales/en-US.js | 3 ++- src/locales/pt-BR.js | 3 ++- src/locales/zh-CN.js | 3 ++- src/locales/zh-TW.js | 3 ++- src/pages/Account/Settings/BaseView.js | 6 ++++-- 5 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/locales/en-US.js b/src/locales/en-US.js index 802cf3cf..a9075642 100644 --- a/src/locales/en-US.js +++ b/src/locales/en-US.js @@ -181,7 +181,8 @@ export default { 'app.settings.menuMap.security': 'Security Settings', 'app.settings.menuMap.binding': 'Account Binding', '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-message': 'Please input your email!', 'app.settings.basic.nickname': 'Nickname', diff --git a/src/locales/pt-BR.js b/src/locales/pt-BR.js index df223dbc..1829f9f3 100644 --- a/src/locales/pt-BR.js +++ b/src/locales/pt-BR.js @@ -129,7 +129,8 @@ export default { 'app.settings.menuMap.security': 'Configurações de Segurança', 'app.settings.menuMap.binding': 'Vinculação de Conta', '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-message': 'Por favor insira seu email!', 'app.settings.basic.nickname': 'Nome de usuário', diff --git a/src/locales/zh-CN.js b/src/locales/zh-CN.js index 9e1df4b4..83c158e6 100644 --- a/src/locales/zh-CN.js +++ b/src/locales/zh-CN.js @@ -179,7 +179,8 @@ export default { 'app.settings.menuMap.security': '安全设置', 'app.settings.menuMap.binding': '账号绑定', '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-message': '请输入您的邮箱!', 'app.settings.basic.nickname': '昵称', diff --git a/src/locales/zh-TW.js b/src/locales/zh-TW.js index 40597020..415902c1 100644 --- a/src/locales/zh-TW.js +++ b/src/locales/zh-TW.js @@ -179,7 +179,8 @@ export default { 'app.settings.menuMap.security': '安全設置', 'app.settings.menuMap.binding': '賬號綁定', '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-message': '請輸入您的郵箱!', 'app.settings.basic.nickname': '昵稱', diff --git a/src/pages/Account/Settings/BaseView.js b/src/pages/Account/Settings/BaseView.js index 39e90766..388a8358 100644 --- a/src/pages/Account/Settings/BaseView.js +++ b/src/pages/Account/Settings/BaseView.js @@ -13,14 +13,16 @@ const { Option } = Select; // 头像组件 方便以后独立,增加裁剪之类的功能 const AvatarView = ({ avatar }) => ( -
Avatar
+
+ +
avatar
-- GitLab