From 73ebd12cd2dff72005e2bebe7d9b59d92e0a1178 Mon Sep 17 00:00:00 2001
From: rdbsolutions
Date: Wed, 5 Mar 2025 10:39:22 +0000
Subject: [PATCH] Document filtering
---
components/case/documents.js | 9 ++++++---
locales/cy/case.json | 2 ++
locales/en/case.json | 2 ++
3 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/components/case/documents.js b/components/case/documents.js
index 9f4e6b88..646581fb 100644
--- a/components/case/documents.js
+++ b/components/case/documents.js
@@ -497,7 +497,7 @@ const DocumentDetails = (props) => {
@@ -518,7 +518,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 (
@@ -596,7 +599,7 @@ const DocumentDetails = (props) => {
setCurrentPage(1);
}}
>
- Filter documents
+ {t("case:documents-filter-button")}
{documentDetailsObj["@odata.count"] > 5 && (
diff --git a/locales/cy/case.json b/locales/cy/case.json
index cd2e3c3b..6fcfb77c 100644
--- a/locales/cy/case.json
+++ b/locales/cy/case.json
@@ -60,6 +60,8 @@
"documents-count-label-1a": "Mae yna",
"documents-count-label-2a": "dogfen",
"documents-show-label": "Dangos",
+ "documents-clear-filter-label": "Clirio'r hidlydd",
+ "documents-filter-button": "Hidlo dogfen",
"summary-application-accepted-as-valid": "Derbyniwyd y Cais yn Un Dilys",
"summary-application-rejected-as-invalid": "Gwrthodwyd y Cais fel Un Annilys",
"summary-confirm-request-to-vary-application": "Cadarnhewch y Cais i Amrywio Cais",
diff --git a/locales/en/case.json b/locales/en/case.json
index 24105b18..67b96387 100644
--- a/locales/en/case.json
+++ b/locales/en/case.json
@@ -60,6 +60,8 @@
"documents-count-label-1a": "There is",
"documents-count-label-2a": "document",
"documents-show-label": "Show",
+ "documents-clear-filter-label": "Clear filter",
+ "documents-filter-button": "Filter document",
"summary-application-accepted-as-valid": "Application Accepted as Valid",
"summary-application-rejected-as-invalid": "Application rejected as Invalid",
"summary-confirm-request-to-vary-application": "Confirm Request to Vary Application",