welsh lang updates

This commit is contained in:
2024-06-10 10:36:27 +01:00
parent ab7f050a1e
commit f8a2d44443
14 changed files with 132 additions and 94 deletions
@@ -475,6 +475,8 @@ export const RenderPickList = ({
...custom
}) => {
console.log(custom.disabled);
let { t } = useTranslation();
return (
<>
<div
@@ -503,11 +505,20 @@ export const RenderPickList = ({
disabled={custom.disabled}
onChange={onChange}
>
<option>Select...</option>
<option>{t("common:drop-down-select")}</option>
{Object.keys(optionsArr).map((key, index) => {
return (
<option key={key} value={optionsArr[key]}>
{optionsArr[key]}
{router.locale == "cy"
? optionsArr[key] == "Questionnaire"
? "Holiadur"
: optionsArr[key] == "Statement"
? "Datganiad"
: optionsArr[key] ==
"Final comments"
? "Sylwadau terfynol"
: optionsArr[key]
: optionsArr[key]}
</option>
);
})}