Add translations

This commit is contained in:
Nicola Benaglia 2025-05-20 08:35:11 +02:00
parent eb85722293
commit 9d25249b6d
5 changed files with 60 additions and 18 deletions

View File

@ -200,20 +200,28 @@ export const BlockedUsersModal = () => {
variant="contained" variant="contained"
onClick={blockUser} onClick={blockUser}
> >
Block {t('auth:action.block', { postProcess: 'capitalizeFirstChar' })}
</Button> </Button>
</Box> </Box>
{Object.entries(blockedUsers?.addresses).length > 0 && ( {Object.entries(blockedUsers?.addresses).length > 0 && (
<> <>
<Spacer height="20px" /> <Spacer height="20px" />
<DialogContentText id="alert-dialog-description"> <DialogContentText id="alert-dialog-description">
Blocked addresses- blocks processing of txs {t('auth:message.generic.blocked_addresses', {
postProcess: 'capitalizeFirstChar',
})}
</DialogContentText> </DialogContentText>
<Spacer height="10px" /> <Spacer height="10px" />
<Button variant="contained" size="small" onClick={getNames}> <Button variant="contained" size="small" onClick={getNames}>
Fetch names {t('auth:action.fetch_names', {
postProcess: 'capitalizeFirstChar',
})}
</Button> </Button>
<Spacer height="10px" /> <Spacer height="10px" />
</> </>
)} )}
@ -255,19 +263,26 @@ export const BlockedUsersModal = () => {
} }
}} }}
> >
Unblock {t('auth:action.unblock', {
postProcess: 'capitalizeFirstChar',
})}
</Button> </Button>
</Box> </Box>
); );
} }
)} )}
</Box> </Box>
{Object.entries(blockedUsers?.names).length > 0 && ( {Object.entries(blockedUsers?.names).length > 0 && (
<> <>
<Spacer height="20px" /> <Spacer height="20px" />
<DialogContentText id="alert-dialog-description"> <DialogContentText id="alert-dialog-description">
Blocked names for QDN {t('core:message.generic.blocked_names', {
postProcess: 'capitalizeFirstChar',
})}
</DialogContentText> </DialogContentText>
<Spacer height="10px" /> <Spacer height="10px" />
</> </>
)} )}
@ -291,6 +306,7 @@ export const BlockedUsersModal = () => {
}} }}
> >
<Typography>{key}</Typography> <Typography>{key}</Typography>
<Button <Button
size="small" size="small"
sx={{ sx={{
@ -307,13 +323,16 @@ export const BlockedUsersModal = () => {
} }
}} }}
> >
Unblock {t('auth:action.unblock', {
postProcess: 'capitalizeFirstChar',
})}
</Button> </Button>
</Box> </Box>
); );
})} })}
</Box> </Box>
</DialogContent> </DialogContent>
<DialogActions> <DialogActions>
<Button <Button
sx={{ sx={{
@ -335,7 +354,7 @@ export const BlockedUsersModal = () => {
setIsOpenBlockedModal(false); setIsOpenBlockedModal(false);
}} }}
> >
close {t('core:action.close', { postProcess: 'capitalizeFirstChar' })}
</Button> </Button>
</DialogActions> </DialogActions>
@ -345,13 +364,19 @@ export const BlockedUsersModal = () => {
aria-describedby="alert-dialog-description" aria-describedby="alert-dialog-description"
> >
<DialogTitle id="alert-dialog-title"> <DialogTitle id="alert-dialog-title">
{'Decide what to block'} {t('auth:message.generic.decide_block', {
postProcess: 'capitalizeFirstChar',
})}
</DialogTitle> </DialogTitle>
<DialogContent> <DialogContent>
<DialogContentText id="alert-dialog-description"> <DialogContentText id="alert-dialog-description">
Blocking {message?.userName || message?.userAddress} {t('auth:message.generic.blocking', {
name: message?.userName || message?.userAddress,
postProcess: 'capitalizeFirstChar',
})}
</DialogContentText> </DialogContentText>
<Box <Box
sx={{ sx={{
alignItems: 'center', alignItems: 'center',
@ -366,7 +391,9 @@ export const BlockedUsersModal = () => {
}} }}
/>{' '} />{' '}
<Typography> <Typography>
Choose "block txs" or "all" to block chat messages{' '} {t('auth:message.generic.choose_block', {
postProcess: 'capitalizeFirstChar',
})}
</Typography> </Typography>
</Box> </Box>
</DialogContent> </DialogContent>
@ -378,7 +405,7 @@ export const BlockedUsersModal = () => {
onOk('address'); onOk('address');
}} }}
> >
Block txs {t('auth:action.block_txs', { postProcess: 'capitalizeFirstChar' })}
</Button> </Button>
<Button <Button
variant="contained" variant="contained"
@ -386,7 +413,9 @@ export const BlockedUsersModal = () => {
onOk('name'); onOk('name');
}} }}
> >
Block QDN data {t('auth:action.block_data', {
postProcess: 'capitalizeFirstChar',
})}
</Button> </Button>
<Button <Button
variant="contained" variant="contained"
@ -394,7 +423,7 @@ export const BlockedUsersModal = () => {
onOk('both'); onOk('both');
}} }}
> >
Block All {t('auth:action.block_all', { postProcess: 'capitalizeFirstChar' })}
</Button> </Button>
</DialogActions> </DialogActions>
</Dialog> </Dialog>

