From 9b218720076974a941ca99d8c2c654da3edcd333 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Mon, 16 Mar 2026 17:55:30 +0000
Subject: [PATCH 1/3] Initial plan
From 45c2cd7c6e7bef5f445479c32841d159e11c3359 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Mon, 16 Mar 2026 18:05:59 +0000
Subject: [PATCH 2/3] feat(i18n): localize files view - replace all hardcoded
strings with translation keys
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
---
frontend/templates/files.html | 149 ++++++++++++++++++----------
frontend/translations/en.json | 182 +++++++++++++++++++++-------------
2 files changed, 209 insertions(+), 122 deletions(-)
diff --git a/frontend/templates/files.html b/frontend/templates/files.html
index 347ac81b..effec735 100644
--- a/frontend/templates/files.html
+++ b/frontend/templates/files.html
@@ -716,19 +716,19 @@
{{ file.mime_type }} |
- {{ file.processing_status | title }}
+ {% if file.processing_status == 'pending' %}{{ _("common.pending") }}{% elif file.processing_status == 'processing' %}{{ _("common.processing") }}{% elif file.processing_status == 'completed' %}{{ _("common.completed") }}{% elif file.processing_status == 'failed' %}{{ _("common.failed") }}{% elif file.processing_status == 'duplicate' %}{{ _("files.status_duplicate") }}{% else %}{{ file.processing_status | title }}{% endif %}
|
- {{ file.created_at.strftime('%Y-%m-%d %H:%M:%S') if file.created_at else 'N/A' }} |
+ {{ file.created_at.strftime('%Y-%m-%d %H:%M:%S') if file.created_at else _('common.not_available') }} |
-
@@ -752,25 +752,25 @@
tabindex="0"
onclick="viewFileDetail({{ file.id }}, event)"
onkeydown="if(event.key==='Enter'||event.key===' '){viewFileDetail({{ file.id }}, event);}"
- aria-label="View details for {{ file.original_filename }}"
+ aria-label="{{ _('files.action_details') }} {{ file.original_filename }}"
>
{{ file.original_filename }}
ID: {{ file.id }} · {{ (file.file_size / 1024) | round(2) }} KB
{{ file.mime_type }}
- {{ file.created_at.strftime('%Y-%m-%d %H:%M') if file.created_at else 'N/A' }}
+ {{ file.created_at.strftime('%Y-%m-%d %H:%M') if file.created_at else _('common.not_available') }}
- {{ file.processing_status | title }}
-
-
+ {% if file.processing_status == 'pending' %}{{ _("common.pending") }}{% elif file.processing_status == 'processing' %}{{ _("common.processing") }}{% elif file.processing_status == 'completed' %}{{ _("common.completed") }}{% elif file.processing_status == 'failed' %}{{ _("common.failed") }}{% elif file.processing_status == 'duplicate' %}{{ _("files.status_duplicate") }}{% else %}{{ file.processing_status | title }}{% endif %}
+
+
-
+
-
+
@@ -841,6 +841,51 @@
|