From 2a8caf6e7d78d5b046eb35b45caecd8baf6a70ef Mon Sep 17 00:00:00 2001 From: Maurice Date: Sat, 27 Jun 2026 11:56:31 +0200 Subject: [PATCH] fix(share): translate the day label on the public share page (#1296) Untitled days on the public share page rendered as a hardcoded English 'Day N' instead of the dayplan.dayN key used everywhere else, so they stayed English regardless of the viewer's language. The key is already translated in every locale. --- client/src/pages/SharedTripPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/pages/SharedTripPage.tsx b/client/src/pages/SharedTripPage.tsx index ef262b18..09fa6c4a 100644 --- a/client/src/pages/SharedTripPage.tsx +++ b/client/src/pages/SharedTripPage.tsx @@ -196,7 +196,7 @@ export default function SharedTripPage() { style={{ padding: '12px 16px', cursor: 'pointer', display: 'flex', alignItems: 'center', gap: 10 }}>
{di + 1}
-
{day.title || `Day ${day.day_number}`}
+
{day.title || t('dayplan.dayN', { n: day.day_number })}
{day.date &&
{new Date(day.date + 'T00:00:00Z').toLocaleDateString(locale, { weekday: 'short', day: 'numeric', month: 'short', timeZone: 'UTC' })}
}
{dayAccs.map((acc: any) => (