Umlaute statt Umschreibungen
Oberflaeche, Fehlermeldungen und Kommentare schrieben durchgehend ae, oe, ue und ss. Dafuer gab es keinen Grund - die Anwendung ist deutschsprachig und laeuft durchgehend in UTF-8. Betroffen waren 55 Dateien, darunter alle sichtbaren Texte: Guthaben-Zaehler, Import, Nutzerverwaltung, Passwortwechsel und die Zwei-Faktor-Einrichtung. Der Name einer Migration bleibt im README-Beispiel bewusst bei ASCII, weil daraus ein Verzeichnisname wird.
This commit is contained in:
+1
-1
@@ -62,7 +62,7 @@ export async function api<T>(path: string, options: RequestOptions = {}): Promis
|
||||
return payload as T;
|
||||
}
|
||||
|
||||
/** Datei-Upload laeuft ohne JSON-Header, aber mit demselben CSRF-Schutz. */
|
||||
/** Datei-Upload läuft ohne JSON-Header, aber mit demselben CSRF-Schutz. */
|
||||
export async function uploadFile<T>(path: string, file: File): Promise<T> {
|
||||
const form = new FormData();
|
||||
form.append('file', file);
|
||||
|
||||
@@ -16,7 +16,7 @@ export const SOURCE_LABEL: Record<CreditSource, string> = {
|
||||
};
|
||||
|
||||
export const REASON_LABEL: Record<InactiveReason, string> = {
|
||||
PLAYER_INACTIVITY: 'Spieler-Inaktivitaet',
|
||||
PLAYER_INACTIVITY: 'Spieler-Inaktivität',
|
||||
REWORKED: 'Redesignt',
|
||||
OTHER: 'Anderer Grund',
|
||||
};
|
||||
|
||||
@@ -58,6 +58,6 @@ export function SessionProvider({ children }: { children: ReactNode }) {
|
||||
|
||||
export function useSession(): SessionState {
|
||||
const context = useContext(SessionContext);
|
||||
if (!context) throw new Error('useSession benoetigt einen SessionProvider');
|
||||
if (!context) throw new Error('useSession benötigt einen SessionProvider');
|
||||
return context;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user