update language translations placeholders
This commit is contained in:
@@ -34,7 +34,7 @@ export default function Footer(props) {
|
||||
const copyToClipBoard = async (copyMe) => {
|
||||
try {
|
||||
await navigator.clipboard.writeText(copyMe);
|
||||
setCopySuccess(" - done!");
|
||||
setCopySuccess(" - " + t("common:social-bar-share-copy-link-done"));
|
||||
} catch (err) {
|
||||
setCopySuccess("Failed to copy!");
|
||||
}
|
||||
@@ -145,7 +145,8 @@ export default function Footer(props) {
|
||||
<span className="vo_hidden">
|
||||
Share this page via{" "}
|
||||
</span>
|
||||
Copy Link {copySuccess}
|
||||
{t("common:social-bar-share-copy-link")}{" "}
|
||||
{copySuccess}
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -138,12 +138,20 @@ const AwaitingSubmissionFromBlob = (props) => {
|
||||
</div>
|
||||
<div>
|
||||
<b>{t("myportal:appeal-type-label")}:</b>{" "}
|
||||
{
|
||||
getFormCollectionByID(
|
||||
showTopThreeArr[key]
|
||||
.pinswg_appealcasetype
|
||||
).value
|
||||
}
|
||||
{router.locale == "cy"
|
||||
? jsonpath(
|
||||
'$..[?(@.value=="' +
|
||||
getFormCollectionByID(
|
||||
showTopThreeArr[key]
|
||||
.pinswg_appealcasetype
|
||||
).value +
|
||||
'")].value_cy',
|
||||
transLookup
|
||||
)
|
||||
: getFormCollectionByID(
|
||||
showTopThreeArr[key]
|
||||
.pinswg_appealcasetype
|
||||
).value || ""}
|
||||
</div>
|
||||
<div className="carModuleAddress">
|
||||
<b>{t("myportal:case-address")}:</b>{" "}
|
||||
|
||||
@@ -162,7 +162,7 @@ const TopThree = (props) => {
|
||||
showTopThreeArr[key].pinswg_publishtoweb === false ? (
|
||||
<span>
|
||||
{showTopThreeArr[key].ticketnumber}{" "}
|
||||
<b> - Pending</b>
|
||||
<b> - {t("myportal:appeal-pending-label")}</b>
|
||||
</span>
|
||||
) : (
|
||||
<Link
|
||||
@@ -240,11 +240,18 @@ const TopThree = (props) => {
|
||||
topThreeType == "watchedCases") && ( */}
|
||||
<div>
|
||||
<b>{t("myportal:appeal-type-label")}:</b>{" "}
|
||||
{
|
||||
showTopThreeArr[key][
|
||||
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
|
||||
]
|
||||
}
|
||||
{router.locale == "cy"
|
||||
? jsonpath(
|
||||
'$..[?(@.value=="' +
|
||||
showTopThreeArr[key][
|
||||
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
|
||||
] +
|
||||
'")].value_cy',
|
||||
transLookup
|
||||
)
|
||||
: showTopThreeArr[key][
|
||||
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
|
||||
] || ""}
|
||||
</div>
|
||||
{/* )} */}
|
||||
{/* {topThreeType != "awaitingSubmission" ? ( */}
|
||||
|
||||
@@ -188,12 +188,28 @@ const TopThree = (props) => {
|
||||
<div className="cardModuleReference">
|
||||
<b>{t("myportal:representation-type")}:</b>
|
||||
{" "}
|
||||
{showTopThreeArr[key].representationType}
|
||||
|
||||
{router.locale == "cy"
|
||||
? jsonpath(
|
||||
'$..[?(@.value=="' +
|
||||
showTopThreeArr[key].representationType +
|
||||
'")].value_cy',
|
||||
transLookup
|
||||
)
|
||||
: showTopThreeArr[key].representationType || ""}
|
||||
</div>
|
||||
<div className="cardModuleReference">
|
||||
<b>{t("myportal:capacity")}:</b>
|
||||
{" "}
|
||||
{showTopThreeArr[key].representationCapacity}
|
||||
{router.locale == "cy"
|
||||
? jsonpath(
|
||||
'$..[?(@.value=="' +
|
||||
showTopThreeArr[key]
|
||||
.representationCapacity +
|
||||
'")].value_cy',
|
||||
transLookup
|
||||
)
|
||||
: showTopThreeArr[key].representationCapacity || ""}
|
||||
</div>
|
||||
<div className="cardModuleReference">
|
||||
<b>{t("myportal:date-raised")}:</b>
|
||||
|
||||
@@ -81,7 +81,8 @@ const ViewAllResults = (props) => {
|
||||
{currentView.viewKey == "myCases" &&
|
||||
resultsArr[key].pinswg_publishtoweb === false ? (
|
||||
<div className="cardModuleReference">
|
||||
{resultsArr[key].ticketnumber} <b> Pending</b>
|
||||
{resultsArr[key].ticketnumber}{" "}
|
||||
<b> {t("myportal:appeal-pending-label")}</b>
|
||||
</div>
|
||||
) : (
|
||||
<Link
|
||||
@@ -494,26 +495,36 @@ const ViewAllResults = (props) => {
|
||||
: currentView.viewKey == "myRepresentations"
|
||||
? repRaisedDate(item.createdDate) // ? router.locale == "cy"
|
||||
: // ? jsonpath(
|
||||
//
|
||||
// '$..[?(@.value=="' +
|
||||
// searchDetailsObj[key].value[0][
|
||||
// "statuscode@OData.Community.Display.V1.FormattedValue"
|
||||
// ] +
|
||||
// '")].value_cy',transLookup,
|
||||
// )
|
||||
// : searchDetailsObj[key].value[0][
|
||||
// "statuscode@OData.Community.Display.V1.FormattedValue"
|
||||
// ] || "N/A"
|
||||
// : router.locale == "cy"
|
||||
// ? jsonpath(
|
||||
//
|
||||
// '$..[?(@.value=="' +
|
||||
// item[
|
||||
// "statuscode@OData.Community.Display.V1.FormattedValue"
|
||||
// ] +
|
||||
// '")].value_cy',transLookup,
|
||||
// )
|
||||
item[
|
||||
//
|
||||
// '$..[?(@.value=="' +
|
||||
// searchDetailsObj[key].value[0][
|
||||
// "statuscode@OData.Community.Display.V1.FormattedValue"
|
||||
// ] +
|
||||
// '")].value_cy',transLookup,
|
||||
// )
|
||||
// : searchDetailsObj[key].value[0][
|
||||
// "statuscode@OData.Community.Display.V1.FormattedValue"
|
||||
// ] || "N/A"
|
||||
// : router.locale == "cy"
|
||||
// ? jsonpath(
|
||||
//
|
||||
// '$..[?(@.value=="' +
|
||||
// item[
|
||||
// "statuscode@OData.Community.Display.V1.FormattedValue"
|
||||
// ] +
|
||||
// '")].value_cy',transLookup,
|
||||
// )
|
||||
|
||||
router.locale == "cy"
|
||||
? jsonpath(
|
||||
'$..[?(@.value=="' +
|
||||
item[
|
||||
"statuscode@OData.Community.Display.V1.FormattedValue"
|
||||
] +
|
||||
'")].value_cy',
|
||||
transLookup
|
||||
)
|
||||
: item[
|
||||
"statuscode@OData.Community.Display.V1.FormattedValue"
|
||||
] || "N/A"}
|
||||
</dd>
|
||||
|
||||
@@ -47,9 +47,14 @@ const WatchedCases = (props) => {
|
||||
});
|
||||
}}
|
||||
>
|
||||
{t("myportal:viewall-link")}{" "}
|
||||
{/* {t("myportal:viewall-link")}{" "}
|
||||
{props.watchedCases.watchedCases["@odata.count"] +
|
||||
" cases"}
|
||||
" cases"} */}
|
||||
{t("myportal:viewall-link-count", {
|
||||
count: props.watchedCases.watchedCases[
|
||||
"@odata.count"
|
||||
],
|
||||
})}
|
||||
</Link>
|
||||
</div>
|
||||
)}
|
||||
|
||||
@@ -474,7 +474,7 @@ let BuildSection = (props) => {
|
||||
|
||||
{savingStatus ? (
|
||||
<span className=" progress-save-active">
|
||||
Saving data
|
||||
{router.locale == "cy" ? "Nôl data" : "Saving data"}
|
||||
<img
|
||||
className="data-loading-icon"
|
||||
src="/assets/images/loading.gif"
|
||||
|
||||
@@ -598,5 +598,33 @@
|
||||
"value_cy": "Ymweliad safle (Rhithwir)",
|
||||
"pinswg_decision": 846040010
|
||||
}
|
||||
],
|
||||
"representation-capacity": [
|
||||
{
|
||||
"value": "Appellant",
|
||||
"value_cy": "Apelydd"
|
||||
},
|
||||
{
|
||||
"value": "Agent",
|
||||
"value_cy": "Asiant"
|
||||
},
|
||||
{
|
||||
"value": "Interested Party",
|
||||
"value_cy": "Parti â Diddordeb"
|
||||
}
|
||||
],
|
||||
"representation-type": [
|
||||
{
|
||||
"value": "Statement",
|
||||
"value_cy": "Datganiad"
|
||||
},
|
||||
{
|
||||
"value": "Questionnaire",
|
||||
"value_cy": "Holiadur"
|
||||
},
|
||||
{
|
||||
"value": "Final comments",
|
||||
"value_cy": "Sylwadau terfynol"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -42,6 +42,8 @@
|
||||
"social-bar-share-link": "Rhannu’r dudalen hon",
|
||||
"social-bar-share-via-link": "Rhannu’r dudalen hon ar",
|
||||
"social-shared-from": "Rhannwyd o",
|
||||
"social-bar-share-copy-link": "Copïo Dolen",
|
||||
"social-bar-share-copy-link-done": "gwneud!",
|
||||
"breadcrumb-search-results": "Canlyniadau chwilio",
|
||||
"breadcrumb-advanced-search": "Chwilio uwch",
|
||||
"breadcrumb-advanced-search-results": "Canlyniadau chwilio uwch",
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"viewall-link": "Gweld y cyfan",
|
||||
"viewall-link-count": "Gweld pob un o'r {{count}} achos",
|
||||
"page-title": "Fy mhorth",
|
||||
"makenewappeal-card-title": "Gwneud apêl newydd",
|
||||
"makenewappeal-card-paragraph-one": "Cyn cyflwyno apêl newydd, sicrhewch eich bod wedi darllen yr holl ganllawiau sy'n",
|
||||
@@ -43,5 +44,6 @@
|
||||
"representation-type": "Math o gynrychiolaeth",
|
||||
"capacity": "Gallu",
|
||||
"date-raised": "Dyddiad codi",
|
||||
"submission-processing-label": "Prosesu cyflwyniad"
|
||||
"submission-processing-label": "Prosesu cyflwyniad",
|
||||
"appeal-pending-label": "Arfaeth"
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"viewall-link": "View all",
|
||||
"viewall-link-count": "Gweld pob un o'r {count} achos",
|
||||
"parent-page-title": "Fy Mhorth",
|
||||
"page-title": "Apêl newydd",
|
||||
"select-lpa-label": "Dewiswch eich Awdurdod Cynllunio Lleol (ACLl)",
|
||||
|
||||
@@ -42,6 +42,8 @@
|
||||
"social-bar-share-link": "Share this page",
|
||||
"social-bar-share-via-link": "Share this page via",
|
||||
"social-shared-from": "Shared from",
|
||||
"social-bar-share-copy-link": "Copy Link",
|
||||
"social-bar-share-copy-link-done": "done!",
|
||||
"breadcrumb-search-results": "Search results",
|
||||
"breadcrumb-advanced-search": "Advanced search",
|
||||
"breadcrumb-advanced-search-results": "Advanced search results",
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"viewall-link": "View all",
|
||||
"viewall-link-count": "View all {{count}} cases",
|
||||
"page-title": "My Portal",
|
||||
"makenewappeal-card-title": "Make a new appeal",
|
||||
"makenewappeal-card-paragraph-one": "Before submitting a new appeal, please ensure you have read all of the guidance",
|
||||
@@ -43,5 +44,6 @@
|
||||
"representation-type": "Representation type",
|
||||
"capacity": "Capacity",
|
||||
"date-raised": "Date raised",
|
||||
"submission-processing-label": "Submission processing"
|
||||
"submission-processing-label": "Submission processing",
|
||||
"appeal-pending-label": "Pending"
|
||||
}
|
||||
Reference in New Issue
Block a user