Merged PR 2387: update welsh translations for new appeal pdf

update welsh translations for new appeal pdf

Related work items: #23562
This commit is contained in:
Robert Bond
2026-06-15 12:03:28 +00:00
parent 628b2b71fd
commit 1e14fbc709
3 changed files with 79 additions and 18 deletions
+36 -10
View File
@@ -13,6 +13,7 @@ import { StyleSheet, Text, View, Font } from "@react-pdf/renderer";
import Html from "react-pdf-html";
import { DOMParser, XMLSerializer } from "@xmldom/xmldom";
import transLookup from "../../data/lookuptranslations.json";
export const AppealRow_pdf = (props) => {
let { t } = useTranslation();
@@ -324,7 +325,9 @@ export const AppealRow_pdf = (props) => {
: fieldCopy;
const transData = require(
"../../locales/en/" +
"../../locales/" +
locale +
"/" +
(typeof fieldCopy != "undefined"
? fieldCopy.split(":")[0]
: "common") +
@@ -432,13 +435,32 @@ export const AppealRow_pdf = (props) => {
)}
</Text>
<Text style={styles.questionAnswer}>
{getPickListLabel(
props.pickListData,
datafieldname[0].value,
props.props[
datafieldname[0].value
]
)}
{locale == "cy"
? jsonpath({
path:
'$..[?(@ && @.value=="' +
getPickListLabel(
props.pickListData,
datafieldname[0]
.value,
props.props[
datafieldname[0]
.value
]
) +
'")].value_cy',
json: transLookup,
eval: true
})
: getPickListLabel(
props.pickListData,
datafieldname[0]
.value,
props.props[
datafieldname[0]
.value
]
)}
</Text>
</View>
);
@@ -687,8 +709,12 @@ export const AppealRow_pdf = (props) => {
{props.props[
datafieldname[0].value
] == "true"
? "Yes"
: "No"}
? locale == "cy"
? "Ydw"
: "Yes"
: locale == "cy"
? "Na"
: "No"}
</Text>
</View>
</View>