From a452955cc3813a8fac24d41b214885fbc2df6ee9 Mon Sep 17 00:00:00 2001 From: Ross Bulat Date: Tue, 2 Apr 2024 16:23:57 +0700 Subject: [PATCH] add translations --- src/locale/cn/library.json | 1 + src/locale/en/library.json | 1 + src/pages/Pools/Home/Status/NewMember.tsx | 10 +++++----- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/locale/cn/library.json b/src/locale/cn/library.json index 94c1c75dfc..f91f51aac3 100644 --- a/src/locale/cn/library.json +++ b/src/locale/cn/library.json @@ -183,6 +183,7 @@ "signing": "签署中", "submitTransaction": "准备提交交易", "syncing": "正在同步", + "syncingPoolData": "Syncing Pool Data", "syncingPoolList": "同步提名池列表", "tooSmall": "质押金额太少", "top": "首", diff --git a/src/locale/en/library.json b/src/locale/en/library.json index 993640d154..084462da4d 100644 --- a/src/locale/en/library.json +++ b/src/locale/en/library.json @@ -185,6 +185,7 @@ "signing": "Signing", "submitTransaction": "Ready to submit transaction.", "syncing": "Syncing", + "syncingPoolData": "Syncing Pool Data", "syncingPoolList": "Syncing Pool list", "tooSmall": "Bond amount is too small.", "top": "Top", diff --git a/src/pages/Pools/Home/Status/NewMember.tsx b/src/pages/Pools/Home/Status/NewMember.tsx index 982731e26d..042cb55368 100644 --- a/src/pages/Pools/Home/Status/NewMember.tsx +++ b/src/pages/Pools/Home/Status/NewMember.tsx @@ -14,7 +14,7 @@ import { CallToActionLoader } from 'library/Loader/CallToAction'; import { usePoolPerformance } from 'contexts/Pools/PoolPerformance'; export const NewMember = ({ syncing }: NewMemberProps) => { - const { t } = useTranslation('pages'); + const { t } = useTranslation(); const { setOnPoolSetup } = useSetup(); const { setActiveTab } = usePoolsTabs(); const { openCanvas } = useOverlay().canvas; @@ -49,10 +49,10 @@ export const NewMember = ({ syncing }: NewMemberProps) => { disabled={joinButtonDisabled} > {poolRewardPointsFetched !== 'synced' ? ( - 'Syncing Pool Data...' + t('syncingPoolData', { ns: 'library' }) ) : ( <> - {t('pools.joinPool')} + {t('pools.joinPool', { ns: 'pages' })} )} @@ -61,7 +61,7 @@ export const NewMember = ({ syncing }: NewMemberProps) => {