From 2e9f90211c27081700f093f9ea9fee8f154eef01 Mon Sep 17 00:00:00 2001 From: Robert Bond Date: Thu, 16 Jul 2026 16:17:02 +0000 Subject: [PATCH] Merged PR 2485: updated welsh translations Related work items: #24314 --- components/case/documents.js | 9 ++- components/case/summary.js | 30 ++++----- .../case/summaryTypes/pinswg_sipscase.js | 10 +-- data/lookuptranslations.json | 4 +- locales/cy/case-stages.json | 66 +++++++++---------- locales/cy/case.json | 5 +- locales/cy/home.json | 2 +- locales/en/case.json | 5 +- 8 files changed, 69 insertions(+), 62 deletions(-) diff --git a/components/case/documents.js b/components/case/documents.js index 31ef69aa..5acd729a 100644 --- a/components/case/documents.js +++ b/components/case/documents.js @@ -39,6 +39,8 @@ const DocumentDetails = (props) => { const router = useRouter(); const { locale } = router; + const appealType = props.currentView?.caseReference?.appealType; + var documentDetailsArr = documentDetailsObj || []; const { startDownload, getStatus } = useDownloadQueue(3); const [selectedOption, setSelectedOption] = useState(10); @@ -679,7 +681,12 @@ const DocumentDetails = (props) => {

{showDocumentSearchState == false ? t("case:documents-checking-label") - : t("case:documents-non-available-label")} + : appealType === 846040002 || + appealType === 846040011 + ? t( + "case:documents-non-available-app-label" + ) + : t("case:documents-non-available-label")}

diff --git a/components/case/summary.js b/components/case/summary.js index 41a5622b..e6c417de 100644 --- a/components/case/summary.js +++ b/components/case/summary.js @@ -202,6 +202,10 @@ const CaseSummary = (props) => { return isEmail; }; + const primaryId = getFormCollectionByID( + appealTypeID || setCaseQueryObj.value[0].pinswg_appealcasetype + ).PrimaryIdAttribute; + const deleteItem = (caseID, topThreeType) => { let cookies = parseCookies(); topThreeType == "watchedCases" && @@ -603,28 +607,16 @@ const CaseSummary = (props) => {
- {getFormCollectionByID( - appealTypeID || - setCaseQueryObj.value[0] - .pinswg_appealcasetype - ).PrimaryIdAttribute == - "pinswg_dnsid" + {primaryId === "pinswg_dnsid" || + primaryId === + "pinswg_nonvalidationid" || + primaryId === "pinswg_sipscase" ? t( "case:summary-applicantonly-label" ) - : getFormCollectionByID( - appealTypeID || - setCaseQueryObj - .value[0] - .pinswg_appealcasetype - ).PrimaryIdAttribute == - "pinswg_nonvalidationid" - ? t( - "case:summary-appellantonly-label" - ) - : t( - "case:summary-applicant-label" - )} + : t( + "case:summary-appellantonly-label" + )}
{casesObj.pinswg_appellantagent == diff --git a/components/case/summaryTypes/pinswg_sipscase.js b/components/case/summaryTypes/pinswg_sipscase.js index d6b93376..7d43efeb 100644 --- a/components/case/summaryTypes/pinswg_sipscase.js +++ b/components/case/summaryTypes/pinswg_sipscase.js @@ -217,7 +217,9 @@ const Pinswg_sipscase = (props) => { } /> { } />