Translations for minting file

This commit is contained in:
Nicola Benaglia 2025-05-15 08:23:40 +02:00
parent c5ff69b2f7
commit d3ac43ab81
2 changed files with 54 additions and 17 deletions

View File

@ -740,7 +740,11 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
<Spacer height="10px" /> <Spacer height="10px" />
{mintingAccounts?.length > 0 && ( {mintingAccounts?.length > 0 && (
<Typography>Node's minting accounts</Typography> // TODO translate <Typography>
{t('group:message.generic.node_minting_account', {
postProcess: 'capitalize',
})}
</Typography>
)} )}
<Card <Card
sx={{ sx={{
@ -757,8 +761,9 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
}} }}
> >
<Typography> <Typography>
You currently have a minting key for this account attached to {t('group:message.generic.node_minting_key', {
this node postProcess: 'capitalize',
})}
</Typography> </Typography>
</Box> </Box>
)} )}
@ -775,8 +780,12 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
}} }}
> >
<Typography> <Typography>
Minting account: {handleNames(acct?.mintingAccount)} {t('group:message.generic.minting_account', {
postProcess: 'capitalize',
})}{' '}
{handleNames(acct?.mintingAccount)}
</Typography> </Typography>
<Button <Button
size="small" size="small"
sx={{ sx={{
@ -797,7 +806,9 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
}} }}
variant="contained" variant="contained"
> >
Remove minting account {t('group:action.remove_minting_account', {
postProcess: 'capitalize',
})}
</Button> </Button>
<Divider /> <Divider />
@ -808,13 +819,15 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
{mintingAccounts?.length > 1 && ( {mintingAccounts?.length > 1 && (
<Typography> <Typography>
Only 2 minting keys are allowed per node. Please remove one if you {t('group:message.generic.minting_keys_per_node_different', {
would like to add a different account. postProcess: 'capitalize',
})}
</Typography> </Typography>
)} )}
</Card> </Card>
<Spacer height="20px" /> <Spacer height="20px" />
{!isPartOfMintingGroup && ( {!isPartOfMintingGroup && (
<Card <Card
sx={{ sx={{
@ -832,12 +845,19 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
}} }}
> >
<Typography> <Typography>
You are currently not part of the MINTER group {t('group:message.generic.minter_group', {
postProcess: 'capitalize',
})}
</Typography> </Typography>
<Typography> <Typography>
Visit the Q-Mintership app to apply to be a minter {t('group:message.generic.mintership_app', {
postProcess: 'capitalize',
})}
</Typography> </Typography>
<Spacer height="10px" /> <Spacer height="10px" />
<Button <Button
size="small" size="small"
sx={{ sx={{
@ -861,7 +881,9 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
}} }}
variant="contained" variant="contained"
> >
Visit Q-Mintership {t('group:action.visit_q_mintership', {
postProcess: 'capitalize',
})}
</Button> </Button>
</Box> </Box>
</Card> </Card>
@ -880,13 +902,16 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
<DialogContent> <DialogContent>
{!isShowNext && ( {!isShowNext && (
<Typography> <Typography>
Confirming creation of rewardshare on chain. Please be {t('group:message.success.rewardshare_creation', {
patient, this could take up to 90 seconds. postProcess: 'capitalize',
})}
</Typography> </Typography>
)} )}
{isShowNext && ( {isShowNext && (
<Typography> <Typography>
Rewardshare confirmed. Please click Next. {t('group:message.success.rewardshare_confirmed', {
postProcess: 'capitalize',
})}
</Typography> </Typography>
)} )}
</DialogContent> </DialogContent>
@ -898,21 +923,23 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
onClick={onOk} onClick={onOk}
autoFocus autoFocus
> >
Next {t('core:page.next', { postProcess: 'capitalize' })}
</Button> </Button>
</DialogActions> </DialogActions>
</Dialog> </Dialog>
)} )}
</DialogContent> </DialogContent>
<DialogActions> <DialogActions>
<Button <Button
// disabled={isLoadingPublish} // disabled={isLoadingPublish}
variant="contained" variant="contained"
onClick={() => setIsOpenMinting(false)} onClick={() => setIsOpenMinting(false)}
> >
Close {t('core:action.close', { postProcess: 'capitalize' })}
</Button> </Button>
</DialogActions> </DialogActions>
<Snackbar <Snackbar
anchorOrigin={{ vertical: 'bottom', horizontal: 'center' }} anchorOrigin={{ vertical: 'bottom', horizontal: 'center' }}
open={openSnack} open={openSnack}

