diff --git a/src/UI/Settings/UIWindowFinalizeUserDeletion.js b/src/UI/Settings/UIWindowFinalizeUserDeletion.js index e4511f4e..6ea097bf 100644 --- a/src/UI/Settings/UIWindowFinalizeUserDeletion.js +++ b/src/UI/Settings/UIWindowFinalizeUserDeletion.js @@ -95,7 +95,10 @@ async function UIWindowFinalizeUserDeletion(options){ $(el_window).find('.error-message').hide(); // if user is temporary, check if they typed 'confirm' if(window.user.is_temp){ - if($(el_window).find('.confirm-temporary-user-deletion').val() !== 'confirm'){ + const confirm = $(el_window).find('.confirm-temporary-user-deletion').val().toLowerCase(); + + // user must type 'confirm' or the translation of 'confirm' to delete their account + if(confirm !== 'confirm' && confirm !== i18n('confirm').toLowerCase()){ $(el_window).find('.error-message').html(i18n('type_confirm_to_delete_account'), false); $(el_window).find('.error-message').show(); return; diff --git a/src/i18n/translations/en.js b/src/i18n/translations/en.js index 45e8f14c..e9c87c88 100644 --- a/src/i18n/translations/en.js +++ b/src/i18n/translations/en.js @@ -49,6 +49,7 @@ const en = { close_all_windows_and_log_out: 'Close Windows and Log Out', change_always_open_with: "Do you want to always open this type of file with", color: 'Color', + confirm: 'Confirm', confirm_2fa_setup: 'I have added the code to my authenticator app', confirm_2fa_recovery: 'I have saved my recovery codes in a secure location', confirm_account_for_free_referral_storage_c2a: 'Create an account and confirm your email address to receive 1 GB of free storage. Your friend will get 1 GB of free storage too.', diff --git a/src/i18n/translations/nl.js b/src/i18n/translations/nl.js index c2d8b75f..b6b0d5af 100644 --- a/src/i18n/translations/nl.js +++ b/src/i18n/translations/nl.js @@ -41,6 +41,7 @@ const nl = { close_all_windows_and_log_out: 'Alle schermen sluiten en afmelden', change_always_open_with: "Dit type bestand altijd openen met", color: 'Kleur', + confirm: 'Bevestig', confirm_account_for_free_referral_storage_c2a: 'Maak een account en bevestig uw emailadres om 1 GB aan gratis opslag te ontvangen. Uw vriend krijgt ook 1 GB aan gratis opslag.', confirm_delete_multiple_items: 'Weet u zeker dat u deze bestanden permanent wilt verwijderen?', confirm_delete_single_item: 'Weet u zeker dat u dit bestand permanent wilt verwijderen?',