From 6c6fd771ddeccecdc37815835f2d8606c2276481 Mon Sep 17 00:00:00 2001 From: Sluijsens Date: Sun, 15 Nov 2026 17:28:58 +0100 Subject: [PATCH] Taalbestanden: statische teksten van de site naar src/i18n/nl (landing, shared, era), getypte t()-helper; prerender-uitvoer byte-identiek Hero en CMS-data blijven buiten scope. Co-Authored-By: Claude Sonnet 5.5 --- src/components/layout/Footer.tsx | 4 +- src/components/layout/Nav.tsx | 11 ++- src/components/layout/SkipLink.tsx | 4 +- src/components/layout/VariantAlert.tsx | 9 +- src/components/shared/ErrorBoundary.tsx | 3 +- src/components/ui/ModeToggle.tsx | 5 +- src/components/ui/VariantToggle.tsx | 3 +- .../landing/components/AboutSection.tsx | 5 +- .../landing/components/ContactFormView.tsx | 29 ++++-- .../landing/components/ContactSection.tsx | 3 +- .../landing/components/FilterChips.tsx | 7 +- .../landing/components/MailtoPanel.tsx | 9 +- .../landing/components/PackageCard.tsx | 3 +- .../landing/components/PackageList.tsx | 3 +- .../landing/components/PackagesSection.tsx | 16 ++- .../landing/components/ProcessSection.tsx | 3 +- src/features/landing/components/SwipeDots.tsx | 8 +- src/features/landing/data/content.ts | 72 +++++--------- src/i18n/i18n.test.ts | 39 ++++++++ src/i18n/index.ts | 54 +++++++++++ src/i18n/nl/era.json | 68 +++++++++++++ src/i18n/nl/landing.json | 97 +++++++++++++++++++ src/i18n/nl/shared.json | 20 ++++ src/prerender/StaticLanding.tsx | 3 +- src/shared/packages/packageLogic.ts | 9 +- src/theme/ThemeProvider.tsx | 9 +- src/variants/e/ENav.tsx | 5 +- src/variants/e/Era1989.tsx | 7 +- src/variants/e/Era1998.tsx | 3 +- src/variants/e/Era2006.tsx | 22 +++-- src/variants/e/Era2013.tsx | 5 +- src/variants/e/Era2026.tsx | 5 +- src/variants/e/TerminalForm.tsx | 29 ++++-- src/variants/e/eraContent.ts | 49 +++++----- 34 files changed, 470 insertions(+), 151 deletions(-) create mode 100644 src/i18n/i18n.test.ts create mode 100644 src/i18n/index.ts create mode 100644 src/i18n/nl/era.json create mode 100644 src/i18n/nl/landing.json create mode 100644 src/i18n/nl/shared.json 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 (
- © 2026 SLP Software + {t('landing.footer.copyright')} slp.Bouw(uwIdee);
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 ( -