From e6bde5c525ecb0c9337d530504e452da7f4f272a Mon Sep 17 00:00:00 2001 From: elpatron Date: Mon, 1 Jun 2026 13:41:27 +0200 Subject: [PATCH] fix: shorten travel day badge to "Reisetag x" Use travel_day_number i18n key in journal cards and live log subtitle. Co-authored-by: Cursor --- client/src/components/LiveLogView.tsx | 2 +- client/src/components/LogEntriesList.tsx | 2 +- client/src/i18n/locales/da.json | 3 ++- client/src/i18n/locales/de.json | 3 ++- client/src/i18n/locales/en.json | 3 ++- client/src/i18n/locales/nb.json | 3 ++- client/src/i18n/locales/sv.json | 3 ++- 7 files changed, 12 insertions(+), 7 deletions(-) diff --git a/client/src/components/LiveLogView.tsx b/client/src/components/LiveLogView.tsx index af1a976..3e26e85 100644 --- a/client/src/components/LiveLogView.tsx +++ b/client/src/components/LiveLogView.tsx @@ -765,7 +765,7 @@ export default function LiveLogView({

{t('logs.live_title')}

{date && (

- {t('logs.day_of_travel')} {dayOfTravel} · {new Date(date).toLocaleDateString()} + {t('logs.travel_day_number', { number: dayOfTravel })} · {new Date(date).toLocaleDateString()}

)} diff --git a/client/src/components/LogEntriesList.tsx b/client/src/components/LogEntriesList.tsx index 2c24772..d0b2870 100644 --- a/client/src/components/LogEntriesList.tsx +++ b/client/src/components/LogEntriesList.tsx @@ -474,7 +474,7 @@ export default function LogEntriesList({
- {t('logs.day_of_travel')} {item.dayOfTravel} + {t('logs.travel_day_number', { number: item.dayOfTravel })} diff --git a/client/src/i18n/locales/da.json b/client/src/i18n/locales/da.json index a65ebd1..f9d3c4b 100644 --- a/client/src/i18n/locales/da.json +++ b/client/src/i18n/locales/da.json @@ -150,7 +150,8 @@ "sign_cleared_skipper_re_sign_title": "Skippers underskrift fjernet", "sign_cleared_skipper_re_sign": "Hændelsesloggen er blevet ændret. Skipperens underskrift er blevet fjernet. Godkend venligst igen.", "date": "dato", - "day_of_travel": "Rejsedag / rejsedag", + "day_of_travel": "Rejsedag", + "travel_day_number": "Rejsedag {{number}}", "departure": "Starthavn (rejse fra)", "destination": "Destinationsport (til)", "route": "Rejse fra/til", diff --git a/client/src/i18n/locales/de.json b/client/src/i18n/locales/de.json index 188b130..4c0bec2 100644 --- a/client/src/i18n/locales/de.json +++ b/client/src/i18n/locales/de.json @@ -150,7 +150,8 @@ "sign_cleared_skipper_re_sign_title": "Skipper-Unterschrift entfernt", "sign_cleared_skipper_re_sign": "Das Ereignisprotokoll wurde geändert. Die Skipper-Unterschrift wurde entfernt. Bitte erneut freigeben.", "date": "Datum", - "day_of_travel": "Tag der Reise / Reisetag", + "day_of_travel": "Reisetag", + "travel_day_number": "Reisetag {{number}}", "departure": "Start-Hafen (Reise von)", "destination": "Ziel-Hafen (nach)", "route": "Reise von/nach", diff --git a/client/src/i18n/locales/en.json b/client/src/i18n/locales/en.json index 8598c58..89bc4c0 100644 --- a/client/src/i18n/locales/en.json +++ b/client/src/i18n/locales/en.json @@ -150,7 +150,8 @@ "sign_cleared_skipper_re_sign_title": "Skipper signature removed", "sign_cleared_skipper_re_sign": "The event log was changed. The skipper signature was removed. Please sign again.", "date": "Date", - "day_of_travel": "Day of Travel", + "day_of_travel": "Travel day", + "travel_day_number": "Travel day {{number}}", "departure": "Departure Port (von)", "destination": "Destination Port (nach)", "route": "Route / Journey", diff --git a/client/src/i18n/locales/nb.json b/client/src/i18n/locales/nb.json index 6a5fb7f..65a717f 100644 --- a/client/src/i18n/locales/nb.json +++ b/client/src/i18n/locales/nb.json @@ -150,7 +150,8 @@ "sign_cleared_skipper_re_sign_title": "Skippers signatur fjernet", "sign_cleared_skipper_re_sign": "Hendelsesloggen har blitt endret. Skipperens signatur er fjernet. Vennligst godkjenn på nytt.", "date": "dato", - "day_of_travel": "Reisens dag / reisedag", + "day_of_travel": "Reisedag", + "travel_day_number": "Reisedag {{number}}", "departure": "Starthavn (reise fra)", "destination": "Destinasjonsport (til)", "route": "Reise fra/til", diff --git a/client/src/i18n/locales/sv.json b/client/src/i18n/locales/sv.json index 5025296..19cfdad 100644 --- a/client/src/i18n/locales/sv.json +++ b/client/src/i18n/locales/sv.json @@ -150,7 +150,8 @@ "sign_cleared_skipper_re_sign_title": "Skippers signatur borttagen", "sign_cleared_skipper_re_sign": "Händelseloggen har ändrats. Skepparens signatur har tagits bort. Vänligen godkänn igen.", "date": "datum", - "day_of_travel": "Resedag / resedag", + "day_of_travel": "Resedag", + "travel_day_number": "Resedag {{number}}", "departure": "Starthamn (resa från)", "destination": "Destinationsport (till)", "route": "Resa från/till",