View File

@ -269,6 +269,7 @@ export const ListOfGroupPromotions = () => {
try { try {
const groupId = group.groupId; const groupId = group.groupId;
const fee = await getFee('JOIN_GROUP'); const fee = await getFee('JOIN_GROUP');
await show({ await show({
message: t('core:message.question.perform_transaction', { message: t('core:message.question.perform_transaction', {
action: 'JOIN_GROUP', action: 'JOIN_GROUP',
@ -276,6 +277,7 @@ export const ListOfGroupPromotions = () => {
}), }),
publishFee: fee.fee + ' QORT', publishFee: fee.fee + ' QORT',
}); });
setIsLoadingJoinGroup(true); setIsLoadingJoinGroup(true);
await new Promise((res, rej) => { await new Promise((res, rej) => {
window window

View File

@ -208,8 +208,8 @@ const BlockUser = ({ address, name, handleClose }) => {
<CircularProgress color="secondary" size={24} /> <CircularProgress color="secondary" size={24} />
)} )}
{isAlreadyBlocked && {isAlreadyBlocked &&
t('core:action.unblock_name', { postProcess: 'capitalizeFirstChar' })} t('auth:action.unblock_name', { postProcess: 'capitalizeFirstChar' })}
{isAlreadyBlocked === false && t('core:action.block_name', { postProcess: 'capitalizeFirstChar' })}} {isAlreadyBlocked === false && t('auth:action.block_name', { postProcess: 'capitalizeFirstChar' })}}
</Button> </Button>
); );
}; };

View File

@ -11,6 +11,12 @@
"seed_phrase": "add seed-phrase" "seed_phrase": "add seed-phrase"
}, },
"authenticate": "authenticate", "authenticate": "authenticate",
"block": "block",
"block_all": "block all",
"block_data": "block QDN data",
"block_name": "block name",
"block_txs": "block tsx",
"fetch_names": "fetch names",
"copy_address": "copy address", "copy_address": "copy address",
"create_account": "create account", "create_account": "create account",
"create_qortal_account": "create your Qortal account by clicking <next>NEXT</next> below.", "create_qortal_account": "create your Qortal account by clicking <next>NEXT</next> below.",
@ -22,7 +28,9 @@
"publish_group_secret_key": "publish group secret key", "publish_group_secret_key": "publish group secret key",
"reencrypt_key": "re-encrypt key", "reencrypt_key": "re-encrypt key",
"return_to_list": "return to list", "return_to_list": "return to list",
"setup_qortal_account": "set up your Qortal account" "setup_qortal_account": "set up your Qortal account",
"unblock": "unblock",
"unblock_name": "unblock name"
}, },
"address": "address", "address": "address",
"address_name": "address or name", "address_name": "address or name",
@ -52,7 +60,12 @@
"unable_reencrypt_secret_key": "unable to re-encrypt secret key" "unable_reencrypt_secret_key": "unable to re-encrypt secret key"
}, },
"generic": { "generic": {
"blocked_addresses": "blocked addresses- blocks processing of txs",
"blocked_names": "blocked names for QDN",
"blocking": "blocking {{ name }}",
"choose_block": "choose 'block txs' or 'all' to block chat messages",
"congrats_setup": "congrats, youre all set up!", "congrats_setup": "congrats, youre all set up!",
"decide_block": "decide what to block",
"no_account": "no accounts saved", "no_account": "no accounts saved",
"no_minimum_length": "there is no minimum length requirement", "no_minimum_length": "there is no minimum length requirement",
"no_secret_key_published": "no secret key published yet", "no_secret_key_published": "no secret key published yet",

View File

@ -8,7 +8,6 @@
"access_app": "access app", "access_app": "access app",
"backup_account": "backup account", "backup_account": "backup account",
"backup_wallet": "backup wallet", "backup_wallet": "backup wallet",
"block_name": "block name",
"cancel": "cancel", "cancel": "cancel",
"cancel_invitation": "cancel invitation", "cancel_invitation": "cancel invitation",
"change": "change", "change": "change",
@ -78,7 +77,6 @@
"start_minting": "start minting", "start_minting": "start minting",
"start_typing": "start typing here...", "start_typing": "start typing here...",
"transfer_qort": "Transfer QORT", "transfer_qort": "Transfer QORT",
"unblock_name": "unblock name",
"unpin": "unpin", "unpin": "unpin",
"unpin_app": "unpin app", "unpin_app": "unpin app",
"unpin_from_dashboard": "unpin from dashboard", "unpin_from_dashboard": "unpin from dashboard",