From f705cc41c3b97422c0394a4b67f57c427940e774 Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Fri, 4 Jul 2025 13:07:01 +0100 Subject: [PATCH] doc label and breadcrumb --- components/breadcrumbs.js | 18 ++++++------------ components/case/documents.js | 12 ++++++++---- locales/cy/search.json | 4 +++- locales/en/search.json | 4 +++- 4 files changed, 20 insertions(+), 18 deletions(-) diff --git a/components/breadcrumbs.js b/components/breadcrumbs.js index 50cefe23..fe99cf57 100644 --- a/components/breadcrumbs.js +++ b/components/breadcrumbs.js @@ -527,19 +527,13 @@ const Breadcrumbs = (props) => {
  • {t("common:breadcrumb-search-results")} diff --git a/components/case/documents.js b/components/case/documents.js index dc69b22e..15af88c4 100644 --- a/components/case/documents.js +++ b/components/case/documents.js @@ -19,7 +19,7 @@ import { setCurrentPage } from "../../store/currentView/action"; import { setDocumentDetails } from "../../store/searchOutput/action"; const DocumentDetails = (props) => { - let { t } = useTranslation(); + let { t, lang } = useTranslation(); const firstRender = useRef(false); const { incidentid, @@ -504,7 +504,7 @@ const DocumentDetails = (props) => {

    @@ -525,7 +525,10 @@ const DocumentDetails = (props) => { className="govuk-label-s govuk-checkboxes__label" htmlFor={"all" + "__" + 0} > - All - ( + {router.locale == "cy" + ? "Pawb" + : "All"}{" "} + - ( {documentTypes.reduce( (accumulator, currentItem) => { return ( @@ -605,7 +608,7 @@ const DocumentDetails = (props) => { setCurrentPage(1); }} > - Filter documents + {t("search:filter-documents-label")}
    {documentDetailsObj["@odata.count"] > 5 && ( @@ -1032,6 +1035,7 @@ const DocumentDetails = (props) => { orderByState, getDocumentTypes, getDocumentResults, + lang, ]); return (
    diff --git a/locales/cy/search.json b/locales/cy/search.json index 937c7f2f..e84fbc91 100644 --- a/locales/cy/search.json +++ b/locales/cy/search.json @@ -66,5 +66,7 @@ "searchresults-show-records-label-a": "Dangos", "searchresults-show-records-label-b": "cofnodion", "searchresults-created-on-label": "Crëwyd ar", - "address-search-appellant-validation": "Mae angen rhan o'r cyfeiriad i chwilio gydag enw" + "address-search-appellant-validation": "Mae angen rhan o'r cyfeiriad i chwilio gydag enw", + "filter-documents-label": "Hidlo dogfennau", + "clear-filter-button-label": "Clirio'r hidlydd" } \ No newline at end of file diff --git a/locales/en/search.json b/locales/en/search.json index 67febd36..27a4ef72 100644 --- a/locales/en/search.json +++ b/locales/en/search.json @@ -66,5 +66,7 @@ "searchresults-show-records-label-a": "Show", "searchresults-show-records-label-b": "records", "searchresults-created-on-label": "Created on", - "address-search-appellant-validation": "Need part of the address to search with a name" + "address-search-appellant-validation": "Need part of the address to search with a name", + "filter-documents-label": "Filter documents", + "clear-filter-button-label": "Clear filter" } \ No newline at end of file