From 8c779821092e7672f405aa06f91990ec829c4669 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 12 Mar 2026 00:17:23 +0000 Subject: [PATCH] feat(i18n): replace hardcoded English text with translation keys in files, settings, and pipelines templates Replace all hardcoded English strings in three HTML Jinja2 templates with `{{ _("key") }}` translation function calls, adding 87 new keys to en.json. files.html: - Page title, drop overlay, upload modal, error messages - All filter labels, placeholders, options (status, OCR quality, etc.) - Saved searches and full-text search UI - Bulk action buttons, table headers, pagination - Delete and preview modal text settings.html: - Page heading, configuration priority legend - Header buttons (Wizard, DB Wizard, Export, Audit Log) - Search bar placeholder and aria-labels - Sidebar categories, no-results state - Per-setting labels: required, enable prefix, effective value - Autocomplete and model picker hints/placeholders - Revert/save button labels and states pipelines.html: - Page title and subtitle - New Pipeline button, loading state, empty state - Pipeline card badges (System, Default, Inactive, Disabled) - Add/Edit step modal fields and labels - OCR language options and hints - Cancel/Delete buttons in all modals Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- frontend/templates/files.html | 157 +++++++++++++++--------------- frontend/templates/pipelines.html | 79 ++++++++------- frontend/templates/settings.html | 92 ++++++++--------- frontend/translations/en.json | 87 ++++++++++++++++- 4 files changed, 247 insertions(+), 168 deletions(-) diff --git a/frontend/templates/files.html b/frontend/templates/files.html index c483c0e1..801d8186 100644 --- a/frontend/templates/files.html +++ b/frontend/templates/files.html @@ -1,5 +1,5 @@ {% extends "base.html" %} -{% block title %}File Records{% endblock %} +{% block title %}{{ _("files.page_title") }}{% endblock %} {% block head_extra %} @@ -427,16 +427,16 @@
-