From b6f6cdeffe0c553b768836bb36d0d47d6d281f0e Mon Sep 17 00:00:00 2001 From: Codex Agent Date: Thu, 20 Nov 2025 22:13:43 +0100 Subject: [PATCH] =?UTF-8?q?meldungen=20in=20g=C3=A4ste-pwa=20erg=C3=A4nzt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/js/guest/i18n/messages.ts | 14 ++++++++++++++ resources/js/guest/pages/UploadPage.tsx | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/resources/js/guest/i18n/messages.ts b/resources/js/guest/i18n/messages.ts index 1285da1..2771cf6 100644 --- a/resources/js/guest/i18n/messages.ts +++ b/resources/js/guest/i18n/messages.ts @@ -475,9 +475,16 @@ export const messages: Record = { processing: 'Verarbeite Foto...', uploading: 'Foto wird hochgeladen...', preparing: 'Foto wird vorbereitet...', + optimizing: 'Foto wird optimiert...', completed: 'Upload abgeschlossen.', failed: 'Upload fehlgeschlagen. Bitte versuche es erneut.', }, + optimizedNotice: 'Wir haben dein Foto verkleinert, damit der Upload schneller klappt. Eingespart: {saved}', + optimizedFallback: 'Optimierung nicht möglich – wir laden das Original hoch.', + retrying: 'Verbindung holperig – neuer Versuch ({attempt}).', + errors: { + tooLargeHint: 'Das Foto war zu groß. Bitte erneut versuchen – wir verkleinern es automatisch.', + }, controls: { toggleGrid: 'Raster umschalten', toggleCountdown: 'Countdown umschalten', @@ -1112,9 +1119,16 @@ export const messages: Record = { processing: 'Processing photo...', uploading: 'Uploading photo...', preparing: 'Preparing photo...', + optimizing: 'Optimizing photo...', completed: 'Upload complete.', failed: 'Upload failed. Please try again.', }, + optimizedNotice: 'We optimized your photo to speed up the upload. Saved: {saved}', + optimizedFallback: 'Could not optimize – uploading the original.', + retrying: 'Connection unstable – retrying ({attempt}).', + errors: { + tooLargeHint: 'The photo was too large. Please try again — we compress it automatically.', + }, controls: { toggleGrid: 'Toggle grid', toggleCountdown: 'Toggle countdown', diff --git a/resources/js/guest/pages/UploadPage.tsx b/resources/js/guest/pages/UploadPage.tsx index b261381..c48c43c 100644 --- a/resources/js/guest/pages/UploadPage.tsx +++ b/resources/js/guest/pages/UploadPage.tsx @@ -204,7 +204,7 @@ const [canUpload, setCanUpload] = useState(true); async function loadTask() { if (taskId === null) return; - const currentTaskId = taskId; + const currentTaskId = Number(taskId); const fallbackTitle = t('upload.taskInfo.fallbackTitle').replace('{id}', `${currentTaskId}`); const fallbackDescription = t('upload.taskInfo.fallbackDescription'); const fallbackInstructions = t('upload.taskInfo.fallbackInstructions');