Skip to content

Commit

Permalink
Merge branch 'DIGG-465-new-filter-groups' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Kopin1 committed Nov 25, 2024
2 parents 4303650 + be8929b commit c4f36e0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
6 changes: 3 additions & 3 deletions components/content/Search/SearchFilters/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ export const SearchFilters: React.FC<SearchFilterProps> = ({
) {
filters.push({
id: "api_only",
label: "API",
label: t(`resources|api`),
// Special handling for API filter since it uses esRdfTypes
isApiFilter: true,
});
Expand Down Expand Up @@ -433,7 +433,7 @@ export const SearchFilters: React.FC<SearchFilterProps> = ({
<SearchCheckboxFilter
key={key}
id="hvd_only"
name="API"
name="hvd"
checked={activeCheckboxFilters.some(
(filter) => filter.id === "hvd_only",
)}
Expand Down Expand Up @@ -496,7 +496,7 @@ export const SearchFilters: React.FC<SearchFilterProps> = ({
.then(() => search.doSearch());
}
}}
label="API"
label={t(`resources|api`)}
iconSize={iconSize}
/>
)}
Expand Down
4 changes: 2 additions & 2 deletions locales/en/filters.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
},
"theme-input-label": "Search within filters",
"group": {
"access": "Access",
"type": "Data type",
"access": "Availability",
"type": "Type of data",
"actor": "Actors",
"distribution": "Distribution"
}
Expand Down
3 changes: 2 additions & 1 deletion locales/en/resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,6 @@
"http://publications.europa.eu/resource/authority/frequency/BIENNIAL": "Biennial",
"http://publications.europa.eu/resource/authority/frequency/WEEKLY": "Weekly",
"http://publications.europa.eu/resource/authority/frequency/ANNUAL": "Annual",
"http://purl.org/cld/freq/Annual": "Annual"
"http://purl.org/cld/freq/Annual": "Annual",
"api": "API/Data service"
}
2 changes: 1 addition & 1 deletion locales/sv/filters.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
},
"theme-input-label": "Sök inom filter",
"group": {
"access": "Åtkomst",
"access": "Tillgänglighet",
"type": "Typ av data",
"actor": "Aktörer",
"distribution": "Distribution"
Expand Down
3 changes: 2 additions & 1 deletion locales/sv/resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,6 @@
"http://publications.europa.eu/resource/authority/frequency/BIENNIAL": "Vartannat år",
"http://publications.europa.eu/resource/authority/frequency/WEEKLY": "Veckovis",
"http://publications.europa.eu/resource/authority/frequency/ANNUAL": "Årlig",
"http://purl.org/cld/freq/Annual": "Årlig"
"http://purl.org/cld/freq/Annual": "Årlig",
"api": "API/Datatjänst"
}

0 comments on commit c4f36e0

Please sign in to comment.