From 932c2c964eef8bd2ce6199731e0cfe9e400df42d Mon Sep 17 00:00:00 2001 From: Hege Aalvik Date: Mon, 23 Oct 2023 12:27:38 +0200 Subject: [PATCH 1/2] feat: add requests to header menu --- src/app/app-nav-bar/app-nav-bar.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/app-nav-bar/app-nav-bar.tsx b/src/app/app-nav-bar/app-nav-bar.tsx index 80c35ce35..685edec6c 100644 --- a/src/app/app-nav-bar/app-nav-bar.tsx +++ b/src/app/app-nav-bar/app-nav-bar.tsx @@ -21,7 +21,8 @@ import { PATHNAME_SPARQL, PATHNAME_ABOUT_DATASETS, PATHNAME_GUIDANCE, - PATHNAME_NEWS_ARCHIVE + PATHNAME_NEWS_ARCHIVE, + PATHNAME_REQUESTS } from '../../constants/constants'; import { themeFDK, themeNAP } from '../theme'; @@ -121,6 +122,9 @@ const fdkItems = () => [ {localization.menu.sparql} + + {localization.menu.requests} + , From 69e2740520e62269ee29b945aa6d73dff1176b4b Mon Sep 17 00:00:00 2001 From: Hege Aalvik Date: Mon, 23 Oct 2023 13:14:30 +0200 Subject: [PATCH 2/2] chore: translate --- src/l10n/en.json | 3 ++- src/l10n/nb.json | 3 ++- src/l10n/nn.json | 3 ++- src/pages/requests/index.tsx | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/l10n/en.json b/src/l10n/en.json index c2abc118d..cd34c549d 100644 --- a/src/l10n/en.json +++ b/src/l10n/en.json @@ -1188,6 +1188,7 @@ "newestToOldest": "Newest to Oldest", "mostVotes": "Most Votes", "mostViews": "Most Views", - "view": "View" + "view": "View", + "search": "Free text search in titles" } } diff --git a/src/l10n/nb.json b/src/l10n/nb.json index 45496a477..09b13eb50 100644 --- a/src/l10n/nb.json +++ b/src/l10n/nb.json @@ -1188,6 +1188,7 @@ "newestToOldest": "Nyeste til eldste", "mostVotes": "Flest stemmer", "mostViews": "Flest visninger", - "view": "Visning" + "view": "Visning", + "search": "Fritekssøk i titler" } } diff --git a/src/l10n/nn.json b/src/l10n/nn.json index 566464e08..c3746ec4f 100644 --- a/src/l10n/nn.json +++ b/src/l10n/nn.json @@ -1188,6 +1188,7 @@ "newestToOldest": "Nyeste til eldste", "mostVotes": "Flest stemmer", "mostViews": "Flest visningar", - "view": "Visning" + "view": "Visning", + "search": "Fritekssøk i titler" } } diff --git a/src/pages/requests/index.tsx b/src/pages/requests/index.tsx index 4592f720e..e3347429e 100644 --- a/src/pages/requests/index.tsx +++ b/src/pages/requests/index.tsx @@ -94,7 +94,7 @@ const RequestsPage: FC = ({ />
-

Fritekssøk i titler

+

{localization.requestsPage.search}

{