fix(web): use proper umlauts in remaining server-side error messages
All checks were successful
ci/someci/push/web Pipeline was successful

Sweep of server action error strings — eight ASCII fallbacks replaced with
ä/ö/ü/ß across three +page.server.ts files: Pruefung -> Prüfung,
bestaetige -> bestätige, waehle -> wähle, fuelle -> fülle, Loeschen ->
Löschen, Statusaenderung -> Statusänderung, Ungueltiger -> Ungültiger.

Discovery agent_status enum literals ('bestaetigt', 'unklar', etc.) are
intentionally left as ASCII — they must match the LLM schema constants on
the backend.
This commit is contained in:
2026-04-28 23:07:15 +02:00
parent 8d8d96c231
commit 5ad8126b81
3 changed files with 8 additions and 8 deletions

View File

@@ -48,7 +48,7 @@ export const actions: Actions = {
const adminNotes = form.get('admin_notes')?.toString() ?? '';
if (!status || !['approved', 'rejected'].includes(status)) {
return fail(400, { error: 'Ungueltiger Status.' });
return fail(400, { error: 'Ungültiger Status.' });
}
try {
@@ -60,7 +60,7 @@ export const actions: Actions = {
return { success: true, action: status };
} catch (err) {
const message = err instanceof Error ? err.message : 'Statusaenderung fehlgeschlagen.';
const message = err instanceof Error ? err.message : 'Statusänderung fehlgeschlagen.';
return fail(500, { error: message });
}
},
@@ -74,7 +74,7 @@ export const actions: Actions = {
return { deleted: true };
} catch (err) {
const message = err instanceof Error ? err.message : 'Loeschen fehlgeschlagen.';
const message = err instanceof Error ? err.message : 'Löschen fehlgeschlagen.';
return fail(500, { error: message });
}
},

View File

@@ -37,10 +37,10 @@ export const actions: Actions = {
const formState = { category, email, message, duplicateUrl };
if (!FEEDBACK_CATEGORIES.includes(category as (typeof FEEDBACK_CATEGORIES)[number])) {
return fail(400, { error: 'Bitte waehle eine Kategorie.', ...formState });
return fail(400, { error: 'Bitte wähle eine Kategorie.', ...formState });
}
if (!email || !message) {
return fail(400, { error: 'Bitte fuelle alle Pflichtfelder aus.', ...formState });
return fail(400, { error: 'Bitte fülle alle Pflichtfelder aus.', ...formState });
}
if (message.length < 10) {
return fail(400, { error: 'Die Nachricht ist zu kurz (min. 10 Zeichen).', ...formState });
@@ -49,7 +49,7 @@ export const actions: Actions = {
return fail(400, { error: 'Bitte gib die URL des Duplikats an.', ...formState });
}
if (!turnstileToken) {
return fail(400, { error: 'Bitte bestaetige die Spam-Pruefung.', ...formState });
return fail(400, { error: 'Bitte bestätige die Spam-Prüfung.', ...formState });
}
try {

View File

@@ -53,11 +53,11 @@ export const actions: Actions = {
};
if (!name || !city || !startDate || !endDate || !submitterEmail || !submitterName) {
return fail(400, { error: 'Bitte fuelle alle Pflichtfelder aus.', ...formState });
return fail(400, { error: 'Bitte fülle alle Pflichtfelder aus.', ...formState });
}
if (!turnstileToken) {
return fail(400, { error: 'Bitte bestaetige die Spam-Pruefung.', ...formState });
return fail(400, { error: 'Bitte bestätige die Spam-Prüfung.', ...formState });
}
const body: Record<string, unknown> = {