Skip to content

Commit

Permalink
Organisations page transaltion fix and filter fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaMunterud committed Dec 11, 2024
1 parent 4557866 commit 67c2161
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
5 changes: 2 additions & 3 deletions locales/en/pages.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,8 @@
"org-type": "Organisation type",
"protected-data": "Protected datasets",
"spec-data": "Datasets that follow specifications",
"view-all-concepts": "View all concepts",
"view-all-data": "View all datasets",
"view-all-spec": "View all specifications"
"view-all-data": "View datasets",
"view-all-spec": "View specifications"
},
"organisations": {
"organisations": "organisations",
Expand Down
7 changes: 3 additions & 4 deletions locales/sv/pages.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,16 +151,15 @@
"download_link": "Ladda ned metadata",
"fee-data": "Avgiftsbelagda datamängder",
"hvd-data": "Värdefulla datamängder",
"no-contact": "Inga kontaktuppgifter har angets",
"no-contact": "Inga kontaktuppgifter har angetts",
"no-org-type": "Inget organisationstyp har angetts",
"open-data": "Öppna datamängder",
"org-no": "Organisationens id",
"org-type": "Organisationstyp",
"protected-data": "Skyddade datamängder",
"spec-data": "Datamängder som följer specifikation",
"view-all-concepts": "Visa alla begrepp",
"view-all-data": "Visa alla datamängder",
"view-all-spec": "Visa alla specifikationer"
"view-all-data": "Visa datamängder",
"view-all-spec": "Visa specifikationer"
},
"organisations": {
"organisations": "organisationer",
Expand Down
4 changes: 2 additions & 2 deletions providers/search-provider/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useRouter } from "next/router";
import { I18n } from "next-translate";
import withTranslation from "next-translate/withTranslation";
import { decode } from "qss";
import { decode, encode } from "qss";
import { Component, createContext, ReactNode } from "react";

import {
Expand Down Expand Up @@ -748,7 +748,7 @@ class SearchProvider extends Component<SearchProviderProps, SearchContextData> {
});
}

const searchParams = new URLSearchParams({
const searchParams = encode({
p: page.toString(),
q: query,
s: sortOrder.toString(),
Expand Down

0 comments on commit 67c2161

Please sign in to comment.