From 884c2d9553060c5eac437873e76b50b61683de40 Mon Sep 17 00:00:00 2001 From: papapatrick <109422393+Patrickill@users.noreply.github.com> Date: Mon, 19 Aug 2024 15:15:33 +0800 Subject: [PATCH] fix: i18n display (#2429) --- .../support/wallet/StandardPlanContentList.tsx | 18 +++++++++--------- .../src/pages/chat/components/ChatHeader.tsx | 2 +- projects/app/src/pages/dataset/list/index.tsx | 2 +- .../src/pages/price/components/Standard.tsx | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/projects/app/src/components/support/wallet/StandardPlanContentList.tsx b/projects/app/src/components/support/wallet/StandardPlanContentList.tsx index 7484da242..fd29a3d35 100644 --- a/projects/app/src/components/support/wallet/StandardPlanContentList.tsx +++ b/projects/app/src/components/support/wallet/StandardPlanContentList.tsx @@ -47,7 +47,7 @@ const StandardPlanContentList = ({ - {t('support.wallet.subscription.function.Max members', { + {t('common:support.wallet.subscription.function.Max members', { amount: planContent.maxTeamMember })} @@ -55,7 +55,7 @@ const StandardPlanContentList = ({ - {t('support.wallet.subscription.function.Max app', { + {t('common:support.wallet.subscription.function.Max app', { amount: planContent.maxAppAmount })} @@ -63,7 +63,7 @@ const StandardPlanContentList = ({ - {t('support.wallet.subscription.function.Max dataset', { + {t('common:support.wallet.subscription.function.Max dataset', { amount: planContent.maxDatasetAmount })} @@ -71,7 +71,7 @@ const StandardPlanContentList = ({ - {t('support.wallet.subscription.function.History store', { + {t('common:support.wallet.subscription.function.History store', { amount: planContent.chatHistoryStoreDuration })} @@ -79,7 +79,7 @@ const StandardPlanContentList = ({ - {t('support.wallet.subscription.function.Max dataset size', { + {t('common:support.wallet.subscription.function.Max dataset size', { amount: planContent.maxDatasetSize })} @@ -88,7 +88,7 @@ const StandardPlanContentList = ({ - {t('support.wallet.subscription.function.Points', { + {t('common:support.wallet.subscription.function.Points', { amount: planContent.totalPoints })} @@ -104,7 +104,7 @@ const StandardPlanContentList = ({ - {t('support.wallet.subscription.Training weight', { + {t('common:support.wallet.subscription.Training weight', { weight: planContent.trainingWeight })} @@ -112,13 +112,13 @@ const StandardPlanContentList = ({ {!!planContent.permissionReRank && ( - {t('support.wallet.subscription.rerank')} + {t('common:support.wallet.subscription.rerank')} )} {!!planContent.permissionWebsiteSync && ( - {t('support.wallet.subscription.web_site_sync')} + {t('common:support.wallet.subscription.web_site_sync')} )} diff --git a/projects/app/src/pages/chat/components/ChatHeader.tsx b/projects/app/src/pages/chat/components/ChatHeader.tsx index c053c3cf7..3ce177a49 100644 --- a/projects/app/src/pages/chat/components/ChatHeader.tsx +++ b/projects/app/src/pages/chat/components/ChatHeader.tsx @@ -52,7 +52,7 @@ const ChatHeader = ({ {isPc ? ( <> diff --git a/projects/app/src/pages/dataset/list/index.tsx b/projects/app/src/pages/dataset/list/index.tsx index 2b626e37b..cf2efd48e 100644 --- a/projects/app/src/pages/dataset/list/index.tsx +++ b/projects/app/src/pages/dataset/list/index.tsx @@ -241,7 +241,7 @@ const Dataset = () => { export async function getServerSideProps(content: any) { return { props: { - ...(await serviceSideProps(content, ['dataset'])) + ...(await serviceSideProps(content, ['dataset', 'user'])) } }; } diff --git a/projects/app/src/pages/price/components/Standard.tsx b/projects/app/src/pages/price/components/Standard.tsx index 8969ac6fe..2422ae9fe 100644 --- a/projects/app/src/pages/price/components/Standard.tsx +++ b/projects/app/src/pages/price/components/Standard.tsx @@ -101,7 +101,7 @@ const Standard = ({ {t('common:support.wallet.subscription.Sub plan')} - {t('support.wallet.subscription.Sub plan tip', { + {t('common:support.wallet.subscription.Sub plan tip', { title: feConfigs?.systemTitle })}