From d3ac43ab813d00a2e9082245eb7d65d7c6094b29 Mon Sep 17 00:00:00 2001 From: Nicola Benaglia Date: Thu, 15 May 2025 08:23:40 +0200 Subject: [PATCH] Translations for minting file --- src/components/Minting/Minting.tsx | 57 ++++++++++++++++++++++-------- src/i18n/locales/en/group.json | 14 ++++++-- 2 files changed, 54 insertions(+), 17 deletions(-) diff --git a/src/components/Minting/Minting.tsx b/src/components/Minting/Minting.tsx index 2ee2508..d7a8d88 100644 --- a/src/components/Minting/Minting.tsx +++ b/src/components/Minting/Minting.tsx @@ -740,7 +740,11 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => { {mintingAccounts?.length > 0 && ( - Node's minting accounts // TODO translate + + {t('group:message.generic.node_minting_account', { + postProcess: 'capitalize', + })} + )} { }} > - You currently have a minting key for this account attached to - this node + {t('group:message.generic.node_minting_key', { + postProcess: 'capitalize', + })} )} @@ -775,8 +780,12 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => { }} > - Minting account: {handleNames(acct?.mintingAccount)} + {t('group:message.generic.minting_account', { + postProcess: 'capitalize', + })}{' '} + {handleNames(acct?.mintingAccount)} + @@ -808,13 +819,15 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => { {mintingAccounts?.length > 1 && ( - Only 2 minting keys are allowed per node. Please remove one if you - would like to add a different account. + {t('group:message.generic.minting_keys_per_node_different', { + postProcess: 'capitalize', + })} )} + {!isPartOfMintingGroup && ( { }} > - You are currently not part of the MINTER group + {t('group:message.generic.minter_group', { + postProcess: 'capitalize', + })} + - Visit the Q-Mintership app to apply to be a minter + {t('group:message.generic.mintership_app', { + postProcess: 'capitalize', + })} + + @@ -880,13 +902,16 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => { {!isShowNext && ( - Confirming creation of rewardshare on chain. Please be - patient, this could take up to 90 seconds. + {t('group:message.success.rewardshare_creation', { + postProcess: 'capitalize', + })} )} {isShowNext && ( - Rewardshare confirmed. Please click Next. + {t('group:message.success.rewardshare_confirmed', { + postProcess: 'capitalize', + })} )} @@ -898,21 +923,23 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => { onClick={onOk} autoFocus > - Next + {t('core:page.next', { postProcess: 'capitalize' })} )} + +