diff --git a/packages/pl-fe/src/features/delete-account/index.tsx b/packages/pl-fe/src/features/delete-account/index.tsx index 2f56d848f..5d1311360 100644 --- a/packages/pl-fe/src/features/delete-account/index.tsx +++ b/packages/pl-fe/src/features/delete-account/index.tsx @@ -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 = () => { - {intl.formatMessage(features.federating ? messages.deleteText : messages.localDeleteText)} + {intl.formatMessage(features.deleteAccountWithoutPassword + ? (features.federating + ? messages.deleteWithoutPasswordText + : messages.localDeleteWithoutPasswordText) + : features.federating + ? messages.deleteText + : messages.localDeleteText)}
diff --git a/packages/pl-fe/src/locales/en.json b/packages/pl-fe/src/locales/en.json index d56a13f52..3ce080f27 100644 --- a/packages/pl-fe/src/locales/en.json +++ b/packages/pl-fe/src/locales/en.json @@ -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",