From 4b5fe620144a040d58aa256f36f158b07375e1a9 Mon Sep 17 00:00:00 2001 From: superlbr Date: Thu, 23 Dec 2021 20:09:35 +0800 Subject: [PATCH] fix i18n: t not work use Trans instead --- src/pages/login/index.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/pages/login/index.js b/src/pages/login/index.js index f6c5e0b..0b066aa 100644 --- a/src/pages/login/index.js +++ b/src/pages/login/index.js @@ -4,8 +4,7 @@ import { connect } from 'umi' import { Button, Row, Input, Form } from 'antd' import { GlobalFooter } from 'components' import { GithubOutlined } from '@ant-design/icons' -import { t } from "@lingui/macro" -import { Trans } from "@lingui/macro" +import { t, Trans } from "@lingui/macro" import { setLocale } from 'utils' import config from 'utils/config' @@ -60,9 +59,8 @@ class Login extends PureComponent { - ( + )} />