forked from jappel/leistungsbilanz-ts
Translate remaining frontend
This commit is contained in:
parent
7257deacdc
commit
e4fd7e0df6
11 changed files with 79 additions and 53 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue