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