From 89c02fda6d10cc3fb7bb91a808be84dca80f5040 Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Mon, 22 Apr 2024 13:15:48 +0100 Subject: [PATCH] language updates for new pages --- i18n.js | 6 ++++++ locales/cy/common.json | 2 ++ locales/cy/search.json | 4 +++- locales/en/common.json | 2 ++ locales/en/search.json | 4 +++- next.config.js | 24 ++++++++++++++++++++++++ 6 files changed, 40 insertions(+), 2 deletions(-) diff --git a/i18n.js b/i18n.js index 79293dfd..66ee181c 100644 --- a/i18n.js +++ b/i18n.js @@ -28,12 +28,18 @@ module.exports = { "/advancedsearch": ["search", "myportal"], "/advancedsearchresults": ["search"], "/searchresults": ["search", "case"], + "/addresssearch": ["search", "case", "myportal"], + "/addresssearchresults": ["search", "case", "myportal"], "/viewall": ["search"], "/case": ["case"], "/case/*": ["case"], "/case/[ticketnumber]": ["case"], + "/case/id/[incident]": ["case"], "/myportal/representation": ["case", "myrepresentations", "common"], "/myportal/error": ["myportal", "common"], + "/myportal/case/id/[incident]": ["case"], + "/myportal/addresssearch": ["search", "case", "myportal"], + "/myportal/addresssearchresults": ["search", "case", "myportal"], "/newappeal": ["newappeal"], "/newappeal/*": ["newappeal"], "/newappeal/selectappeal": ["newappeal"], diff --git a/locales/cy/common.json b/locales/cy/common.json index 0df2ce08..8160859c 100644 --- a/locales/cy/common.json +++ b/locales/cy/common.json @@ -47,6 +47,8 @@ "breadcrumb-search-results": "Canlyniadau chwilio", "breadcrumb-advanced-search": "Chwilio uwch", "breadcrumb-advanced-search-results": "Canlyniadau chwilio uwch", + "breadcrumb-address-search": "Chwiliad cyfeiriad", + "breadcrumb-address-search-results": "Cyfeiriad canlyniadau chwilio", "breadcrumb-my-portal": "Fy mhorth", "breadcrumb-new-appeal": "Apêl newydd", "breadcrumb-case-reference": "Cyfeirnod Achos", diff --git a/locales/cy/search.json b/locales/cy/search.json index 6ad735c1..a246b5c4 100644 --- a/locales/cy/search.json +++ b/locales/cy/search.json @@ -25,6 +25,7 @@ "case-type-option-11": "Apeliadau Rhwymedigaethau Cynllunio", "case-type-option-12": "Apeliadau cynllunio adeiladau rhestredig ac ardal gadwraeth", "advanced-search-title-label": "Chwiliad manwl", + "address-search-title-label": "Chwilio am achosion yn ôl cyfeiriad", "applicant-label": "Apelydd/Ymgeisydd", "other-party-label": "Parti Arall", "hearing-date-label": "Dyddiad y Gwrandawaid/Ymchwiliad", @@ -64,5 +65,6 @@ "searchresults-no-records-label": "Nid oes unrhyw gofnodion", "searchresults-show-records-label-a": "Dangoswch", "searchresults-show-records-label-b": "cofnod", - "searchresults-created-on-label": "Creu ymlaen" + "searchresults-created-on-label": "Creu ymlaen", + "address-search-appellant-validation": "Angen rhan o'r cyfeiriad i chwilio gydag enw" } \ No newline at end of file diff --git a/locales/en/common.json b/locales/en/common.json index 927e916a..78c05b5b 100644 --- a/locales/en/common.json +++ b/locales/en/common.json @@ -47,6 +47,8 @@ "breadcrumb-search-results": "Search results", "breadcrumb-advanced-search": "Advanced search", "breadcrumb-advanced-search-results": "Advanced search results", + "breadcrumb-address-search": "Address search", + "breadcrumb-address-search-results": "Address search results", "breadcrumb-my-portal": "My portal", "breadcrumb-new-appeal": "New appeal", "breadcrumb-case-reference": "Case Reference", diff --git a/locales/en/search.json b/locales/en/search.json index d42f5bc3..4748ee53 100644 --- a/locales/en/search.json +++ b/locales/en/search.json @@ -25,6 +25,7 @@ "case-type-option-11": "Planning Obligation Appeals", "case-type-option-12": "Planning Listed Building and Conservation Area Appeals", "advanced-search-title-label": "Advanced search", + "address-search-title-label": "Search for cases by address", "applicant-label": "Appellant/Applicant", "other-party-label": "Other Party", "hearing-date-label": "Hearing/Enquiry date", @@ -64,5 +65,6 @@ "searchresults-no-records-label": "There are no records", "searchresults-show-records-label-a": "Show", "searchresults-show-records-label-b": "records", - "searchresults-created-on-label": "Created on" + "searchresults-created-on-label": "Created on", + "address-search-appellant-validation": "Need part of the address to search with a name" } \ No newline at end of file diff --git a/next.config.js b/next.config.js index a7d1ed26..a9453122 100644 --- a/next.config.js +++ b/next.config.js @@ -103,18 +103,34 @@ module.exports = { source: "/chwiliouwch", destination: "/advancedsearch", }, + { + source: "/chwiliadcyfeiriadau", + destination: "/addresssearch", + }, { source: "/fymhorth/chwiliouwch", destination: "/myportal/advancedsearch", }, + { + source: "/fymhorth/chwiliadcyfeiriadau", + destination: "/myportal/addresssearch", + }, { source: "/canlyniadauchwiliouwch", destination: "/advancedsearchresults", }, + { + source: "/canlyniadaucyfeiriadau", + destination: "/addresssearchresults", + }, { source: "/fymhorth/canlyniadauchwiliouwch", destination: "/myportal/advancedsearchresults", }, + { + source: "/fymhorth/canlyniadaucyfeiriadau", + destination: "/myportal/addresssearchresults", + }, { source: "/fymhorth", destination: "/myportal", @@ -123,10 +139,18 @@ module.exports = { source: "/achos", destination: "/case", }, + { + source: "/achos/id/:slug", + destination: "/case/id/:slug", + }, { source: "/fymhorth/achos", destination: "/myportal/case", }, + { + source: "/fymhorth/achos/id/:slug", + destination: "/myportal/case/id/:slug", + }, { source: "/fymhorth/gweldpopeth", destination: "/myportal/viewall",