From fdff970e594d854d194152b40c982576141a96d1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 11 Mar 2026 12:08:14 +0000 Subject: [PATCH] feat(ui): i18n-translate credentials and audit_logs templates Replace all hardcoded English text in credentials.html and audit_logs.html with {{ _("key") }} translation function calls. New keys added: credentials.*: page_title, title, subtitle, total_credentials, configured, not_configured, legend_title, legend_db, legend_env_before, legend_env_after, legend_missing, legend_restart, col_credential, col_source, col_action, table_for, restart_title, status_missing, source_db_title, source_env_title, edit_in_settings, manage_settings, raw_json audit.*: page_title, title, subtitle, siem_enabled_title, siem_off, siem_disabled_title, refresh_label, filter_action, filter_all_actions, filter_user, filter_all_users, filter_severity, filter_resource_type, filter_resource_placeholder, filters_section_label, col_timestamp, col_resource, col_ip, table_label, no_events, no_events_hint, pagination_label, prev_label, prev, next_label, next, critical Reused existing keys: common.description, common.status, common.actions, common.edit, common.all, common.info, common.warning, common.error, common.refresh, common.details, common.loading Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- frontend/templates/audit_logs.html | 74 ++++++++++++++--------------- frontend/templates/credentials.html | 57 +++++++++++----------- 2 files changed, 65 insertions(+), 66 deletions(-) diff --git a/frontend/templates/audit_logs.html b/frontend/templates/audit_logs.html index 92073816..fa0a2e0c 100644 --- a/frontend/templates/audit_logs.html +++ b/frontend/templates/audit_logs.html @@ -1,6 +1,6 @@ {% extends "base.html" %} -{% block title %}Audit Logs - DocuElevate{% endblock %} +{% block title %}{{ _("audit.page_title") }}{% endblock %} {% block content %}
@@ -9,69 +9,69 @@

- Audit Logs + {{ _("audit.title") }}

- Comprehensive, append-only record of all significant actions. + {{ _("audit.subtitle") }}

{% if siem_enabled %} + title="{{ _('audit.siem_enabled_title') ~ (siem_transport|upper) }}"> SIEM: {{ siem_transport|upper }} {% else %} - SIEM: Off + title="{{ _('audit.siem_disabled_title') }}"> + {{ _("audit.siem_off") }} {% endif %}
-
+
- +
- +
- +
- +
@@ -80,22 +80,22 @@
- Loading… + {{ _("common.loading") }}
- +
- - - - - - - + + + + + + + @@ -118,8 +118,8 @@ @@ -128,17 +128,17 @@ -
TimestampSeverityUserActionResourceIPDetails{{ _("audit.col_timestamp") }}{{ _("audit.filter_severity") }}{{ _("audit.filter_user") }}{{ _("audit.filter_action") }}{{ _("audit.col_resource") }}{{ _("audit.col_ip") }}{{ _("common.details") }}
-

No audit events recorded yet.

-

Significant actions (logins, document operations, settings changes) will appear here.

+

{{ _("audit.no_events") }}

+

{{ _("audit.no_events_hint") }}

+
@@ -114,7 +113,7 @@
{{ cred.key }} {% if cred.restart_required %} - + {% endif %} @@ -130,11 +129,11 @@
@@ -142,11 +141,11 @@
- Credential + {{ _("credentials.col_credential") }} - Description + {{ _("common.description") }} - Status + {{ _("common.status") }} - Source + {{ _("credentials.col_source") }} - Action + {{ _("credentials.col_action") }}
{% if cred.configured %} - Configured + {{ _("credentials.configured") }} {% else %} - Missing + {{ _("credentials.status_missing") }} {% endif %} {% if cred.source == 'db' %} - + DB {% elif cred.source == 'env' %} - + ENV {% else %} @@ -157,8 +156,8 @@ @@ -178,13 +177,13 @@ - Manage Settings + {{ _("credentials.manage_settings") }} - Raw JSON (API) + {{ _("credentials.raw_json") }}