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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user