From 0a87af2ae2968e86e94e74f5f1d16cf351d1eeed Mon Sep 17 00:00:00 2001 From: "David Z. Han" Date: Sat, 3 Nov 2018 09:31:41 -0400 Subject: [PATCH] Fix a few typos --- src/components/SelectLang/index.js | 4 ++-- src/locales/en-US.js | 10 +++++----- src/locales/pt-BR.js | 5 +++-- src/locales/zh-CN.js | 2 +- src/locales/zh-TW.js | 2 +- src/pages/Dashboard/Analysis.js | 17 +++++++++-------- src/pages/User/Register.js | 2 +- 7 files changed, 22 insertions(+), 20 deletions(-) diff --git a/src/components/SelectLang/index.js b/src/components/SelectLang/index.js index c562f99c..ee91cd64 100644 --- a/src/components/SelectLang/index.js +++ b/src/components/SelectLang/index.js @@ -5,7 +5,7 @@ import classNames from 'classnames'; import styles from './index.less'; export default class SelectLang extends PureComponent { - changLang = ({ key }) => { + changeLang = ({ key }) => { setLocale(key); }; @@ -13,7 +13,7 @@ export default class SelectLang extends PureComponent { const { className } = this.props; const selectedLang = getLocale(); const langMenu = ( - + 🇨🇳 diff --git a/src/locales/en-US.js b/src/locales/en-US.js index 3bb7a89b..9e4eb346 100644 --- a/src/locales/en-US.js +++ b/src/locales/en-US.js @@ -115,7 +115,7 @@ export default { 'app.login.login': 'Login', 'app.register.register': 'Register', 'app.register.get-verification-code': 'Get code', - 'app.register.sing-in': 'Already have an account?', + 'app.register.sign-in': 'Already have an account?', 'app.register-result.msg': 'Account:registered at {email}', 'app.register-result.activation-email': 'The activation email has been sent to your email address and is valid for 24 hours. Please log in to the email in time and click on the link in the email to activate the account.', @@ -125,13 +125,13 @@ export default { 'app.analysis.test': 'Gongzhuan No.{no} shop', 'app.analysis.introduce': 'Introduce', 'app.analysis.total-sales': 'Total Sales', - 'app.analysis.day-sales': 'Day Sales', + 'app.analysis.day-sales': 'Daily Sales', 'app.analysis.visits': 'Visits', 'app.analysis.visits-trend': 'Visits Trend', 'app.analysis.visits-ranking': 'Visits Ranking', - 'app.analysis.day-visits': 'Day Visits', - 'app.analysis.week': 'Week Ratio', - 'app.analysis.day': 'Day Ratio', + 'app.analysis.day-visits': 'Daily Visits', + 'app.analysis.week': 'WoW Change', + 'app.analysis.day': 'DoD Change', 'app.analysis.payments': 'Payments', 'app.analysis.conversion-rate': 'Conversion Rate', 'app.analysis.operational-effect': 'Operational Effect', diff --git a/src/locales/pt-BR.js b/src/locales/pt-BR.js index 241600f5..8e6627ca 100644 --- a/src/locales/pt-BR.js +++ b/src/locales/pt-BR.js @@ -71,7 +71,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/ant.design)', + 'app.login.message-invalid-credentials': + 'Nome de usuário ou senha inválidosd(admin/ant.design)', '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', @@ -82,7 +83,7 @@ export default { 'app.login.login': 'Login', 'app.register.register': 'Cadastro', 'app.register.get-verification-code': 'Recuperar código', - 'app.register.sing-in': 'Já tem uma conta?', + 'app.register.sign-in': 'Já tem uma conta?', 'app.register-result.msg': 'Conta:registrada em {email}', 'app.register-result.activation-email': 'Um email de ativação foi enviado para o seu email e é válido por 24 horas. Por favor entre no seu email e clique no link de ativação da conta.', diff --git a/src/locales/zh-CN.js b/src/locales/zh-CN.js index 376d3cb9..1b16e5ff 100644 --- a/src/locales/zh-CN.js +++ b/src/locales/zh-CN.js @@ -113,7 +113,7 @@ export default { 'app.login.login': '登录', 'app.register.register': '注册', 'app.register.get-verification-code': '获取验证码', - 'app.register.sing-in': '使用已有账户登录', + 'app.register.sign-in': '使用已有账户登录', 'app.register-result.msg': '你的账户:{email} 注册成功', 'app.register-result.activation-email': '激活邮件已发送到你的邮箱中,邮件有效期为24小时。请及时登录邮箱,点击邮件中的链接激活帐户。', diff --git a/src/locales/zh-TW.js b/src/locales/zh-TW.js index 56cef40d..b919c44c 100644 --- a/src/locales/zh-TW.js +++ b/src/locales/zh-TW.js @@ -113,7 +113,7 @@ export default { 'app.login.login': '登錄', 'app.register.register': '註冊', 'app.register.get-verification-code': '獲取驗證碼', - 'app.register.sing-in': '使用已有賬戶登錄', + 'app.register.sign-in': '使用已有賬戶登錄', 'app.register-result.msg': '妳的賬戶:{email} 註冊成功', 'app.register-result.activation-email': '激活郵件已發送到妳的郵箱中,郵件有效期為24小時。請及時登錄郵箱,點擊郵件中的鏈接激活帳戶。', diff --git a/src/pages/Dashboard/Analysis.js b/src/pages/Dashboard/Analysis.js index 03944e5c..0c4a549a 100644 --- a/src/pages/Dashboard/Analysis.js +++ b/src/pages/Dashboard/Analysis.js @@ -292,7 +292,7 @@ class Analysis extends Component { action={ + } > @@ -303,7 +303,7 @@ class Analysis extends Component { footer={ + } value={`¥${numeral(12423).format('0,0')}`} /> @@ -320,15 +320,16 @@ class Analysis extends Component { + } + title={} action={ + } > @@ -338,7 +339,7 @@ class Analysis extends Component { footer={ + } value={numeral(1234).format('0,0')} /> @@ -392,7 +393,7 @@ class Analysis extends Component { action={ + } > @@ -402,11 +403,11 @@ class Analysis extends Component { footer={
- + 12% - + 11%
diff --git a/src/pages/User/Register.js b/src/pages/User/Register.js index 15ef53f6..ea4565c2 100644 --- a/src/pages/User/Register.js +++ b/src/pages/User/Register.js @@ -322,7 +322,7 @@ class Register extends Component { - + -- GitLab