welsh trans for questionnaire

This commit is contained in:
2023-11-02 10:14:32 +00:00
parent 1477ed74e4
commit 08552da757
9 changed files with 297 additions and 194 deletions
@@ -23,8 +23,10 @@ import { select } from "xpath";
import jsonpath from "jsonpath";
import { getFormCollectionByID } from "../../../../components/utils";
let S78_Questionnaire = (props) => {
let { t } = useTranslation();
let S78_Questionnaire = async (props) => {
//let { t } = useTranslation();
let t = await getT(props.reqQuery.__nextLocale, "common");
const router = useRouter();
const { locale } = router;
@@ -953,7 +955,6 @@ let S78_Questionnaire = (props) => {
validate={[required]}
/>
</div>
<div className="govuk-form-group">
{onBehalfOfLPA}
<Field
@@ -974,11 +975,13 @@ let S78_Questionnaire = (props) => {
id="signedDate"
label={t("myrepresentations:s78-section-question-date")}
component={RenderDatePicker}
validate={[required]}
//validate={[required]}
errorMsg="Select a date"
dateStart="0"
dateEnd="1-y"
locale={locale}
/>
ss
</fieldset>
)}
</>