diff --git a/src/components/layout/Footer.tsx b/src/components/layout/Footer.tsx index ae7a3ec..7827709 100644 --- a/src/components/layout/Footer.tsx +++ b/src/components/layout/Footer.tsx @@ -1,8 +1,10 @@ +import { t } from '../../i18n'; + export function Footer() { return ( diff --git a/src/components/layout/Nav.tsx b/src/components/layout/Nav.tsx index b75701a..0cc1af3 100644 --- a/src/components/layout/Nav.tsx +++ b/src/components/layout/Nav.tsx @@ -3,6 +3,7 @@ import { navLinks } from '../../features/landing/data/content'; import { ModeToggle } from '../ui/ModeToggle'; import { VariantToggle } from '../ui/VariantToggle'; import { handleAnchorClick } from '../../utils/scrollToHash'; +import { t } from '../../i18n'; /** * Navigation of design B: part of the brand-red header, white text, the CTA as a white block @@ -12,6 +13,7 @@ import { handleAnchorClick } from '../../utils/scrollToHash'; export function Nav() { const [isMenuOpen, setIsMenuOpen] = useState(false); const sectionLinks = navLinks.filter((link) => !link.isCta); + const menuLabel = isMenuOpen ? t('landing.nav.menuClose') : t('landing.nav.menuOpen'); // Escape closes the mobile menu (keyboard users). useEffect(() => { @@ -29,7 +31,10 @@ export function Nav() { } return ( -