welsh lang updates
This commit is contained in:
@@ -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>
|
||||
);
|
||||
})}
|
||||
|
||||
Reference in New Issue
Block a user