diff --git a/src/setup/locales/en/translation.json b/src/setup/locales/en/translation.json index fba37d84..d8b81da4 100644 --- a/src/setup/locales/en/translation.json +++ b/src/setup/locales/en/translation.json @@ -58,7 +58,7 @@ "backToHomeShort": "Back", "seasonAndEpisode": "S{{season}} E{{episode}}", "timeLeft": "{{timeLeft}} left", - "finishAt": "Finish at {{timeFinished}}", + "finishAt": "Finish at {{timeFinished, datetime}}", "buttons": { "episodes": "Episodes", "source": "Source", diff --git a/src/setup/locales/fr/translation.json b/src/setup/locales/fr/translation.json index fe9d73eb..505aa046 100644 --- a/src/setup/locales/fr/translation.json +++ b/src/setup/locales/fr/translation.json @@ -40,7 +40,7 @@ "backToHomeShort": "Retour", "seasonAndEpisode": "S{{season}} E{{episode}}", "timeLeft": "{{timeLeft}} restant", - "finishAt": "Terminer à {{timeFinished}}", + "finishAt": "Terminer à {{timeFinished, datetime}}", "buttons": { "episodes": "Épisodes", "source": "Source", diff --git a/src/setup/locales/nl/translation.json b/src/setup/locales/nl/translation.json index 94e796e8..23ecb618 100644 --- a/src/setup/locales/nl/translation.json +++ b/src/setup/locales/nl/translation.json @@ -58,7 +58,7 @@ "backToHomeShort": "Terug", "seasonAndEpisode": "S{{season}} A{{episode}}", "timeLeft": "Nog {{timeLeft}}", - "finishAt": "Afgelopen om {{timeFinished}}", + "finishAt": "Afgelopen om {{timeFinished, datetime}}", "buttons": { "episodes": "Afleveringen", "source": "Bron", diff --git a/src/video/components/actions/TimeAction.tsx b/src/video/components/actions/TimeAction.tsx index bab9e101..5767e039 100644 --- a/src/video/components/actions/TimeAction.tsx +++ b/src/video/components/actions/TimeAction.tsx @@ -61,13 +61,12 @@ export function TimeAction(props: Props) { const timeFinished = new Date( new Date().getTime() + (videoTime.duration * 1000) / mediaPlaying.playbackSpeed - ).toLocaleTimeString("en-US", { - hour: "numeric", - minute: "numeric", - hour12: true, - }); + ); const formattedTimeFinished = ` - ${t("videoPlayer.finishAt", { timeFinished, + formatParams: { + timeFinished: { hour: "numeric", minute: "numeric" }, + }, })}`; let formattedTime: string;