welsh trans for validation message

This commit is contained in:
2022-06-14 18:21:47 +01:00
parent cb9995da75
commit b3ce573c9c
6 changed files with 39 additions and 32 deletions
+4 -4
View File
@@ -635,7 +635,7 @@ export function YesNofield(props) {
id={props.name}
className={"govuk-radios__input"}
validate={eval(validation)}
errorMsg="Select an option"
errorMsg={t("newappeal:select-an-option-label")}
component={RenderYesNo}
inline={_.has(props, "inline") ? props.inline : "true"}
requiredDocumentLabel={props.requiredDocumentLabel}
@@ -807,7 +807,7 @@ export function Radiofield(props) {
options={fieldOptions}
id={name}
//validate={[required]}
errorMsg="Select an option"
errorMsg={t("newappeal:select-an-option-label")}
component={RenderRadio}
inline={props.inline}
hint={props.hint}
@@ -826,7 +826,7 @@ export function Radiofield(props) {
options={fieldOptions}
id={name}
//validate={[required]}
errorMsg="Select an option"
errorMsg={t("newappeal:select-an-option-label")}
component={RenderRadio}
inline={props.inline}
hint={props.hint}
@@ -930,7 +930,7 @@ export function CheckBoxfield(props) {
id={props.id}
className={props.className}
//validate={[required]}
errorMsg="Select an option"
errorMsg={t("newappeal:select-an-option-label")}
component={RenderCheckBox}
/>
);