From 3c81b97e11181e1ffc52016bc2f6d178cade4904 Mon Sep 17 00:00:00 2001 From: SarahBellaha Date: Tue, 7 Jan 2025 07:44:52 +0100 Subject: [PATCH] front: stdcm: display the application date in the chosen language Signed-off-by: SarahBellaha --- .../stdcm/components/StdcmResults/SimulationReportSheet.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/front/src/applications/stdcm/components/StdcmResults/SimulationReportSheet.tsx b/front/src/applications/stdcm/components/StdcmResults/SimulationReportSheet.tsx index d9e2d202f64..167801d507b 100644 --- a/front/src/applications/stdcm/components/StdcmResults/SimulationReportSheet.tsx +++ b/front/src/applications/stdcm/components/StdcmResults/SimulationReportSheet.tsx @@ -7,6 +7,7 @@ import { useTranslation } from 'react-i18next'; import iconAlert from 'assets/simulationReportSheet/icon_alert_fill.png'; import logoSNCF from 'assets/simulationReportSheet/logo_sncf_reseau.png'; +import i18n from 'i18n'; import type { StdcmPathStep } from 'reducers/osrdconf/types'; import { dateToHHMMSS, formatDateToString, formatDay } from 'utils/date'; import { msToKmh } from 'utils/physics'; @@ -124,7 +125,7 @@ const SimulationReportSheet = ({ {t('applicationDate')} - {formatDay(departureTime)} + {formatDay(departureTime, i18n.language)} {t('referencePath')} {fakeInformation.path_number1}