diff --git a/src/app/global-error.tsx b/src/app/global-error.tsx index 5522f4b34..0efdd5ab5 100644 --- a/src/app/global-error.tsx +++ b/src/app/global-error.tsx @@ -3,7 +3,9 @@ /** * Root-level error boundary. Renders when even the root layout itself fails, * so it cannot rely on any providers (i18n, query, auth). Keep it static, - * in English, and self-contained. + * self-contained, and bilingual: both English and German appear side by side + * so a German visitor never lands on an all-English last-resort screen, and + * an English visitor can still read it. */ export default function GlobalError({ error, @@ -28,7 +30,7 @@ export default function GlobalError({ try { await navigator.clipboard.writeText(text); } catch { - window.prompt("Copy details", text); + window.prompt("Details kopieren · Copy details", text); } } @@ -55,11 +57,13 @@ export default function GlobalError({ >
- A critical error occurred. You can retry or copy the details for
- support.
+ Ein kritischer Fehler ist aufgetreten. Du kannst es erneut versuchen
+ oder die Details kopieren.
+
A critical error occurred. You can retry or copy the details
+ for support.
- {error.message || "Unknown error"}
+ {error.message || "Unbekannter Fehler · Unknown error"}