From 9405e2d4f9a57315ca20a26ad20230a3aa217f19 Mon Sep 17 00:00:00 2001 From: Sluijsens Date: Sun, 15 Nov 2026 20:51:07 +0100 Subject: [PATCH] Translation files, step 1: common texts (forms, status pages, lightbox, labels) in common.json Co-Authored-By: Claude Sonnet 5.5 --- web/src/components/AppShell.tsx | 3 +- .../components/ContactForm/ContactForm.tsx | 30 +++++---- .../ContactForm/ContactFormGate.tsx | 11 ++-- web/src/components/Lightbox/Lightbox.tsx | 24 ++++--- .../components/PrivacyNote/PrivacyNote.tsx | 7 +- web/src/components/StatusPage/ErrorPage.tsx | 17 +++-- web/src/components/StatusPage/NotFound.tsx | 17 +++-- web/src/components/StatusPage/StatusPage.tsx | 3 +- web/src/components/home/Pricing/PriceCard.tsx | 3 +- .../components/home/Pricing/PriceTopBar.tsx | 3 +- web/src/i18n/nl/common.json | 65 +++++++++++++++++++ 11 files changed, 137 insertions(+), 46 deletions(-) diff --git a/web/src/components/AppShell.tsx b/web/src/components/AppShell.tsx index d96b204..6851daa 100644 --- a/web/src/components/AppShell.tsx +++ b/web/src/components/AppShell.tsx @@ -2,6 +2,7 @@ import { SkipNavContent, SkipNavLink } from '@chakra-ui/react'; import { Outlet } from '@tanstack/react-router'; import siteContent from '@/content/siteContent'; import useRouteFocus from '@/hooks/useRouteFocus'; +import { t } from '@/i18n'; import UmamiAnalytics from './Analytics/UmamiAnalytics'; import BackToTop from './BackToTop/BackToTop'; import Footer from './Footer/Footer'; @@ -15,7 +16,7 @@ export default function AppShell() { return ( <> - Direct naar de inhoud + {t('common.aria.skipToContent')} diff --git a/web/src/components/ContactForm/ContactForm.tsx b/web/src/components/ContactForm/ContactForm.tsx index de4e8bd..e57be47 100644 --- a/web/src/components/ContactForm/ContactForm.tsx +++ b/web/src/components/ContactForm/ContactForm.tsx @@ -25,6 +25,7 @@ import { import { contactClient } from '@/contact/contactClient'; import type { EmailAddress } from '@/content/types'; import useEmailAddress from '@/hooks/useEmailAddress'; +import { t } from '@/i18n'; import { mailtoLink } from '@/lib/mailLink'; import { trackContactEvent } from '@/lib/trackEvent'; import { CAPTCHA_HEIGHT } from './CaptchaWidget'; @@ -133,7 +134,7 @@ export default function ContactForm({ borderStartColor="accent" bg="paper.alt" > - {`Bedankt voor je bericht! Ik reageer binnen ${replyTime}.`} + {t('common.form.sent', { replyTime })} ); } @@ -178,13 +179,13 @@ export default function ContactForm({ required id={fieldId('name')} > - {label('Naam')} + {label(t('common.form.name.label'))} {error('name')} @@ -193,13 +194,13 @@ export default function ContactForm({ required id={fieldId('email')} > - {label('E-mail')} + {label(t('common.form.email.label'))} {error('email')} @@ -210,10 +211,12 @@ export default function ContactForm({ required id={fieldId('subject')} > - {label('In welke shoot heb je interesse?')} + {label(t('common.form.subject.label'))} - + {options.map((option) => (