diff --git a/locales/de/LC_MESSAGES/volto.po b/locales/de/LC_MESSAGES/volto.po index 1e19dc2ba..386731d00 100644 --- a/locales/de/LC_MESSAGES/volto.po +++ b/locales/de/LC_MESSAGES/volto.po @@ -734,6 +734,11 @@ msgstr "" msgid "actions" msgstr "" +#: components/ItaliaTheme/Search/Search +# defaultMessage: {filterNumber} filtri attivati +msgid "active_filters" +msgstr "" + #: components/ItaliaTheme/Header/HeaderSearch/SearchModal # defaultMessage: Vai alla ricerca per sezioni avanzata msgid "advandedSectionsFilters" diff --git a/locales/en/LC_MESSAGES/volto.po b/locales/en/LC_MESSAGES/volto.po index 8414108ec..fe07ef80f 100644 --- a/locales/en/LC_MESSAGES/volto.po +++ b/locales/en/LC_MESSAGES/volto.po @@ -719,6 +719,11 @@ msgstr "" msgid "actions" msgstr "View actions" +#: components/ItaliaTheme/Search/Search +# defaultMessage: {filterNumber} filtri attivati +msgid "active_filters" +msgstr "" + #: components/ItaliaTheme/Header/HeaderSearch/SearchModal # defaultMessage: Vai alla ricerca per sezioni avanzata msgid "advandedSectionsFilters" diff --git a/locales/es/LC_MESSAGES/volto.po b/locales/es/LC_MESSAGES/volto.po index e8537522d..53953e545 100644 --- a/locales/es/LC_MESSAGES/volto.po +++ b/locales/es/LC_MESSAGES/volto.po @@ -728,6 +728,11 @@ msgstr "AcordeĆ³n" msgid "actions" msgstr "Ver acciones" +#: components/ItaliaTheme/Search/Search +# defaultMessage: {filterNumber} filtri attivati +msgid "active_filters" +msgstr "" + #: components/ItaliaTheme/Header/HeaderSearch/SearchModal # defaultMessage: Vai alla ricerca per sezioni avanzata msgid "advandedSectionsFilters" diff --git a/locales/fr/LC_MESSAGES/volto.po b/locales/fr/LC_MESSAGES/volto.po index b07206a71..93890a620 100644 --- a/locales/fr/LC_MESSAGES/volto.po +++ b/locales/fr/LC_MESSAGES/volto.po @@ -736,6 +736,11 @@ msgstr "" msgid "actions" msgstr "Voir les actions" +#: components/ItaliaTheme/Search/Search +# defaultMessage: {filterNumber} filtri attivati +msgid "active_filters" +msgstr "" + #: components/ItaliaTheme/Header/HeaderSearch/SearchModal # defaultMessage: Vai alla ricerca per sezioni avanzata msgid "advandedSectionsFilters" diff --git a/locales/it/LC_MESSAGES/volto.po b/locales/it/LC_MESSAGES/volto.po index eb46f45c6..d9911e07f 100644 --- a/locales/it/LC_MESSAGES/volto.po +++ b/locales/it/LC_MESSAGES/volto.po @@ -719,6 +719,11 @@ msgstr "" msgid "actions" msgstr "Vedi azioni" +#: components/ItaliaTheme/Search/Search +# defaultMessage: {filterNumber} filtri attivati +msgid "active_filters" +msgstr "" + #: components/ItaliaTheme/Header/HeaderSearch/SearchModal # defaultMessage: Vai alla ricerca per sezioni avanzata msgid "advandedSectionsFilters" diff --git a/locales/volto.pot b/locales/volto.pot index 132f1f9b8..8a7680207 100644 --- a/locales/volto.pot +++ b/locales/volto.pot @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: Plone\n" -"POT-Creation-Date: 2024-01-11T13:44:54.156Z\n" +"POT-Creation-Date: 2024-01-16T14:29:53.874Z\n" "Last-Translator: Plone i18n \n" "Language-Team: Plone i18n \n" "MIME-Version: 1.0\n" @@ -721,6 +721,11 @@ msgstr "" msgid "actions" msgstr "" +#: components/ItaliaTheme/Search/Search +# defaultMessage: {filterNumber} filtri attivati +msgid "active_filters" +msgstr "" + #: components/ItaliaTheme/Header/HeaderSearch/SearchModal # defaultMessage: Vai alla ricerca per sezioni avanzata msgid "advandedSectionsFilters" diff --git a/src/components/ItaliaTheme/Search/Search.jsx b/src/components/ItaliaTheme/Search/Search.jsx index 147e5b8a9..7a4dc8e2a 100644 --- a/src/components/ItaliaTheme/Search/Search.jsx +++ b/src/components/ItaliaTheme/Search/Search.jsx @@ -151,6 +151,10 @@ const messages = defineMessages({ id: 'search_skip_to_search_results', defaultMessage: 'Vai ai risultati di ricerca', }, + active_filters: { + id: 'active_filters', + defaultMessage: '{filterNumber} filtri attivati', + }, }); const searchOrderDict = { @@ -447,11 +451,21 @@ const Search = () => {
{intl.formatMessage(messages.sections)} - {activeSections > 0 && ( - - {activeSections} - - )} + + + {activeSections} +
{ >
{intl.formatMessage(messages.topics)} - {activeTopics > 0 && ( - - {activeTopics} - - )} + + {activeTopics} +
{
{intl.formatMessage(messages.content_types)} - {activePortalTypes > 0 && ( - - {activePortalTypes} - - )} + + {activePortalTypes} +