fix: translate email body for 2FA (#17045)

This commit is contained in:
HarryPaulo 2022-06-01 03:32:23 -03:00 committed by GitHub
parent f8f29e284f
commit 900f829d83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -277,7 +277,9 @@ def get_email_subject_for_qr_code(kwargs_dict):
def get_email_body_for_qr_code(kwargs_dict):
"""Get QRCode email body."""
body_template = "Please click on the following link and follow the instructions on the page.<br><br> {{qrcode_link}}"
body_template = _(
"Please click on the following link and follow the instructions on the page. {0}"
).format("<br><br> {{qrcode_link}}")
body = frappe.render_template(body_template, kwargs_dict)
return body