mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-05-22 09:36:58 +00:00
Add translations
This commit is contained in:
parent
eb85722293
commit
9d25249b6d
@ -200,20 +200,28 @@ export const BlockedUsersModal = () => {
|
||||
variant="contained"
|
||||
onClick={blockUser}
|
||||
>
|
||||
Block
|
||||
{t('auth:action.block', { postProcess: 'capitalizeFirstChar' })}
|
||||
</Button>
|
||||
</Box>
|
||||
|
||||
{Object.entries(blockedUsers?.addresses).length > 0 && (
|
||||
<>
|
||||
<Spacer height="20px" />
|
||||
|
||||
<DialogContentText id="alert-dialog-description">
|
||||
Blocked addresses- blocks processing of txs
|
||||
{t('auth:message.generic.blocked_addresses', {
|
||||
postProcess: 'capitalizeFirstChar',
|
||||
})}
|
||||
</DialogContentText>
|
||||
|
||||
<Spacer height="10px" />
|
||||
|
||||
<Button variant="contained" size="small" onClick={getNames}>
|
||||
Fetch names
|
||||
{t('auth:action.fetch_names', {
|
||||
postProcess: 'capitalizeFirstChar',
|
||||
})}
|
||||
</Button>
|
||||
|
||||
<Spacer height="10px" />
|
||||
</>
|
||||
)}
|
||||
@ -255,19 +263,26 @@ export const BlockedUsersModal = () => {
|
||||
}
|
||||
}}
|
||||
>
|
||||
Unblock
|
||||
{t('auth:action.unblock', {
|
||||
postProcess: 'capitalizeFirstChar',
|
||||
})}
|
||||
</Button>
|
||||
</Box>
|
||||
);
|
||||
}
|
||||
)}
|
||||
</Box>
|
||||
|
||||
{Object.entries(blockedUsers?.names).length > 0 && (
|
||||
<>
|
||||
<Spacer height="20px" />
|
||||
|
||||
<DialogContentText id="alert-dialog-description">
|
||||
Blocked names for QDN
|
||||
{t('core:message.generic.blocked_names', {
|
||||
postProcess: 'capitalizeFirstChar',
|
||||
})}
|
||||
</DialogContentText>
|
||||
|
||||
<Spacer height="10px" />
|
||||
</>
|
||||
)}
|
||||
@ -291,6 +306,7 @@ export const BlockedUsersModal = () => {
|
||||
}}
|
||||
>
|
||||
<Typography>{key}</Typography>
|
||||
|
||||
<Button
|
||||
size="small"
|
||||
sx={{
|
||||
@ -307,13 +323,16 @@ export const BlockedUsersModal = () => {
|
||||
}
|
||||
}}
|
||||
>
|
||||
Unblock
|
||||
{t('auth:action.unblock', {
|
||||
postProcess: 'capitalizeFirstChar',
|
||||
})}
|
||||
</Button>
|
||||
</Box>
|
||||
);
|
||||
})}
|
||||
</Box>
|
||||
</DialogContent>
|
||||
|
||||
<DialogActions>
|
||||
<Button
|
||||
sx={{
|
||||
@ -335,7 +354,7 @@ export const BlockedUsersModal = () => {
|
||||
setIsOpenBlockedModal(false);
|
||||
}}
|
||||
>
|
||||
close
|
||||
{t('core:action.close', { postProcess: 'capitalizeFirstChar' })}
|
||||
</Button>
|
||||
</DialogActions>
|
||||
|
||||
@ -345,13 +364,19 @@ export const BlockedUsersModal = () => {
|
||||
aria-describedby="alert-dialog-description"
|
||||
>
|
||||
<DialogTitle id="alert-dialog-title">
|
||||
{'Decide what to block'}
|
||||
{t('auth:message.generic.decide_block', {
|
||||
postProcess: 'capitalizeFirstChar',
|
||||
})}
|
||||
</DialogTitle>
|
||||
|
||||
<DialogContent>
|
||||
<DialogContentText id="alert-dialog-description">
|
||||
Blocking {message?.userName || message?.userAddress}
|
||||
{t('auth:message.generic.blocking', {
|
||||
name: message?.userName || message?.userAddress,
|
||||
postProcess: 'capitalizeFirstChar',
|
||||
})}
|
||||
</DialogContentText>
|
||||
|
||||
<Box
|
||||
sx={{
|
||||
alignItems: 'center',
|
||||
@ -366,7 +391,9 @@ export const BlockedUsersModal = () => {
|
||||
}}
|
||||
/>{' '}
|
||||
<Typography>
|
||||
Choose "block txs" or "all" to block chat messages{' '}
|
||||
{t('auth:message.generic.choose_block', {
|
||||
postProcess: 'capitalizeFirstChar',
|
||||
})}
|
||||
</Typography>
|
||||
</Box>
|
||||
</DialogContent>
|
||||
@ -378,7 +405,7 @@ export const BlockedUsersModal = () => {
|
||||
onOk('address');
|
||||
}}
|
||||
>
|
||||
Block txs
|
||||
{t('auth:action.block_txs', { postProcess: 'capitalizeFirstChar' })}
|
||||
</Button>
|
||||
<Button
|
||||
variant="contained"
|
||||
@ -386,7 +413,9 @@ export const BlockedUsersModal = () => {
|
||||
onOk('name');
|
||||
}}
|
||||
>
|
||||
Block QDN data
|
||||
{t('auth:action.block_data', {
|
||||
postProcess: 'capitalizeFirstChar',
|
||||
})}
|
||||
</Button>
|
||||
<Button
|
||||
variant="contained"
|
||||
@ -394,7 +423,7 @@ export const BlockedUsersModal = () => {
|
||||
onOk('both');
|
||||
}}
|
||||
>
|
||||
Block All
|
||||
{t('auth:action.block_all', { postProcess: 'capitalizeFirstChar' })}
|
||||
</Button>
|
||||
</DialogActions>
|
||||
</Dialog>
|
||||
|
@ -269,6 +269,7 @@ export const ListOfGroupPromotions = () => {
|
||||
try {
|
||||
const groupId = group.groupId;
|
||||
const fee = await getFee('JOIN_GROUP');
|
||||
|
||||
await show({
|
||||
message: t('core:message.question.perform_transaction', {
|
||||
action: 'JOIN_GROUP',
|
||||
@ -276,6 +277,7 @@ export const ListOfGroupPromotions = () => {
|
||||
}),
|
||||
publishFee: fee.fee + ' QORT',
|
||||
});
|
||||
|
||||
setIsLoadingJoinGroup(true);
|
||||
await new Promise((res, rej) => {
|
||||
window
|
||||
|
@ -208,8 +208,8 @@ const BlockUser = ({ address, name, handleClose }) => {
|
||||
<CircularProgress color="secondary" size={24} />
|
||||
)}
|
||||
{isAlreadyBlocked &&
|
||||
t('core:action.unblock_name', { postProcess: 'capitalizeFirstChar' })}
|
||||
{isAlreadyBlocked === false && t('core:action.block_name', { postProcess: 'capitalizeFirstChar' })}}
|
||||
t('auth:action.unblock_name', { postProcess: 'capitalizeFirstChar' })}
|
||||
{isAlreadyBlocked === false && t('auth:action.block_name', { postProcess: 'capitalizeFirstChar' })}}
|
||||
</Button>
|
||||
);
|
||||
};
|
||||
|
@ -11,6 +11,12 @@
|
||||
"seed_phrase": "add seed-phrase"
|
||||
},
|
||||
"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",
|
||||
"create_account": "create account",
|
||||
"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",
|
||||
"reencrypt_key": "re-encrypt key",
|
||||
"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_name": "address or name",
|
||||
@ -52,7 +60,12 @@
|
||||
"unable_reencrypt_secret_key": "unable to re-encrypt secret key"
|
||||
},
|
||||
"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, you’re all set up!",
|
||||
"decide_block": "decide what to block",
|
||||
"no_account": "no accounts saved",
|
||||
"no_minimum_length": "there is no minimum length requirement",
|
||||
"no_secret_key_published": "no secret key published yet",
|
||||
|
@ -8,7 +8,6 @@
|
||||
"access_app": "access app",
|
||||
"backup_account": "backup account",
|
||||
"backup_wallet": "backup wallet",
|
||||
"block_name": "block name",
|
||||
"cancel": "cancel",
|
||||
"cancel_invitation": "cancel invitation",
|
||||
"change": "change",
|
||||
@ -78,7 +77,6 @@
|
||||
"start_minting": "start minting",
|
||||
"start_typing": "start typing here...",
|
||||
"transfer_qort": "Transfer QORT",
|
||||
"unblock_name": "unblock name",
|
||||
"unpin": "unpin",
|
||||
"unpin_app": "unpin app",
|
||||
"unpin_from_dashboard": "unpin from dashboard",
|
||||
|
Loading…
x
Reference in New Issue
Block a user