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
@@ -61,7 +61,7 @@ let RepCapacitySelection = (props) => {
options={capacityOptionsArr}
id="representationCapacity"
className="govuk-radios__input"
errorMsg="Select an option"
errorMsg={t("newappeal:select-an-option-label")}
component={RenderRadioList}
validate={[required]}
/>
+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}
/>
);
+7 -7
View File
@@ -397,7 +397,7 @@ let AboutYou = (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}
@@ -416,7 +416,7 @@ let AboutYou = (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}
@@ -508,7 +508,7 @@ let AboutYou = (props) => {
id={"pinswg_appellantagent"}
className="govuk-radios__input"
validate={"[required]"}
errorMsg="Select an option"
errorMsg={t("newappeal:select-an-option-label")}
/>
{appellantAgentValue == "846040000" && (
@@ -583,7 +583,7 @@ let AboutYou = (props) => {
id={"pinswg_contactprefs"}
className="govuk-radios__input"
validate={"[required]"}
errorMsg="Select an option"
errorMsg={t("newappeal:select-an-option-label")}
/>
<Radiofield
name={"pinswg_languagepreference"}
@@ -595,7 +595,7 @@ let AboutYou = (props) => {
id={"pinswg_languagepreference"}
className="govuk-radios__input"
validate={"[required]"}
errorMsg="Select an optionqqq"
errorMsg={t("newappeal:select-an-option-label")}
/>
</>
)}
@@ -740,7 +740,7 @@ let AboutYou = (props) => {
id={"pinswg_contactprefs"}
className="govuk-radios__input"
validate={[required]}
errorMsg="Select an option"
errorMsg={t("newappeal:select-an-option-label")}
/>
<Radiofield
name={"pinswg_languagepreference"}
@@ -752,7 +752,7 @@ let AboutYou = (props) => {
id={"pinswg_languagepreference"}
className="govuk-radios__input"
validate={[required]}
errorMsg="Select an optionwww"
errorMsg={t("newappeal:select-an-option-label")}
/>
</>
)}
+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
+5
View File
@@ -9,6 +9,11 @@
"select-default": "Dewiswch...",
"change-link-label": "Newid",
"submit-appeal-button": "Cyflwyno apêl",
"yes-option-label": "Ydw",
"no-option-label": "Na",
"select-an-option-label": "Dewiswch opsiwn",
"hascas-confirmation-label": "Cadarnhau bod angen apêl HAS/CAS",
"hascas-confirmation-hint": "Mae'r llwybr apêl hwn yn berthnasol dim ond os yw'ch cais yn ymwneud â gwrthod caniatâd cynllunio, neu wrthodiad i gais i amrywio neu ddileu amod sydd ynghlwm wrth ganiatâd blaenorol. Bydd pob cais arall yn cael ei gyflwyno drwy Apêl Cynllunio Adran 78",
"about-you-page-title": "Amdanat ti",
"about-you-on-behalf-label": "Cyflwynwyd apêl ar ran:",
"about-you-who-can-appeal-label": "Pwy all apelio?",
+5
View File
@@ -9,6 +9,11 @@
"select-default": "Select...",
"change-link-label": "Change",
"submit-appeal-button": "Submit appeal",
"yes-option-label": "Yes",
"no-option-label": "No",
"select-an-option-label": "Select an option",
"hascas-confirmation-label": "Confirm HAS/CAS appeal is required",
"hascas-confirmation-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",
"about-you-page-title": "About you",
"about-you-on-behalf-label": "Appeal submitted on behalf of:",
"about-you-who-can-appeal-label": "Who can appeal?",