From 3489c4d247d94de5af7ededfb3533f409757cedb Mon Sep 17 00:00:00 2001 From: rdmclin2 Date: Thu, 22 Aug 2024 23:24:58 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20chore:=20=E6=95=B4=E7=90=86=20common=20?= =?UTF-8?q?i18n=20=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ChatInfo/ChatList/BackBottom/index.tsx | 2 +- .../chat/ChatInfo/DanceList/Item/index.tsx | 2 +- .../Touch/ActionList/Actions/Play.tsx | 2 +- src/features/ChatItem/Actions/System.tsx | 2 +- src/features/ChatItem/Actions/index.tsx | 2 +- src/hooks/useChatListActionsBar.tsx | 2 +- src/hooks/useDownloadAgent.tsx | 4 +-- src/locales/default/chat.ts | 12 +++++++ src/locales/default/common.ts | 35 +++++++------------ src/locales/default/dance.ts | 4 +++ .../Market/MarketInfo/actions/Subscribe.tsx | 8 ++--- .../Market/MarketInfo/actions/UnSubscribe.tsx | 6 ++-- 12 files changed, 43 insertions(+), 38 deletions(-) diff --git a/src/app/chat/ChatInfo/ChatList/BackBottom/index.tsx b/src/app/chat/ChatInfo/ChatList/BackBottom/index.tsx index 9918ff90..46c6abb3 100644 --- a/src/app/chat/ChatInfo/ChatList/BackBottom/index.tsx +++ b/src/app/chat/ChatInfo/ChatList/BackBottom/index.tsx @@ -13,7 +13,7 @@ export interface BackBottomProps { const BackBottom = memo(({ visible, onScrollToBottom }) => { const { styles, cx } = useStyles(); - const { t } = useTranslation('common'); + const { t } = useTranslation('chat'); return ( ); diff --git a/src/panels/MarketPanel/Market/MarketInfo/actions/UnSubscribe.tsx b/src/panels/MarketPanel/Market/MarketInfo/actions/UnSubscribe.tsx index ad6dacf4..db2b71f2 100644 --- a/src/panels/MarketPanel/Market/MarketInfo/actions/UnSubscribe.tsx +++ b/src/panels/MarketPanel/Market/MarketInfo/actions/UnSubscribe.tsx @@ -32,11 +32,11 @@ const UnSubscribe = memo((props: UnSubscribeButtonProps) => { await removeLocalAgent(agent.agentId); removeSessionByAgentId(agent.agentId); setLoading(false); - message.success(t('actions.unsubscribeSuccess', { ns: 'common' })); + message.success(t('subscribe.success', { ns: 'common' })); }} - title={t('actions.unsubscribe', { ns: 'common' }) + '?'} + title={t('subscribe.undo', { ns: 'common' }) + '?'} > - + ); });