mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-23 19:47:03 -04: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
|
@ -34,7 +34,11 @@ export const AccessTokenDeletionModal: React.FC<AccessTokenDeletionModalProps> =
|
|||
return dispatchUiNotification(
|
||||
'profile.modal.deleteAccessToken.notificationTitle',
|
||||
'profile.modal.deleteAccessToken.notificationText',
|
||||
{}
|
||||
{
|
||||
contentI18nOptions: {
|
||||
label: token.label
|
||||
}
|
||||
}
|
||||
)
|
||||
})
|
||||
.catch(showErrorNotification('profile.modal.deleteAccessToken.failed'))
|
||||
|
@ -48,7 +52,7 @@ export const AccessTokenDeletionModal: React.FC<AccessTokenDeletionModalProps> =
|
|||
title={'profile.modal.deleteAccessToken.title'}
|
||||
{...cypressId('access-token-modal-delete')}>
|
||||
<Modal.Body>
|
||||
<Trans i18nKey='profile.modal.deleteAccessToken.message' />
|
||||
<Trans i18nKey='profile.modal.deleteAccessToken.message' values={{ label: token.label }} />
|
||||
</Modal.Body>
|
||||
<Modal.Footer>
|
||||
<Button variant='danger' onClick={onConfirmDelete}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue