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');