mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-24 18:56:32 -05:00
fix(access-tokens): Use label instead of placeholder in translation
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
parent
f3450d66a9
commit
1cdc8dfeb2
2 changed files with 7 additions and 3 deletions
|
@ -213,7 +213,7 @@
|
||||||
},
|
},
|
||||||
"deleteAccessToken": {
|
"deleteAccessToken": {
|
||||||
"title": "Really delete token?",
|
"title": "Really delete token?",
|
||||||
"message": "When deleting an access token, the applications that used it won't have access to your account anymore. You eventually need a new token to continue using those applications.",
|
"message": "When deleting the access token '{{label}}', the applications that used it won't have access to your account anymore. You eventually need a new token to continue using those applications.",
|
||||||
"notificationTitle": "Access token deleted",
|
"notificationTitle": "Access token deleted",
|
||||||
"notificationText": "The access token '{{label}}' has been deleted.",
|
"notificationText": "The access token '{{label}}' has been deleted.",
|
||||||
"failed": "There was an error deleting the access token. Please try it again or contact your instance's administrator."
|
"failed": "There was an error deleting the access token. Please try it again or contact your instance's administrator."
|
||||||
|
|
|
@ -34,7 +34,11 @@ export const AccessTokenDeletionModal: React.FC<AccessTokenDeletionModalProps> =
|
||||||
return dispatchUiNotification(
|
return dispatchUiNotification(
|
||||||
'profile.modal.deleteAccessToken.notificationTitle',
|
'profile.modal.deleteAccessToken.notificationTitle',
|
||||||
'profile.modal.deleteAccessToken.notificationText',
|
'profile.modal.deleteAccessToken.notificationText',
|
||||||
{}
|
{
|
||||||
|
contentI18nOptions: {
|
||||||
|
label: token.label
|
||||||
|
}
|
||||||
|
}
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
.catch(showErrorNotification('profile.modal.deleteAccessToken.failed'))
|
.catch(showErrorNotification('profile.modal.deleteAccessToken.failed'))
|
||||||
|
@ -48,7 +52,7 @@ export const AccessTokenDeletionModal: React.FC<AccessTokenDeletionModalProps> =
|
||||||
title={'profile.modal.deleteAccessToken.title'}
|
title={'profile.modal.deleteAccessToken.title'}
|
||||||
{...cypressId('access-token-modal-delete')}>
|
{...cypressId('access-token-modal-delete')}>
|
||||||
<Modal.Body>
|
<Modal.Body>
|
||||||
<Trans i18nKey='profile.modal.deleteAccessToken.message' />
|
<Trans i18nKey='profile.modal.deleteAccessToken.message' values={{ label: token.label }} />
|
||||||
</Modal.Body>
|
</Modal.Body>
|
||||||
<Modal.Footer>
|
<Modal.Footer>
|
||||||
<Button variant='danger' onClick={onConfirmDelete}>
|
<Button variant='danger' onClick={onConfirmDelete}>
|
||||||
|
|
Loading…
Reference in a new issue