Skip to content

Commit

Permalink
add translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Ross Bulat committed Apr 2, 2024
1 parent 77a9283 commit a452955
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/locale/cn/library.json
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@
"signing": "签署中",
"submitTransaction": "准备提交交易",
"syncing": "正在同步",
"syncingPoolData": "Syncing Pool Data",
"syncingPoolList": "同步提名池列表",
"tooSmall": "质押金额太少",
"top": "",
Expand Down
1 change: 1 addition & 0 deletions src/locale/en/library.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 5 additions & 5 deletions src/pages/Pools/Home/Status/NewMember.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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' })}
<FontAwesomeIcon icon={faUserGroup} />
</>
)}
Expand All @@ -61,7 +61,7 @@ export const NewMember = ({ syncing }: NewMemberProps) => {

<div className="button secondary">
<button onClick={() => setActiveTab(1)}>
{t('pools.browsePools')}
{t('pools.browsePools', { ns: 'pages' })}
<FontAwesomeIcon
icon={faChevronRight}
transform={'shrink-4'}
Expand All @@ -79,7 +79,7 @@ export const NewMember = ({ syncing }: NewMemberProps) => {
onClick={() => setOnPoolSetup(true)}
disabled={createButtonDisabled}
>
{t('pools.createPool')}
{t('pools.createPool', { ns: 'pages' })}
<FontAwesomeIcon
icon={faChevronRight}
transform={'shrink-4'}
Expand Down

0 comments on commit a452955

Please sign in to comment.