fix: Translate OAuth confirmation details

This commit is contained in:
Corentin Forler 2024-10-16 12:30:59 +02:00
parent 9788e47bb0
commit 78fbd39b2a
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -115,7 +115,7 @@ def authorize(**kwargs):
resp_html = frappe.render_template(
"templates/includes/oauth_confirmation.html", response_html_params
)
frappe.respond_as_web_page("Confirm Access", resp_html, primary_action=None)
frappe.respond_as_web_page(_("Confirm Access"), resp_html, primary_action=None)
except (FatalClientError, OAuth2Error) as e:
return generate_json_error_response(e)

View file

@ -7,7 +7,7 @@
<div class="panel-body">
<ul>
{% for dtl in details %}
<li>{{ dtl.title() }}</li>
<li>{{ _(dtl.title()) }}</li>
{% endfor %}
</ul>
<div class="action-buttons d-flex">