From 1d8dda79a151dcdb54dc676d1eafe2a4eda613e8 Mon Sep 17 00:00:00 2001 From: Radouane Khouadri Date: Mon, 11 May 2026 20:58:17 +0200 Subject: [PATCH 1/3] init yup config before creating form schemas --- src/components/app-wrapper.jsx | 2 ++ src/translations/en.json | 4 ---- src/translations/fr.json | 3 --- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/components/app-wrapper.jsx b/src/components/app-wrapper.jsx index 7a4c31b376..f80438c2ad 100644 --- a/src/components/app-wrapper.jsx +++ b/src/components/app-wrapper.jsx @@ -6,6 +6,8 @@ */ import { useMemo } from 'react'; +// need to configuer yup before creating the form schemas +import './utils/yup-config'; import App from './app'; import { createTheme, diff --git a/src/translations/en.json b/src/translations/en.json index 4c812a592b..12b107bd71 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -993,10 +993,6 @@ "GeneratorsOrdering": "Substations hierarchy", "ReplacingLine": "Replacing line", - "YupRequired": "This field is required", - "YupNotTypeNumber": "This field only accepts numeric values", - "YupNotTypeDefault": "Field value format is incorrect", - "NetworkEquipmentNotFound": "The equipment \"{equipmentId}\" does not exist in this network", "SLDOpenedInTheGrid": "The {diagramType} \"{equipmentId}\" was opened in the image grid", "NADOpenedInTheGrid": "The network area diagram \"{elementId}\" was opened in the image grid", diff --git a/src/translations/fr.json b/src/translations/fr.json index 12d38e8ed8..8830b65997 100644 --- a/src/translations/fr.json +++ b/src/translations/fr.json @@ -988,9 +988,6 @@ "GeneratorsFiltersFrequencyReserveToolTip": "Les saisies sont appliquées dans l’ordre de la liste (en remplaçant éventuellement des saisies au fur et à mesure si un groupe est inclus dans plusieurs filtres)", "GeneratorsOrdering": "Hiérarchie des sites", "ReplacingLine": "Liaison de remplacement", - "YupRequired": "Ce champ doit être renseigné", - "YupNotTypeNumber": "Ce champ n'accepte que des valeurs numériques", - "YupNotTypeDefault": "La valeur du champ n'est pas au bon format", "NetworkEquipmentNotFound": "L'ouvrage \"{equipmentId}\" n'existe pas dans ce réseau", From f5e19eb6d44ac74e7566e7006ff01c38b958e853 Mon Sep 17 00:00:00 2001 From: Radouane Khouadri Date: Tue, 19 May 2026 15:48:12 +0200 Subject: [PATCH 2/3] update comment --- src/components/app-wrapper.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/app-wrapper.jsx b/src/components/app-wrapper.jsx index f80438c2ad..14775a00ed 100644 --- a/src/components/app-wrapper.jsx +++ b/src/components/app-wrapper.jsx @@ -6,7 +6,9 @@ */ import { useMemo } from 'react'; -// need to configuer yup before creating the form schemas +// need to configure yup before creating any form schema as we have an issue where the form schema +// is created before configuring the translation in yup, in that case it will take the default +// beahaviour of yup import './utils/yup-config'; import App from './app'; import { From bb9eacfe6bdd69d59ee55ae7b5478ad2ad121c51 Mon Sep 17 00:00:00 2001 From: KHOUADRI Radouane Date: Wed, 20 May 2026 14:56:37 +0200 Subject: [PATCH 3/3] fix typo Co-authored-by: klesaulnier <42617371+klesaulnier@users.noreply.github.com> --- src/components/app-wrapper.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/app-wrapper.jsx b/src/components/app-wrapper.jsx index 14775a00ed..93db807b47 100644 --- a/src/components/app-wrapper.jsx +++ b/src/components/app-wrapper.jsx @@ -8,7 +8,7 @@ import { useMemo } from 'react'; // need to configure yup before creating any form schema as we have an issue where the form schema // is created before configuring the translation in yup, in that case it will take the default -// beahaviour of yup +// behaviour of yup import './utils/yup-config'; import App from './app'; import {