16478 right click view all page titles
This commit is contained in:
@@ -89,5 +89,10 @@
|
|||||||
"unsubscribe-case-title": "Wedi dad-danysgrifio i'r Achos",
|
"unsubscribe-case-title": "Wedi dad-danysgrifio i'r Achos",
|
||||||
"unsubscribe-case-all-label": "Rydych chi wedi dad-danysgrifio o dderbyn diweddariadau o'r achos canlynol",
|
"unsubscribe-case-all-label": "Rydych chi wedi dad-danysgrifio o dderbyn diweddariadau o'r achos canlynol",
|
||||||
"unsubscribe-case-none-label": "Dim byd i'w ddad-danysgrifio",
|
"unsubscribe-case-none-label": "Dim byd i'w ddad-danysgrifio",
|
||||||
"unsubscribe-case-label": "Rydych chi wedi dad-danysgrifio o dderbyn diweddariadau e-bost ar gyfer"
|
"unsubscribe-case-label": "Rydych chi wedi dad-danysgrifio o dderbyn diweddariadau e-bost ar gyfer",
|
||||||
|
"mycases-viewall-title": "Gweld fy holl achosion",
|
||||||
|
"awaitingsubmissiondetails-viewall-title": "Gweld pob apêl sy'n aros i gael ei chyflwyno",
|
||||||
|
"myrepresentations-viewall-title": "Gweld pob cynrychiolaeth sy'n aros i gael ei chyflwyno",
|
||||||
|
"watchedcases-viewall-title": "Gweld pob achos a wyliwyd",
|
||||||
|
"mySubmittedreps-viewall-title": "Gweld pob cynrychiolaeth a gyflwynwyd"
|
||||||
}
|
}
|
||||||
@@ -89,5 +89,10 @@
|
|||||||
"unsubscribe-case-title": "Unsubscribed to Case",
|
"unsubscribe-case-title": "Unsubscribed to Case",
|
||||||
"unsubscribe-case-all-label": "You have unsubscribed from receiving updates from the following case",
|
"unsubscribe-case-all-label": "You have unsubscribed from receiving updates from the following case",
|
||||||
"unsubscribe-case-none-label": "Nothing to unsubscribe",
|
"unsubscribe-case-none-label": "Nothing to unsubscribe",
|
||||||
"unsubscribe-case-label": "You have unsubscribed from receiving email updates for"
|
"unsubscribe-case-label": "You have unsubscribed from receiving email updates for",
|
||||||
|
"mycases-viewall-title": "View all my cases",
|
||||||
|
"awaitingsubmissiondetails-viewall-title": "View all appeals awaiting submission",
|
||||||
|
"myrepresentations-viewall-title": "View all representations awaiting submission",
|
||||||
|
"watchedcases-viewall-title": "View all watched cases",
|
||||||
|
"mysubmittedreps-viewall-title": "View all submitted representations"
|
||||||
}
|
}
|
||||||
@@ -31,11 +31,27 @@ const Home = (props) => {
|
|||||||
return <NoSessionWarning />;
|
return <NoSessionWarning />;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const titleKeys = {
|
||||||
|
"myCases": t("common:mycases-viewall-title"),
|
||||||
|
|
||||||
|
"awaitingSubmissionDetails": t(
|
||||||
|
"common:awaitingsubmissiondetails-viewall-title"
|
||||||
|
),
|
||||||
|
"myRepresentations": t("common:myrepresentations-viewall-title"),
|
||||||
|
"watchedCases": t("common:watchedcases-viewall-title"),
|
||||||
|
"mySubmittedReps": t("common:mysubmittedreps-viewall-title"),
|
||||||
|
};
|
||||||
|
|
||||||
|
function whichTitle(key) {
|
||||||
|
return t(titleKeys[key]);
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Head>
|
<Head>
|
||||||
<title>
|
<title>
|
||||||
{t("search:page-title")} - {t("common:service-name")}
|
{whichTitle(router.query?.viewKey)} -{" "}
|
||||||
|
{t("common:service-name")}
|
||||||
</title>
|
</title>
|
||||||
</Head>
|
</Head>
|
||||||
<div id="page_wrapper">
|
<div id="page_wrapper">
|
||||||
|
|||||||
Reference in New Issue
Block a user