From 8b44da1323013914a27d3b606b8ee789b164d2bd Mon Sep 17 00:00:00 2001 From: mistakia <1823355+mistakia@users.noreply.github.com> Date: Mon, 19 Feb 2024 21:11:58 -0500 Subject: [PATCH] feat: added `home` to locales json --- locales/en.json | 1 + src/views/components/menu/menu.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/locales/en.json b/locales/en.json index a3b8d867..1e366a2a 100644 --- a/locales/en.json +++ b/locales/en.json @@ -191,6 +191,7 @@ "glossary": "Glossary", "guides": "Guides", "history": "History", + "home": "Home", "how_it_works": "How it works", "integrations": "Integrations", "investment_thesis": "Investment thesis", diff --git a/src/views/components/menu/menu.js b/src/views/components/menu/menu.js index 1f2e0ae4..c9b130f8 100644 --- a/src/views/components/menu/menu.js +++ b/src/views/components/menu/menu.js @@ -163,6 +163,7 @@ function MenuSections() { export default function Menu({ hide, hideSearch, hide_speed_dial }) { const [open, setOpen] = useState(false) + const { t } = useTranslation() const handleOpen = () => setOpen(true) const handleClose = () => setOpen(false) @@ -204,7 +205,7 @@ export default function Menu({ hide, hideSearch, hide_speed_dial }) { {!isHome && ( } - tooltipTitle='Home' + tooltipTitle={t('menu.home', 'Home')} tooltipPlacement={isMobile ? 'left' : 'right'} onClick={handleHomeClick} />