update language translations placeholders

This commit is contained in:
2024-04-11 11:26:07 +01:00
parent 282879c702
commit cb27f80e7f
13 changed files with 127 additions and 42 deletions
+3 -2
View File
@@ -34,7 +34,7 @@ export default function Footer(props) {
const copyToClipBoard = async (copyMe) => { const copyToClipBoard = async (copyMe) => {
try { try {
await navigator.clipboard.writeText(copyMe); await navigator.clipboard.writeText(copyMe);
setCopySuccess(" - done!"); setCopySuccess(" - " + t("common:social-bar-share-copy-link-done"));
} catch (err) { } catch (err) {
setCopySuccess("Failed to copy!"); setCopySuccess("Failed to copy!");
} }
@@ -145,7 +145,8 @@ export default function Footer(props) {
<span className="vo_hidden"> <span className="vo_hidden">
Share this page via{" "} Share this page via{" "}
</span> </span>
Copy Link {copySuccess} {t("common:social-bar-share-copy-link")}{" "}
{copySuccess}
</a> </a>
</li> </li>
</ul> </ul>
@@ -138,12 +138,20 @@ const AwaitingSubmissionFromBlob = (props) => {
</div> </div>
<div> <div>
<b>{t("myportal:appeal-type-label")}:</b>{" "} <b>{t("myportal:appeal-type-label")}:</b>{" "}
{ {router.locale == "cy"
getFormCollectionByID( ? jsonpath(
showTopThreeArr[key] '$..[?(@.value=="' +
.pinswg_appealcasetype getFormCollectionByID(
).value showTopThreeArr[key]
} .pinswg_appealcasetype
).value +
'")].value_cy',
transLookup
)
: getFormCollectionByID(
showTopThreeArr[key]
.pinswg_appealcasetype
).value || ""}
</div> </div>
<div className="carModuleAddress"> <div className="carModuleAddress">
<b>{t("myportal:case-address")}:</b>{" "} <b>{t("myportal:case-address")}:</b>{" "}
+13 -6
View File
@@ -162,7 +162,7 @@ const TopThree = (props) => {
showTopThreeArr[key].pinswg_publishtoweb === false ? ( showTopThreeArr[key].pinswg_publishtoweb === false ? (
<span> <span>
{showTopThreeArr[key].ticketnumber}{" "} {showTopThreeArr[key].ticketnumber}{" "}
<b> - Pending</b> <b> - {t("myportal:appeal-pending-label")}</b>
</span> </span>
) : ( ) : (
<Link <Link
@@ -240,11 +240,18 @@ const TopThree = (props) => {
topThreeType == "watchedCases") && ( */} topThreeType == "watchedCases") && ( */}
<div> <div>
<b>{t("myportal:appeal-type-label")}:</b>{" "} <b>{t("myportal:appeal-type-label")}:</b>{" "}
{ {router.locale == "cy"
showTopThreeArr[key][ ? jsonpath(
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" '$..[?(@.value=="' +
] showTopThreeArr[key][
} "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
] +
'")].value_cy',
transLookup
)
: showTopThreeArr[key][
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
] || ""}
</div> </div>
{/* )} */} {/* )} */}
{/* {topThreeType != "awaitingSubmission" ? ( */} {/* {topThreeType != "awaitingSubmission" ? ( */}
+18 -2
View File
@@ -188,12 +188,28 @@ const TopThree = (props) => {
<div className="cardModuleReference"> <div className="cardModuleReference">
<b>{t("myportal:representation-type")}:</b> <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>
<div className="cardModuleReference"> <div className="cardModuleReference">
<b>{t("myportal:capacity")}:</b> <b>{t("myportal:capacity")}:</b>
{" "} {" "}
{showTopThreeArr[key].representationCapacity} {router.locale == "cy"
? jsonpath(
'$..[?(@.value=="' +
showTopThreeArr[key]
.representationCapacity +
'")].value_cy',
transLookup
)
: showTopThreeArr[key].representationCapacity || ""}
</div> </div>
<div className="cardModuleReference"> <div className="cardModuleReference">
<b>{t("myportal:date-raised")}:</b> <b>{t("myportal:date-raised")}:</b>
+32 -21
View File
@@ -81,7 +81,8 @@ const ViewAllResults = (props) => {
{currentView.viewKey == "myCases" && {currentView.viewKey == "myCases" &&
resultsArr[key].pinswg_publishtoweb === false ? ( resultsArr[key].pinswg_publishtoweb === false ? (
<div className="cardModuleReference"> <div className="cardModuleReference">
{resultsArr[key].ticketnumber} <b> Pending</b> {resultsArr[key].ticketnumber}{" "}
<b> {t("myportal:appeal-pending-label")}</b>
</div> </div>
) : ( ) : (
<Link <Link
@@ -494,26 +495,36 @@ const ViewAllResults = (props) => {
: currentView.viewKey == "myRepresentations" : currentView.viewKey == "myRepresentations"
? repRaisedDate(item.createdDate) // ? router.locale == "cy" ? repRaisedDate(item.createdDate) // ? router.locale == "cy"
: // ? jsonpath( : // ? jsonpath(
// //
// '$..[?(@.value=="' + // '$..[?(@.value=="' +
// searchDetailsObj[key].value[0][ // searchDetailsObj[key].value[0][
// "statuscode@OData.Community.Display.V1.FormattedValue" // "statuscode@OData.Community.Display.V1.FormattedValue"
// ] + // ] +
// '")].value_cy',transLookup, // '")].value_cy',transLookup,
// ) // )
// : searchDetailsObj[key].value[0][ // : searchDetailsObj[key].value[0][
// "statuscode@OData.Community.Display.V1.FormattedValue" // "statuscode@OData.Community.Display.V1.FormattedValue"
// ] || "N/A" // ] || "N/A"
// : router.locale == "cy" // : router.locale == "cy"
// ? jsonpath( // ? jsonpath(
// //
// '$..[?(@.value=="' + // '$..[?(@.value=="' +
// item[ // item[
// "statuscode@OData.Community.Display.V1.FormattedValue" // "statuscode@OData.Community.Display.V1.FormattedValue"
// ] + // ] +
// '")].value_cy',transLookup, // '")].value_cy',transLookup,
// ) // )
item[
router.locale == "cy"
? jsonpath(
'$..[?(@.value=="' +
item[
"statuscode@OData.Community.Display.V1.FormattedValue"
] +
'")].value_cy',
transLookup
)
: item[
"statuscode@OData.Community.Display.V1.FormattedValue" "statuscode@OData.Community.Display.V1.FormattedValue"
] || "N/A"} ] || "N/A"}
</dd> </dd>
+7 -2
View File
@@ -47,9 +47,14 @@ const WatchedCases = (props) => {
}); });
}} }}
> >
{t("myportal:viewall-link")}{" "} {/* {t("myportal:viewall-link")}{" "}
{props.watchedCases.watchedCases["@odata.count"] + {props.watchedCases.watchedCases["@odata.count"] +
" cases"} " cases"} */}
{t("myportal:viewall-link-count", {
count: props.watchedCases.watchedCases[
"@odata.count"
],
})}
</Link> </Link>
</div> </div>
)} )}
+1 -1
View File
@@ -474,7 +474,7 @@ let BuildSection = (props) => {
{savingStatus ? ( {savingStatus ? (
<span className=" progress-save-active"> <span className=" progress-save-active">
Saving data {router.locale == "cy" ? "Nôl data" : "Saving data"}
<img <img
className="data-loading-icon" className="data-loading-icon"
src="/assets/images/loading.gif" src="/assets/images/loading.gif"
+28
View File
@@ -598,5 +598,33 @@
"value_cy": "Ymweliad safle (Rhithwir)", "value_cy": "Ymweliad safle (Rhithwir)",
"pinswg_decision": 846040010 "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"
}
] ]
} }
+2
View File
@@ -42,6 +42,8 @@
"social-bar-share-link": "Rhannur dudalen hon", "social-bar-share-link": "Rhannur dudalen hon",
"social-bar-share-via-link": "Rhannur dudalen hon ar", "social-bar-share-via-link": "Rhannur dudalen hon ar",
"social-shared-from": "Rhannwyd o", "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-search-results": "Canlyniadau chwilio",
"breadcrumb-advanced-search": "Chwilio uwch", "breadcrumb-advanced-search": "Chwilio uwch",
"breadcrumb-advanced-search-results": "Canlyniadau chwilio uwch", "breadcrumb-advanced-search-results": "Canlyniadau chwilio uwch",
+3 -1
View File
@@ -1,5 +1,6 @@
{ {
"viewall-link": "Gweld y cyfan", "viewall-link": "Gweld y cyfan",
"viewall-link-count": "Gweld pob un o'r {{count}} achos",
"page-title": "Fy mhorth", "page-title": "Fy mhorth",
"makenewappeal-card-title": "Gwneud apêl newydd", "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", "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", "representation-type": "Math o gynrychiolaeth",
"capacity": "Gallu", "capacity": "Gallu",
"date-raised": "Dyddiad codi", "date-raised": "Dyddiad codi",
"submission-processing-label": "Prosesu cyflwyniad" "submission-processing-label": "Prosesu cyflwyniad",
"appeal-pending-label": "Arfaeth"
} }
+1
View File
@@ -1,5 +1,6 @@
{ {
"viewall-link": "View all", "viewall-link": "View all",
"viewall-link-count": "Gweld pob un o'r {count} achos",
"parent-page-title": "Fy Mhorth", "parent-page-title": "Fy Mhorth",
"page-title": "Apêl newydd", "page-title": "Apêl newydd",
"select-lpa-label": "Dewiswch eich Awdurdod Cynllunio Lleol (ACLl)", "select-lpa-label": "Dewiswch eich Awdurdod Cynllunio Lleol (ACLl)",
+2
View File
@@ -42,6 +42,8 @@
"social-bar-share-link": "Share this page", "social-bar-share-link": "Share this page",
"social-bar-share-via-link": "Share this page via", "social-bar-share-via-link": "Share this page via",
"social-shared-from": "Shared from", "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-search-results": "Search results",
"breadcrumb-advanced-search": "Advanced search", "breadcrumb-advanced-search": "Advanced search",
"breadcrumb-advanced-search-results": "Advanced search results", "breadcrumb-advanced-search-results": "Advanced search results",
+3 -1
View File
@@ -1,5 +1,6 @@
{ {
"viewall-link": "View all", "viewall-link": "View all",
"viewall-link-count": "View all {{count}} cases",
"page-title": "My Portal", "page-title": "My Portal",
"makenewappeal-card-title": "Make a new appeal", "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", "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", "representation-type": "Representation type",
"capacity": "Capacity", "capacity": "Capacity",
"date-raised": "Date raised", "date-raised": "Date raised",
"submission-processing-label": "Submission processing" "submission-processing-label": "Submission processing",
"appeal-pending-label": "Pending"
} }