pl-fe: clarify account deletion explanation

Signed-off-by: Nicole Mikołajczyk <git@mkljczk.pl>
This commit is contained in:
Nicole Mikołajczyk
2025-04-08 18:25:59 +02:00
parent 88f1c7c70e
commit 68c0c151b9
2 changed files with 13 additions and 3 deletions

View File

@ -19,6 +19,8 @@ const messages = defineMessages({
deleteHeader: { id: 'security.headers.delete', defaultMessage: 'Delete account' },
deleteText: { id: 'security.text.delete', defaultMessage: 'To delete your account, enter your password and then click Delete account. This is a permanent action that cannot be undone. Your account will be destroyed from this server, and a deletion request will be sent to other servers. It\'s not guaranteed that all servers will purge your account.' },
localDeleteText: { id: 'security.text.delete.local', defaultMessage: 'To delete your account, enter your password and then click Delete account. This is a permanent action that cannot be undone.' },
deleteWithoutPasswordText: { id: 'security.text.delete.without_password', defaultMessage: 'To delete your account, click Delete account. This is a permanent action that cannot be undone. Your account will be destroyed from this server, and a deletion request will be sent to other servers. It\'s not guaranteed that all servers will purge your account.' },
localDeleteWithoutPasswordText: { id: 'security.text.delete.local.without_password', defaultMessage: 'To delete your account, click Delete account. This is a permanent action that cannot be undone.' },
deleteSubmit: { id: 'security.submit.delete', defaultMessage: 'Delete account' },
deleteAccountSuccess: { id: 'security.delete_account.success', defaultMessage: 'Account successfully deleted.' },
deleteAccountFail: { id: 'security.delete_account.fail', defaultMessage: 'Account deletion failed.' },
@ -61,7 +63,13 @@ const DeleteAccount = () => {
<Stack space={4}>
<Text theme='muted'>
{intl.formatMessage(features.federating ? messages.deleteText : messages.localDeleteText)}
{intl.formatMessage(features.deleteAccountWithoutPassword
? (features.federating
? messages.deleteWithoutPasswordText
: messages.localDeleteWithoutPasswordText)
: features.federating
? messages.deleteText
: messages.localDeleteText)}
</Text>
<Form onSubmit={handleSubmit}>

View File

@ -1436,8 +1436,10 @@
"security.qr.fail": "Failed to fetch setup key",
"security.submit": "Save changes",
"security.submit.delete": "Delete account",
"security.text.delete": "To delete your account, enter your password then click Delete Account. This is a permanent action that cannot be undone. Your account will be destroyed from this server, and a deletion request will be sent to other servers. It's not guaranteed that all servers will purge your account.",
"security.text.delete.local": "To delete your account, enter your password then click Delete Account. This is a permanent action that cannot be undone.",
"security.text.delete": "To delete your account, enter your password and then click Delete account. This is a permanent action that cannot be undone. Your account will be destroyed from this server, and a deletion request will be sent to other servers. It's not guaranteed that all servers will purge your account.",
"security.text.delete.local": "To delete your account, enter your password and then click Delete account. This is a permanent action that cannot be undone.",
"security.text.delete.local.without_password": "To delete your account, click Delete account. This is a permanent action that cannot be undone.",
"security.text.delete.without_password": "To delete your account, click Delete account. This is a permanent action that cannot be undone. Your account will be destroyed from this server, and a deletion request will be sent to other servers. It's not guaranteed that all servers will purge your account.",
"security.tokens.created_at": "Created on {date}",
"security.tokens.last_used": "Last used on {date}",
"security.tokens.revoke": "Revoke",