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:
@@ -19,6 +19,7 @@ import { AppealRow_pdf } from "./appealRow_pdf";
|
||||
|
||||
import transLookupCY from "../../locales/cy/newappeal.json";
|
||||
import transLookupEN from "../../locales/en/newappeal.json";
|
||||
import transLookup from "../../data/lookuptranslations.json";
|
||||
import fieldLookup from "../../data/crmfieldlookuptranslations.json";
|
||||
import { JSONPath as jsonpath } from "jsonpath-plus";
|
||||
|
||||
@@ -365,8 +366,12 @@ export const planningappeals78_pdf = ({ docProps, pickListData }) => {
|
||||
{values.caseObj
|
||||
.pinswg_appellantagent ==
|
||||
"846040000"
|
||||
? "Appellant"
|
||||
: "Agent"}
|
||||
? locale == "cy"
|
||||
? "Apelydd"
|
||||
: "Appellant"
|
||||
: locale == "cy"
|
||||
? "Asiant"
|
||||
: "Agent"}
|
||||
</Text>
|
||||
</View>
|
||||
<View
|
||||
@@ -469,8 +474,12 @@ export const planningappeals78_pdf = ({ docProps, pickListData }) => {
|
||||
{values.caseObj
|
||||
.pinswg_languagepreference ==
|
||||
"846040000"
|
||||
? "English"
|
||||
: "Welsh"}
|
||||
? locale == "cy"
|
||||
? "Saesneg"
|
||||
: "English"
|
||||
: locale == "cy"
|
||||
? "Cymraeg"
|
||||
: "Welsh"}
|
||||
</Text>
|
||||
</View>
|
||||
{values.caseObj.pinswg_appellantagent !=
|
||||
@@ -633,8 +642,12 @@ export const planningappeals78_pdf = ({ docProps, pickListData }) => {
|
||||
{values.caseObj
|
||||
.pinswg_agentlanguagepreference ==
|
||||
"846040000"
|
||||
? "English"
|
||||
: "Welsh"}
|
||||
? locale == "cy"
|
||||
? "Saesneg"
|
||||
: "English"
|
||||
: locale == "cy"
|
||||
? "Cymraeg"
|
||||
: "Welsh"}
|
||||
</Text>
|
||||
</View>
|
||||
</>
|
||||
@@ -653,10 +666,22 @@ export const planningappeals78_pdf = ({ docProps, pickListData }) => {
|
||||
)}
|
||||
</Text>
|
||||
<Text style={styles.questionAnswer}>
|
||||
{values.caseObj.pinswg_lpaname ||
|
||||
{/* {values.caseObj.pinswg_lpaname ||
|
||||
values.caseObj[
|
||||
"_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue"
|
||||
]}
|
||||
]} */}
|
||||
|
||||
{locale == "cy"
|
||||
? jsonpath({
|
||||
path:
|
||||
'$..[?(@ && @.value=="' +
|
||||
values.caseObj
|
||||
.pinswg_lpaname +
|
||||
'")].value_cy',
|
||||
json: transLookup,
|
||||
eval: true
|
||||
})
|
||||
: values.caseObj.pinswg_lpaname}
|
||||
</Text>
|
||||
</View>
|
||||
{/* <View
|
||||
|
||||
Reference in New Issue
Block a user