i18n: migrate from German-first to English-first default locale

Switch defaultLocale from "de" to "en" and make English the code-level
language throughout. All ~145 hardcoded German strings translated:

- API error messages (52 routes) now return English
- Zod validation messages in English
- Classification/analytics functions return English categories
- Notification type labels in English
- Component strings use i18n t() calls (heatmap, mood chart,
  medication form, intake history, password strength, insights card)
- ~50 new i18n keys in both de.json and en.json

Route migration:
- /stimmung → /mood, /zielwerte → /targets (new pages)
- 301 redirects in proxy.ts for legacy URLs
- Sidebar + bottom nav updated

Bump version to 1.0.1.
This commit is contained in:
Marc-André Bombeck committed 2026-03-12 21:31:48 +01:00
1 parent 38309932f3
commit 0c0c345e82
74 files changed
+871 -402

No files matched your search

+3 -3
View File
@@ -32,11 +32,11 @@ export const POST = apiHandler(async (request: NextRequest) => {
try {
body = await request.json();
} catch {
return apiError("Ungültige JSON-Daten", 422);
return apiError("Invalid JSON data", 422);
}
const parsed = clientErrorSchema.safeParse(body);
if (!parsed.success) return apiError("Ungültige Fehlerdaten", 422);
if (!parsed.success) return apiError("Invalid error data", 422);
const delivery = await sendGlitchtipEvent({
dsn: settings.glitchtipDsn,
@@ -54,7 +54,7 @@ export const POST = apiHandler(async (request: NextRequest) => {
if (!delivery.ok) {
getEvent()?.addWarning("Glitchtip event rejected: " + delivery.method + " " + delivery.status + " " + delivery.details);
return apiError("Glitchtip konnte Fehler nicht annehmen", 502);
return apiError("Glitchtip could not accept error", 502);
}
return apiSuccess({ sent: true });