From e46dadbf45bc91f1c14f544538bf143a438b1c0a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 15 Mar 2026 15:56:55 +0000 Subject: [PATCH] feat(ui): localize status page with i18n translations Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com> --- frontend/templates/status_dashboard.html | 212 +++++++++++++---------- frontend/translations/en.json | 106 +++++++++--- 2 files changed, 200 insertions(+), 118 deletions(-) diff --git a/frontend/templates/status_dashboard.html b/frontend/templates/status_dashboard.html index c6e57e40..5777bb73 100644 --- a/frontend/templates/status_dashboard.html +++ b/frontend/templates/status_dashboard.html @@ -1,5 +1,5 @@ {% extends "base.html" %} -{% block title %}System Status{% endblock %} +{% block title %}{{ _("status.page_title") }}{% endblock %} {% block head %} @@ -8,25 +8,25 @@ {% block content %}
-

System Status

+

{{ _("status.page_title") }}

- This dashboard shows the status of all configured integrations and targets. + {{ _("status.dashboard_subtitle") }}

@@ -44,11 +44,11 @@
{% if provider.configured %} - Configured + {{ _("status.configured") }} {% else %} - Not Configured + {{ _("status.not_configured") }} {% endif %} @@ -81,14 +81,14 @@ - Active + {{ _("status.active") }} {% else %} - Inactive + {{ _("status.inactive") }} {% endif %} @@ -100,7 +100,7 @@ class="view-details-btn inline-flex items-center px-2.5 py-1.5 border border-gray-300 text-xs font-medium rounded text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500" data-provider="{{ name }}" data-details="{{ provider.details|tojson|forceescape }}"> - View Details + {{ _("status.view_details") }} {% endif %} @@ -111,7 +111,7 @@ class="test-generic-btn inline-flex items-center px-2.5 py-1.5 border border-gray-300 text-xs font-medium rounded text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500" data-endpoint="{{ provider.test_endpoint }}" data-method="POST"> - Test Notifications + {{ _("status.test_notifications") }} {% endif %} @@ -121,7 +121,7 @@ class="test-generic-btn inline-flex items-center px-2.5 py-1.5 border border-gray-300 text-xs font-medium rounded text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500" data-endpoint="{{ provider.test_endpoint }}" data-method="{{ provider.test_method|default('GET') }}"> - Test {{ name }} + {{ _("status.test_provider", name=name) }} {% endif %} @@ -131,15 +131,15 @@ - - Manage + + {{ _("status.manage") }} {% else %} - Configure Now + {{ _("status.configure_now") }} {% endif %} {% elif name == "OneDrive" %} @@ -147,15 +147,15 @@ - - Manage + + {{ _("status.manage") }} {% else %} - Configure Now + {{ _("status.configure_now") }} {% endif %} {% elif name == "Google Drive" %} @@ -163,15 +163,15 @@ - - Manage + + {{ _("status.manage") }} {% else %} - Configure Now + {{ _("status.configure_now") }} {% endif %} {% elif name == "AI Provider" %} @@ -179,13 +179,13 @@ {% endif %} {% elif name == "Azure AI" %} @@ -193,20 +193,20 @@ {% endif %} {% elif provider.configured and name == "Paperless-ngx" %} - - Open + + {{ _("status.open") }} {% elif provider.configured and name == "NextCloud" %} {% if provider.details and provider.details.url %} {% set nextcloud_base_url = provider.details.url.split('/remote.php')[0] %} - - Open + + {{ _("status.open") }} {% endif %} {% endif %} @@ -219,14 +219,14 @@
-

Configuration Settings

+

{{ _("status.config_settings") }}

- For more detailed configuration settings and environment variables, check the settings page. + {{ _("status.config_settings_desc") }}

- View Detailed Configuration + {{ _("status.view_config") }}
@@ -238,15 +238,15 @@
-

Success

+

{{ _("status.modal_default_title") }}

- Operation completed successfully. + {{ _("status.modal_default_message") }}

@@ -258,12 +258,12 @@
-

Provider Details

+

{{ _("status.provider_details") }}

@@ -273,7 +273,7 @@
@@ -285,35 +285,34 @@

- AI Extraction Test + {{ _("status.ai_extraction_title") }}

- Paste the plain-text content of a document below and run it through the configured AI provider - to inspect the raw response, extracted JSON, and tags. + {{ _("status.ai_extraction_desc") }}

- + + placeholder="{{ _('status.ai_extraction_placeholder') }}">
@@ -328,30 +327,30 @@
-

Raw LLM Response

+

{{ _("status.raw_llm_response") }}


           
-

Parsed JSON

+

{{ _("status.parsed_json_label") }}


           
-

Extracted Tags

+

{{ _("status.extracted_tags") }}

@@ -363,6 +362,37 @@ {% block scripts %}