Skip to content

Commit

Permalink
fix: added translations for toggleMenu
Browse files Browse the repository at this point in the history
  • Loading branch information
sabrina-bongiovanni committed Mar 27, 2024
1 parent 23789fe commit a4fc853
Show file tree
Hide file tree
Showing 8 changed files with 116 additions and 4 deletions.
15 changes: 15 additions & 0 deletions locales/de/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -3592,6 +3592,21 @@ msgstr ""
msgid "to"
msgstr ""

#: overrideTranslations
# defaultMessage: {action} il menu
msgid "toggle-menu"
msgstr ""

#: overrideTranslations
# defaultMessage: Chiudi
msgid "toggleMenu_close"
msgstr ""

#: overrideTranslations
# defaultMessage: Apri
msgid "toggleMenu_open"
msgstr ""

#: components/ItaliaTheme/Header/HeaderSearch/SearchModal
#: components/ItaliaTheme/Search/Search
#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderTassonomiaArgomenti
Expand Down
15 changes: 15 additions & 0 deletions locales/en/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -3577,6 +3577,21 @@ msgstr "title"
msgid "to"
msgstr "to"

#: overrideTranslations
# defaultMessage: {action} il menu
msgid "toggle-menu"
msgstr ""

#: overrideTranslations
# defaultMessage: Chiudi
msgid "toggleMenu_close"
msgstr ""

#: overrideTranslations
# defaultMessage: Apri
msgid "toggleMenu_open"
msgstr ""

#: components/ItaliaTheme/Header/HeaderSearch/SearchModal
#: components/ItaliaTheme/Search/Search
#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderTassonomiaArgomenti
Expand Down
15 changes: 15 additions & 0 deletions locales/es/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -3586,6 +3586,21 @@ msgstr "título"
msgid "to"
msgstr "a"

#: overrideTranslations
# defaultMessage: {action} il menu
msgid "toggle-menu"
msgstr ""

#: overrideTranslations
# defaultMessage: Chiudi
msgid "toggleMenu_close"
msgstr ""

#: overrideTranslations
# defaultMessage: Apri
msgid "toggleMenu_open"
msgstr ""

#: components/ItaliaTheme/Header/HeaderSearch/SearchModal
#: components/ItaliaTheme/Search/Search
#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderTassonomiaArgomenti
Expand Down
15 changes: 15 additions & 0 deletions locales/fr/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -3594,6 +3594,21 @@ msgstr "titre"
msgid "to"
msgstr "au"

#: overrideTranslations
# defaultMessage: {action} il menu
msgid "toggle-menu"
msgstr ""

#: overrideTranslations
# defaultMessage: Chiudi
msgid "toggleMenu_close"
msgstr ""

#: overrideTranslations
# defaultMessage: Apri
msgid "toggleMenu_open"
msgstr ""

#: components/ItaliaTheme/Header/HeaderSearch/SearchModal
#: components/ItaliaTheme/Search/Search
#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderTassonomiaArgomenti
Expand Down
15 changes: 15 additions & 0 deletions locales/it/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -3577,6 +3577,21 @@ msgstr "titolo"
msgid "to"
msgstr "al"

#: overrideTranslations
# defaultMessage: {action} il menu
msgid "toggle-menu"
msgstr ""

#: overrideTranslations
# defaultMessage: Chiudi
msgid "toggleMenu_close"
msgstr ""

#: overrideTranslations
# defaultMessage: Apri
msgid "toggleMenu_open"
msgstr ""

#: components/ItaliaTheme/Header/HeaderSearch/SearchModal
#: components/ItaliaTheme/Search/Search
#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderTassonomiaArgomenti
Expand Down
17 changes: 16 additions & 1 deletion locales/volto.pot
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: Plone\n"
"POT-Creation-Date: 2024-02-29T10:45:35.413Z\n"
"POT-Creation-Date: 2024-03-27T13:29:18.025Z\n"
"Last-Translator: Plone i18n <[email protected]>\n"
"Language-Team: Plone i18n <[email protected]>\n"
"MIME-Version: 1.0\n"
Expand Down Expand Up @@ -3579,6 +3579,21 @@ msgstr ""
msgid "to"
msgstr ""

#: overrideTranslations
# defaultMessage: {action} il menu
msgid "toggle-menu"
msgstr ""

#: overrideTranslations
# defaultMessage: Chiudi
msgid "toggleMenu_close"
msgstr ""

#: overrideTranslations
# defaultMessage: Apri
msgid "toggleMenu_open"
msgstr ""

#: components/ItaliaTheme/Header/HeaderSearch/SearchModal
#: components/ItaliaTheme/Search/Search
#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderTassonomiaArgomenti
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,10 @@ const Navigation = ({ pathname }) => {
<HeaderToggler
aria-controls="it-navigation-collapse"
aria-expanded={collapseOpen}
aria-label={intl.formatMessage(messages.ToggleMenu, {
action: collapseOpen ? 'Chiudi' : 'Apri',
aria-label={intl.formatMessage(messages.toggleMenu, {
action: collapseOpen
? intl.formatMessage(messages.toggleMenu_close)
: intl.formatMessage(messages.toggleMenu_open),
})}
onClick={() => {
setCollapseOpen(!collapseOpen);
Expand Down Expand Up @@ -177,10 +179,18 @@ const messages = defineMessages({
id: 'close-menu',
defaultMessage: 'Chiudi menu',
},
ToggleMenu: {
toggleMenu: {
id: 'toggle-menu',
defaultMessage: '{action} il menu',
},
toggleMenu_open: {
id: 'toggleMenu_open',
defaultMessage: 'Apri',
},
toggleMenu_close: {
id: 'toggleMenu_close',
defaultMessage: 'Chiudi',
},
});

Navigation.propTypes = {
Expand Down
12 changes: 12 additions & 0 deletions src/overrideTranslations.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,16 @@ const messages = defineMessages({
id: 'rrule_on the',
defaultMessage: 'il',
},
toggleMenu: {
id: 'toggle-menu',
defaultMessage: '{action} il menu',
},
toggleMenu_open: {
id: 'toggleMenu_open',
defaultMessage: 'Apri',
},
toggleMenu_close: {
id: 'toggleMenu_close',
defaultMessage: 'Chiudi',
},
});

0 comments on commit a4fc853

Please sign in to comment.