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
+17 -20
View File
@@ -223,7 +223,6 @@ let CreateCase = (props) => {
}) => {
let { t } = useTranslation();
const required = (value) => (value ? undefined : "Required");
console.log(custom.hint);
return (
<>
<div
@@ -378,7 +377,7 @@ let CreateCase = (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}
@@ -397,7 +396,7 @@ let CreateCase = (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}
@@ -435,17 +434,17 @@ let CreateCase = (props) => {
appTypeCollection = getFormCollectionByID(whichAppealType);
console.log(
"/newappeal" +
"/" +
appTypeCollection.UrlName +
"?lpa=" +
values.lpaTypes +
"&apt=" +
whichAppealType +
"&id=" //+
// data.incidentid
);
// console.log(
// "/newappeal" +
// "/" +
// appTypeCollection.UrlName +
// "?lpa=" +
// values.lpaTypes +
// "&apt=" +
// whichAppealType +
// "&id=" //+
// // data.incidentid
// );
delete values.confirmHASCAS;
@@ -534,15 +533,13 @@ let CreateCase = (props) => {
<Radiofield
name={"confirmHASCAS"}
datafieldname={"confirmHASCAS"}
label={"Confirm HAS/CAS appeal is required"}
hint={
"This appeal route is only applicable if your application relates the refusal of planning permission, orthe refusal of an application to vary or remove a condition attached to a previous permision. All other applications will be submitted via a Section 78 Planning Appeal"
}
options="[true|Yes,false|No]"
label={t("newappeal:hascas-confirmation-label")}
hint={t("newappeal:hascas-confirmation-hint")}
options="[true|newappeal:yes-option-label,false|newappeal:no-option-label]"
id={"confirmHASCAS"}
className="govuk-radios__input"
validate={"[required]"}
errorMsg="Select an option"
errorMsg={t("newappeal:select-an-option-label")}
/>
)}
<button