From 118f599fde0e74a441bb95d3f4bcf4b23dc9ad36 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sun, 13 Feb 2022 18:54:11 +0100 Subject: [PATCH] Add translations for TOTP enabled security view --- app/views/settings/security/_totp_enabled.haml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/views/settings/security/_totp_enabled.haml b/app/views/settings/security/_totp_enabled.haml index f4afacd8..8ae6264f 100644 --- a/app/views/settings/security/_totp_enabled.haml +++ b/app/views/settings/security/_totp_enabled.haml @@ -1,6 +1,6 @@ -%p Your account is set up to require the use of a one-time password in order to log in. -%p You currently have #{recovery_code_count} unused recovery codes. -= button_to t('views.actions.remove'), destroy_user_2fa_path, class: 'btn btn-danger', method: 'delete', - data: { confirm: t('views.settings.security.2fa.detach_confirm') } -= button_to 'Re-generate recovery codes', reset_user_recovery_codes_path, class: 'btn btn-primary', method: 'delete', - data: { confirm: 'Are you sure? This will disable your previous set of recovery codes.' } +%p= t(".body") +%p= t(".recovery_code_count", count: recovery_code_count) += button_to t(".remove.action"), destroy_user_2fa_path, class: "btn btn-danger", method: "delete", + data: { confirm: t(".remove.confirm") } += button_to t(".regenerate.action"), reset_user_recovery_codes_path, class: "btn btn-primary", method: "delete", + data: { confirm: t(".regenerate.confirm") }