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) => (