View File

@ -20,8 +20,10 @@
"promote_group": "promote your group to non-members", "promote_group": "promote your group to non-members",
"refetch_page": "refetch page", "refetch_page": "refetch page",
"remove_admin": "remove as admin", "remove_admin": "remove as admin",
"remove_minting_account": "remove minting account",
"return_to_thread": "return to threads", "return_to_thread": "return to threads",
"select_group": "select a group" "select_group": "select a group",
"visit_q_mintership": "visit Q-Mintership"
}, },
"advanced_options": "advanced options", "advanced_options": "advanced options",
"approval_threshold": "group Approval Threshold (number / percentage of Admins that must approve a transaction)", "approval_threshold": "group Approval Threshold (number / percentage of Admins that must approve a transaction)",
@ -61,11 +63,17 @@
"invalid_data": "error loading content: Invalid Data", "invalid_data": "error loading content: Invalid Data",
"latest_promotion": "only the latest promotion from the week will be shown for your group.", "latest_promotion": "only the latest promotion from the week will be shown for your group.",
"loading_members": "loading member list with names... please wait.", "loading_members": "loading member list with names... please wait.",
"max_chars": " Max 200 characters. Publish Fee", "max_chars": "max 200 characters. Publish Fee",
"manage_minting": "manage your minting", "manage_minting": "manage your minting",
"minter_group": "you are currently not part of the MINTER group",
"mintership_app": "visit the Q-Mintership app to apply to be a minter",
"minting_account": "minting account:",
"minting_keys_per_node": "only 2 minting keys are allowed per node. Please remove one if you would like to mint with this account.", "minting_keys_per_node": "only 2 minting keys are allowed per node. Please remove one if you would like to mint with this account.",
"minting_keys_per_node_different": "only 2 minting keys are allowed per node. Please remove one if you would like to add a different account.",
"next_level": "blocks remaining until next level:", "next_level": "blocks remaining until next level:",
"node_minting": "This node is minting:", "node_minting": "This node is minting:",
"node_minting_account": "node's minting accounts",
"node_minting_key": "you currently have a minting key for this account attached to this node",
"no_display": "nothing to display", "no_display": "nothing to display",
"no_selection": "no group selected", "no_selection": "no group selected",
"not_part_group": "you are not part of the encrypted group of members. Wait until an admin re-encrypts the keys.", "not_part_group": "you are not part of the encrypted group of members. Wait until an admin re-encrypts the keys.",
@ -112,6 +120,8 @@
"post_creation": "successfully created post. It may take some time for the publish to propagate", "post_creation": "successfully created post. It may take some time for the publish to propagate",
"rewardshare_add": "add rewardshare: awaiting confirmation", "rewardshare_add": "add rewardshare: awaiting confirmation",
"rewardshare_add_label": "add rewardshare: success!", "rewardshare_add_label": "add rewardshare: success!",
"rewardshare_creation": "confirming creation of rewardshare on chain. Please be patient, this could take up to 90 seconds.",
"rewardshare_confirmed": "rewardshare confirmed. Please click Next.",
"rewardshare_remove": "remove rewardshare: awaiting confirmation", "rewardshare_remove": "remove rewardshare: awaiting confirmation",
"rewardshare_remove_label": "remove rewardshare: success!", "rewardshare_remove_label": "remove rewardshare: success!",
"thread_creation": "successfully created thread. It may take some time for the publish to propagate", "thread_creation": "successfully created thread. It may take some time for the publish to propagate",