From 77a9283ef3c39571cbd1284dd274e5d0d71c6df1 Mon Sep 17 00:00:00 2001 From: Ross Bulat Date: Tue, 2 Apr 2024 16:20:27 +0700 Subject: [PATCH] local order + translation --- src/locale/cn/library.json | 5 +++-- src/locale/en/library.json | 5 +++-- src/pages/Nominate/Active/Status/NewNominator.tsx | 6 +++--- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/locale/cn/library.json b/src/locale/cn/library.json index aecdb13a23..94c1c75dfc 100644 --- a/src/locale/cn/library.json +++ b/src/locale/cn/library.json @@ -37,14 +37,13 @@ "bondAmountDecimals": "质押金额最多只能有 {{units}}个小数位", "bondDecimalsError": "质押金额能最多有 {{units}} 位点数", "bonded": "己质押", + "browseValidators": "Browse Validators", "cancel": "取消", "cancelled": "已取消", "chooseAnotherPool": "Choose Another Pool", "chooseValidators": "最多能选择 {{maxNominations}} 个验证人。", "chooseValidators2": "自动生成提名或手动加入提名", "claimSetting": "Claim Setting", - "permissioned": "Permissioned", - "permissionedSubtitle": "Only you can claim rewards.", "clear": "清除", "clearSelection": "清除选择", "clickToReload": "重新加载", @@ -153,6 +152,8 @@ "payoutAccount": "收益到账账户", "payoutAddress": "收益到账地址", "pending": "待定中", + "permissioned": "Permissioned", + "permissionedSubtitle": "Only you can claim rewards.", "permissionlessClaimingTurnedOff": "己许可申领己关闭", "points": "点数", "pool": "提名池", diff --git a/src/locale/en/library.json b/src/locale/en/library.json index d2f4940d73..993640d154 100644 --- a/src/locale/en/library.json +++ b/src/locale/en/library.json @@ -37,6 +37,7 @@ "bondAmountDecimals": "Bond amount can only have at most {{units}} decimals.", "bondDecimalsError": "Bond amount can have at most {{units}} decimals.", "bonded": "Bonded", + "browseValidators": "Browse Validators", "cancel": "Cancel", "cancelled": "Cancelled", "chooseAnotherPool": "Choose Another Pool", @@ -45,8 +46,6 @@ "claimSetting": "Claim Setting", "clear": "Clear", "clearSelection": "clear selection", - "permissioned": "Permissioned", - "permissionedSubtitle": "Only you can claim rewards.", "clickToReload": "Click to reload", "complete": "Complete", "confirm": "Confirm", @@ -155,6 +154,8 @@ "payoutAccount": "Payout Account", "payoutAddress": "Payout Adddress", "pending": "Pending", + "permissioned": "Permissioned", + "permissionedSubtitle": "Only you can claim rewards.", "permissionlessClaimingTurnedOff": "Permissionless claiming is turned off.", "points": "Points", "pool": "Pool", diff --git a/src/pages/Nominate/Active/Status/NewNominator.tsx b/src/pages/Nominate/Active/Status/NewNominator.tsx index 8ec3c7a7de..90384c193f 100644 --- a/src/pages/Nominate/Active/Status/NewNominator.tsx +++ b/src/pages/Nominate/Active/Status/NewNominator.tsx @@ -17,7 +17,7 @@ import { CallToActionLoader } from 'library/Loader/CallToAction'; import { useImportedAccounts } from 'contexts/Connect/ImportedAccounts'; export const NewNominator = ({ syncing }: NewNominatorProps) => { - const { t } = useTranslation('pages'); + const { t } = useTranslation(); const { isReady } = useApi(); const navigate = useNavigate(); const { setOnNominatorSetup } = useSetup(); @@ -42,13 +42,13 @@ export const NewNominator = ({ syncing }: NewNominatorProps) => { onClick={() => setOnNominatorSetup(true)} disabled={nominateButtonDisabled} > - {t('nominate.startNominating')} + {t('nominate.startNominating', { ns: 'pages' })}