Translate remaining frontend

This commit is contained in:
Julian Appel 2026-07-22 23:25:53 +02:00
parent 7257deacdc
commit e4fd7e0df6
11 changed files with 79 additions and 53 deletions

View file

@ -37,7 +37,7 @@ async function request<T>(url: string, init?: RequestInit): Promise<T> {
if (!response.ok) {
const details = await response.text();
throw new Error(details || `Request failed with ${response.status}`);
throw new Error(details || `Anfrage fehlgeschlagen (Status ${response.status})`);
}
if (response.status === 204) {

View file

@ -184,7 +184,7 @@ export function parseNumeric(cellKey: CellKey, draft: string): number | undefine
}
const parsed = Number(trimmed);
if (Number.isNaN(parsed)) {
throw new Error(`Invalid number in ${cellKey}`);
throw new Error(`Ungültiger Zahlenwert in ${cellKey}`);
}
return parsed;
}