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 <noreply@anthropic.com>
This commit is contained in:
2026-11-15 17:28:58 +01:00
co-authored by Claude Sonnet 5.5
parent 425c59c445
commit 6c6fd771dd
34 changed files with 470 additions and 151 deletions
+23 -6
View File
@@ -9,6 +9,7 @@ import {
} from '../../cms-client/contact';
import { contactForm, contactInfo } from '../../features/landing/data/content';
import { usePackagesQuery } from '../../features/landing/hooks/usePackagesQuery';
import { t } from '../../i18n';
import { trackEvent } from '../../shared/analytics/trackEvent';
import { useContactPreselect } from '../../shared/contact/useContactPreselect';
import { buildSubjectOptions, subjectForSlug } from '../../shared/contact/subjects';
@@ -117,16 +118,31 @@ export function TerminalForm({ client, token, refreshToken }: TerminalFormProps)
className="flex flex-col gap-[18px] border-4 border-double border-[#ffb000] p-[clamp(18px,3vw,32px)]"
data-testid="contact-form"
>
<Row label="Naam" dots="....:" error={name.error} errorId={name.errorId}>
<Row
label={t('era.terminalForm.labels.name')}
dots="....:"
error={name.error}
errorId={name.errorId}
>
<input type="text" autoComplete="name" className="e-term-input" {...name.inputProps} />
</Row>
<Row label="E-mail" dots="..:" error={email.error} errorId={email.errorId}>
<Row
label={t('era.terminalForm.labels.email')}
dots="..:"
error={email.error}
errorId={email.errorId}
>
<input type="email" autoComplete="email" className="e-term-input" {...email.inputProps} />
</Row>
<Row label="Onderwerp" dots=":" error={subject.error} errorId={subject.errorId}>
<Row
label={t('era.terminalForm.labels.subject')}
dots=":"
error={subject.error}
errorId={subject.errorId}
>
<select className="e-term-box flex-[1_1_240px] min-w-0" {...subject.inputProps}>
<option value="" disabled>
-- KIES --
{t('era.terminalForm.subjectPlaceholder')}
</option>
{subjectOptions.map((option) => (
<option key={option.value} value={option.value}>
@@ -138,7 +154,8 @@ export function TerminalForm({ client, token, refreshToken }: TerminalFormProps)
<div>
<label className="flex flex-col gap-1.5 uppercase">
<span>
Bericht<span aria-hidden="true">:</span>
{t('era.terminalForm.labels.message')}
<span aria-hidden="true">:</span>
</span>
<textarea rows={5} className="e-term-box resize-y" {...message.inputProps} />
</label>
@@ -155,7 +172,7 @@ export function TerminalForm({ client, token, refreshToken }: TerminalFormProps)
{/* Honeypot: invisible to people and assistive technology; bots fill it. */}
<div aria-hidden="true" className="absolute -left-[9999px] h-0 w-0 overflow-hidden">
<label htmlFor={hpId}>Laat dit veld leeg</label>
<label htmlFor={hpId}>{t('era.terminalForm.honeypot')}</label>
<input type="text" id={hpId} {...hpProps} />
</div>