diff --git a/src/blocks/PasswordInput.tsx b/src/blocks/PasswordInput.tsx index 1e5d2952f..d6e7c3031 100644 --- a/src/blocks/PasswordInput.tsx +++ b/src/blocks/PasswordInput.tsx @@ -178,6 +178,8 @@ export const PasswordInput = memo( key={index} className={fr.cx("fr-message", `fr-message--${severity}`)} id={`${messageGroupId}-${index}`} + data-fr-valid={t("valid")} + data-fr-error={t("error")} > {message}

@@ -218,7 +220,9 @@ const { useTranslation, addPasswordInputTranslations } = createComponentI18nApi( /* spell-checker: disable */ "show": "Afficher", "show password": "Afficher le mot de passe", - "your password must contain": "Votre mot de passe doit contenir :" + "your password must contain": "Votre mot de passe doit contenir :", + "valid": "Validé", + "error": "En erreur" /* spell-checker: enable */ } }); @@ -228,7 +232,9 @@ addPasswordInputTranslations({ "messages": { "show": "Show", "show password": "Show password", - "your password must contain": "Your password must contain:" + "your password must contain": "Your password must contain:", + "valid": "Valid", + "error": "Error" } }); @@ -238,7 +244,9 @@ addPasswordInputTranslations({ /* spell-checker: disable */ "show": "Mostrar", "show password": "Mostrar contraseña", - "your password must contain": "Su contraseña debe contener:" + "your password must contain": "Su contraseña debe contener:", + "valid": "Válido", + "error": "No válido" /* spell-checker: enable */ } });