diff --git a/news/16.bugfix b/news/16.bugfix new file mode 100644 index 0000000..3aca2cc --- /dev/null +++ b/news/16.bugfix @@ -0,0 +1 @@ +Fix translations for the result tabs @reebalazs diff --git a/src/components/theme/SolrSearch/SearchTabs.jsx b/src/components/theme/SolrSearch/SearchTabs.jsx index eebf80f..02f717b 100644 --- a/src/components/theme/SolrSearch/SearchTabs.jsx +++ b/src/components/theme/SolrSearch/SearchTabs.jsx @@ -1,8 +1,8 @@ -import { FormattedMessage } from 'react-intl'; -import messages from './solr-facets-i18n'; +import { useIntl } from 'react-intl'; export const SearchTabs = ({ groupSelect, setGroupSelect, facetGroups }) => { facetGroups = facetGroups || []; + const intl = useIntl(); return (