diff --git a/src/components/app-wrapper.jsx b/src/components/app-wrapper.jsx index 7a4c31b376..93db807b47 100644 --- a/src/components/app-wrapper.jsx +++ b/src/components/app-wrapper.jsx @@ -6,6 +6,10 @@ */ 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 +// behaviour of yup +import './utils/yup-config'; import App from './app'; import { createTheme, diff --git a/src/translations/en.json b/src/translations/en.json index 99619bfd91..61dfc0dd2b 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -972,10 +972,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 a07fdd1d5b..c5168bac83 100644 --- a/src/translations/fr.json +++ b/src/translations/fr.json @@ -967,9 +967,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",