Commit 0a87af2a authored by David Z. Han's avatar David Z. Han

Fix a few typos

parent b042b097
...@@ -5,7 +5,7 @@ import classNames from 'classnames'; ...@@ -5,7 +5,7 @@ import classNames from 'classnames';
import styles from './index.less'; import styles from './index.less';
export default class SelectLang extends PureComponent { export default class SelectLang extends PureComponent {
changLang = ({ key }) => { changeLang = ({ key }) => {
setLocale(key); setLocale(key);
}; };
...@@ -13,7 +13,7 @@ export default class SelectLang extends PureComponent { ...@@ -13,7 +13,7 @@ export default class SelectLang extends PureComponent {
const { className } = this.props; const { className } = this.props;
const selectedLang = getLocale(); const selectedLang = getLocale();
const langMenu = ( const langMenu = (
<Menu className={styles.menu} selectedKeys={[selectedLang]} onClick={this.changLang}> <Menu className={styles.menu} selectedKeys={[selectedLang]} onClick={this.changeLang}>
<Menu.Item key="zh-CN"> <Menu.Item key="zh-CN">
<span role="img" aria-label="简体中文"> <span role="img" aria-label="简体中文">
🇨🇳 🇨🇳
......
...@@ -115,7 +115,7 @@ export default { ...@@ -115,7 +115,7 @@ export default {
'app.login.login': 'Login', 'app.login.login': 'Login',
'app.register.register': 'Register', 'app.register.register': 'Register',
'app.register.get-verification-code': 'Get code', '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.msg': 'Account:registered at {email}',
'app.register-result.activation-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.', '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 { ...@@ -125,13 +125,13 @@ export default {
'app.analysis.test': 'Gongzhuan No.{no} shop', 'app.analysis.test': 'Gongzhuan No.{no} shop',
'app.analysis.introduce': 'Introduce', 'app.analysis.introduce': 'Introduce',
'app.analysis.total-sales': 'Total Sales', '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': 'Visits',
'app.analysis.visits-trend': 'Visits Trend', 'app.analysis.visits-trend': 'Visits Trend',
'app.analysis.visits-ranking': 'Visits Ranking', 'app.analysis.visits-ranking': 'Visits Ranking',
'app.analysis.day-visits': 'Day Visits', 'app.analysis.day-visits': 'Daily Visits',
'app.analysis.week': 'Week Ratio', 'app.analysis.week': 'WoW Change',
'app.analysis.day': 'Day Ratio', 'app.analysis.day': 'DoD Change',
'app.analysis.payments': 'Payments', 'app.analysis.payments': 'Payments',
'app.analysis.conversion-rate': 'Conversion Rate', 'app.analysis.conversion-rate': 'Conversion Rate',
'app.analysis.operational-effect': 'Operational Effect', 'app.analysis.operational-effect': 'Operational Effect',
......
...@@ -71,7 +71,8 @@ export default { ...@@ -71,7 +71,8 @@ export default {
'menu.account.settings': 'Configurar Conta', 'menu.account.settings': 'Configurar Conta',
'menu.account.trigger': 'Disparar Erro', 'menu.account.trigger': 'Disparar Erro',
'menu.account.logout': 'Sair', '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.message-invalid-verification-code': 'Código de verificação inválido',
'app.login.tab-login-credentials': 'Credenciais', 'app.login.tab-login-credentials': 'Credenciais',
'app.login.tab-login-mobile': 'Telefone', 'app.login.tab-login-mobile': 'Telefone',
...@@ -82,7 +83,7 @@ export default { ...@@ -82,7 +83,7 @@ export default {
'app.login.login': 'Login', 'app.login.login': 'Login',
'app.register.register': 'Cadastro', 'app.register.register': 'Cadastro',
'app.register.get-verification-code': 'Recuperar código', '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.msg': 'Conta:registrada em {email}',
'app.register-result.activation-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.', '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.',
......
...@@ -113,7 +113,7 @@ export default { ...@@ -113,7 +113,7 @@ export default {
'app.login.login': '登录', 'app.login.login': '登录',
'app.register.register': '注册', 'app.register.register': '注册',
'app.register.get-verification-code': '获取验证码', 'app.register.get-verification-code': '获取验证码',
'app.register.sing-in': '使用已有账户登录', 'app.register.sign-in': '使用已有账户登录',
'app.register-result.msg': '你的账户:{email} 注册成功', 'app.register-result.msg': '你的账户:{email} 注册成功',
'app.register-result.activation-email': 'app.register-result.activation-email':
'激活邮件已发送到你的邮箱中,邮件有效期为24小时。请及时登录邮箱,点击邮件中的链接激活帐户。', '激活邮件已发送到你的邮箱中,邮件有效期为24小时。请及时登录邮箱,点击邮件中的链接激活帐户。',
......
...@@ -113,7 +113,7 @@ export default { ...@@ -113,7 +113,7 @@ export default {
'app.login.login': '登錄', 'app.login.login': '登錄',
'app.register.register': '註冊', 'app.register.register': '註冊',
'app.register.get-verification-code': '獲取驗證碼', 'app.register.get-verification-code': '獲取驗證碼',
'app.register.sing-in': '使用已有賬戶登錄', 'app.register.sign-in': '使用已有賬戶登錄',
'app.register-result.msg': '妳的賬戶:{email} 註冊成功', 'app.register-result.msg': '妳的賬戶:{email} 註冊成功',
'app.register-result.activation-email': 'app.register-result.activation-email':
'激活郵件已發送到妳的郵箱中,郵件有效期為24小時。請及時登錄郵箱,點擊郵件中的鏈接激活帳戶。', '激活郵件已發送到妳的郵箱中,郵件有效期為24小時。請及時登錄郵箱,點擊郵件中的鏈接激活帳戶。',
......
...@@ -292,7 +292,7 @@ class Analysis extends Component { ...@@ -292,7 +292,7 @@ class Analysis extends Component {
action={ action={
<Tooltip <Tooltip
title={ title={
<FormattedMessage id="app.analysis.introduce" defaultMessage="introduce" /> <FormattedMessage id="app.analysis.introduce" defaultMessage="Introduce" />
} }
> >
<Icon type="info-circle-o" /> <Icon type="info-circle-o" />
...@@ -303,7 +303,7 @@ class Analysis extends Component { ...@@ -303,7 +303,7 @@ class Analysis extends Component {
footer={ footer={
<Field <Field
label={ label={
<FormattedMessage id="app.analysis.day-sales" defaultMessage="Day Sales" /> <FormattedMessage id="app.analysis.day-sales" defaultMessage="Daily Sales" />
} }
value={`¥${numeral(12423).format('0,0')}`} value={`¥${numeral(12423).format('0,0')}`}
/> />
...@@ -320,15 +320,16 @@ class Analysis extends Component { ...@@ -320,15 +320,16 @@ class Analysis extends Component {
</Trend> </Trend>
</ChartCard> </ChartCard>
</Col> </Col>
<Col {...topColResponsiveProps}> <Col {...topColResponsiveProps}>
<ChartCard <ChartCard
bordered={false} bordered={false}
loading={loading} loading={loading}
title={<FormattedMessage id="app.analysis.visits" defaultMessage="visits" />} title={<FormattedMessage id="app.analysis.visits" defaultMessage="Visits" />}
action={ action={
<Tooltip <Tooltip
title={ title={
<FormattedMessage id="app.analysis.introduce" defaultMessage="introduce" /> <FormattedMessage id="app.analysis.introduce" defaultMessage="Introduce" />
} }
> >
<Icon type="info-circle-o" /> <Icon type="info-circle-o" />
...@@ -338,7 +339,7 @@ class Analysis extends Component { ...@@ -338,7 +339,7 @@ class Analysis extends Component {
footer={ footer={
<Field <Field
label={ label={
<FormattedMessage id="app.analysis.day-visits" defaultMessage="Day Visits" /> <FormattedMessage id="app.analysis.day-visits" defaultMessage="Daily Visits" />
} }
value={numeral(1234).format('0,0')} value={numeral(1234).format('0,0')}
/> />
...@@ -392,7 +393,7 @@ class Analysis extends Component { ...@@ -392,7 +393,7 @@ class Analysis extends Component {
action={ action={
<Tooltip <Tooltip
title={ title={
<FormattedMessage id="app.analysis.introduce" defaultMessage="introduce" /> <FormattedMessage id="app.analysis.introduce" defaultMessage="Introduce" />
} }
> >
<Icon type="info-circle-o" /> <Icon type="info-circle-o" />
...@@ -402,11 +403,11 @@ class Analysis extends Component { ...@@ -402,11 +403,11 @@ class Analysis extends Component {
footer={ footer={
<div style={{ whiteSpace: 'nowrap', overflow: 'hidden' }}> <div style={{ whiteSpace: 'nowrap', overflow: 'hidden' }}>
<Trend flag="up" style={{ marginRight: 16 }}> <Trend flag="up" style={{ marginRight: 16 }}>
<FormattedMessage id="app.analysis.week" defaultMessage="Weekly changes" /> <FormattedMessage id="app.analysis.week" defaultMessage="Weekly Changes" />
<span className={styles.trendText}>12%</span> <span className={styles.trendText}>12%</span>
</Trend> </Trend>
<Trend flag="down"> <Trend flag="down">
<FormattedMessage id="app.analysis.day" defaultMessage="Weekly changes" /> <FormattedMessage id="app.analysis.day" defaultMessage="Weekly Changes" />
<span className={styles.trendText}>11%</span> <span className={styles.trendText}>11%</span>
</Trend> </Trend>
</div> </div>
......
...@@ -322,7 +322,7 @@ class Register extends Component { ...@@ -322,7 +322,7 @@ class Register extends Component {
<FormattedMessage id="app.register.register" /> <FormattedMessage id="app.register.register" />
</Button> </Button>
<Link className={styles.login} to="/User/Login"> <Link className={styles.login} to="/User/Login">
<FormattedMessage id="app.register.sing-in" /> <FormattedMessage id="app.register.sign-in" />
</Link> </Link>
</FormItem> </FormItem>
</Form> </Form>
......
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