Add translations for recovery key view

This commit is contained in:
Andreas Nedbal 2022-02-13 18:54:42 +01:00 committed by Andreas Nedbal
parent 0c1f028b43
commit b0e1515812

View file

@ -5,19 +5,19 @@
.card-body
.d-none.d-print-block.totp-setup__recovery-icon
%i.fa.fa-comments
%h1.totp-setup__recovery-title Your Retrospring recovery codes
%h1.totp-setup__recovery-title= t(".heading", app_name: APP_CONFIG['site_name'])
%ul.totp-setup__recovery-codes
- @recovery_keys.each do |key|
%li
%code= key.code
.d-none.d-print-block These codes were generated #{Time.now.strftime('%F at %T %Z')}
.d-none.d-print-block= t(".generated_at", time: l(Time.now))
.card-footer.d-print-none
We recommend storing these in a password manager or printing them out on paper.
= t(".recommendation")
%br
%a.btn{ onclick: 'print()' }
%a.btn{ onclick: "print()" }
%i.fa.fa-print
Print
= t(".print")
.d-none.d-print-block.text-success
%i.fa.fa-tree
Please consider the environment before printing this page.
= t(".consideration")