From 28458118d4b7c7237bf27743216d661de29475fe Mon Sep 17 00:00:00 2001 From: claude-dev Date: Thu, 5 Mar 2026 16:13:54 +0100 Subject: [PATCH] i18n: Fix last hardcoded German error string in export function Co-Authored-By: Claude Opus 4.6 --- src/static/js/app.js | 2 +- src/static/js/lang.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/static/js/app.js b/src/static/js/app.js index c3ecd18..4ec06a6 100644 --- a/src/static/js/app.js +++ b/src/static/js/app.js @@ -2032,7 +2032,7 @@ const App = { const response = await API.exportIncident(this.currentIncidentId, format, scope); if (!response.ok) { const err = await response.json().catch(() => ({})); - throw new Error(err.detail || 'Fehler ' + response.status); + throw new Error(err.detail || LangManager.t('err.generic') + ' ' + response.status); } const blob = await response.blob(); const disposition = response.headers.get('Content-Disposition') || ''; diff --git a/src/static/js/lang.js b/src/static/js/lang.js index 8eaff43..680b6c9 100644 --- a/src/static/js/lang.js +++ b/src/static/js/lang.js @@ -392,6 +392,7 @@ const TRANSLATIONS = { 'err.verification_failed': { de: 'Verifikation fehlgeschlagen', en: 'Verification failed' }, 'err.request_failed': { de: 'Anfrage fehlgeschlagen', en: 'Request failed' }, 'err.verification_check_failed': { de: 'Verifizierung fehlgeschlagen', en: 'Verification failed' }, + 'err.generic': { de: 'Fehler', en: 'Error' }, // ── Fact check status (for notifications) ────────────── 'fc_status.confirmed': { de: 'Bestätigt', en: 'Confirmed' },