From f48d1e3cd877e760313a31adfc84558fed840794 Mon Sep 17 00:00:00 2001 From: Marcel Date: Fri, 24 Apr 2026 21:21:07 +0200 Subject: [PATCH] fix(bulk-upload): i18n topbar title; replace hardcoded German strings 'Neues Dokument' / 'Neue Dokumente' in BulkDocumentEditLayout topbar bypassed Paraglide. Added bulk_title_single and bulk_title_multi keys to de/en/es message files and switched to m.*() calls. Co-Authored-By: Claude Sonnet 4.6 --- frontend/messages/de.json | 4 +++- frontend/messages/en.json | 4 +++- frontend/messages/es.json | 4 +++- .../src/lib/components/document/BulkDocumentEditLayout.svelte | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/frontend/messages/de.json b/frontend/messages/de.json index cdc593c8..9196a69e 100644 --- a/frontend/messages/de.json +++ b/frontend/messages/de.json @@ -871,5 +871,7 @@ "bulk_drop_desc": "Für jede Datei wird ein eigenes Dokument erstellt. Der Titel wird aus dem Dateinamen vorausgefüllt — alle anderen Felder gelten für alle gemeinsam.", "bulk_select_files": "Dateien auswählen", "bulk_drop_zone_label": "Dateien ablegen", - "bulk_remove_file": "Entfernen" + "bulk_remove_file": "Entfernen", + "bulk_title_single": "Neues Dokument", + "bulk_title_multi": "Neue Dokumente" } diff --git a/frontend/messages/en.json b/frontend/messages/en.json index 25bd2daf..111d916e 100644 --- a/frontend/messages/en.json +++ b/frontend/messages/en.json @@ -871,5 +871,7 @@ "bulk_drop_desc": "A separate document is created for each file. The title is pre-filled from the filename — all other fields apply to all documents.", "bulk_select_files": "Select files", "bulk_drop_zone_label": "Drop files here", - "bulk_remove_file": "Remove" + "bulk_remove_file": "Remove", + "bulk_title_single": "New Document", + "bulk_title_multi": "New Documents" } diff --git a/frontend/messages/es.json b/frontend/messages/es.json index 3de51be9..4f101339 100644 --- a/frontend/messages/es.json +++ b/frontend/messages/es.json @@ -871,5 +871,7 @@ "bulk_drop_desc": "Se crea un documento separado por archivo. El título se rellena desde el nombre del archivo — el resto de campos se aplican a todos.", "bulk_select_files": "Seleccionar archivos", "bulk_drop_zone_label": "Soltar archivos aquí", - "bulk_remove_file": "Eliminar" + "bulk_remove_file": "Eliminar", + "bulk_title_single": "Nuevo Documento", + "bulk_title_multi": "Nuevos Documentos" } diff --git a/frontend/src/lib/components/document/BulkDocumentEditLayout.svelte b/frontend/src/lib/components/document/BulkDocumentEditLayout.svelte index 14e9fe51..da4e6d3b 100644 --- a/frontend/src/lib/components/document/BulkDocumentEditLayout.svelte +++ b/frontend/src/lib/components/document/BulkDocumentEditLayout.svelte @@ -146,7 +146,7 @@ async function save() { - {isMulti ? 'Neue Dokumente' : 'Neues Dokument'} + {isMulti ? m.bulk_title_multi() : m.bulk_title_single()} {#if isMulti}