Skip to content

Commit

Permalink
local order + translation
Browse files Browse the repository at this point in the history
  • Loading branch information
Ross Bulat committed Apr 2, 2024
1 parent acc8f48 commit 77a9283
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
5 changes: 3 additions & 2 deletions src/locale/cn/library.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "重新加载",
Expand Down Expand Up @@ -153,6 +152,8 @@
"payoutAccount": "收益到账账户",
"payoutAddress": "收益到账地址",
"pending": "待定中",
"permissioned": "Permissioned",
"permissionedSubtitle": "Only you can claim rewards.",
"permissionlessClaimingTurnedOff": "己许可申领己关闭",
"points": "点数",
"pool": "提名池",
Expand Down
5 changes: 3 additions & 2 deletions src/locale/en/library.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions src/pages/Nominate/Active/Status/NewNominator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -42,13 +42,13 @@ export const NewNominator = ({ syncing }: NewNominatorProps) => {
onClick={() => setOnNominatorSetup(true)}
disabled={nominateButtonDisabled}
>
{t('nominate.startNominating')}
{t('nominate.startNominating', { ns: 'pages' })}
<FontAwesomeIcon icon={faChevronCircleRight} />
</button>
</div>
<div className="button secondary">
<button onClick={() => navigate('/validators')}>
Browse Validators
{t('browseValidators', { ns: 'library' })}
<FontAwesomeIcon icon={faChevronRight} transform="shrink-4" />
</button>
</div>
Expand Down

0 comments on commit 77a9283

Please sign in to comment.