Translation files, step 1: common texts (forms, status pages, lightbox, labels) in common.json
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -2,6 +2,7 @@ import { SkipNavContent, SkipNavLink } from '@chakra-ui/react';
|
|||||||
import { Outlet } from '@tanstack/react-router';
|
import { Outlet } from '@tanstack/react-router';
|
||||||
import siteContent from '@/content/siteContent';
|
import siteContent from '@/content/siteContent';
|
||||||
import useRouteFocus from '@/hooks/useRouteFocus';
|
import useRouteFocus from '@/hooks/useRouteFocus';
|
||||||
|
import { t } from '@/i18n';
|
||||||
import UmamiAnalytics from './Analytics/UmamiAnalytics';
|
import UmamiAnalytics from './Analytics/UmamiAnalytics';
|
||||||
import BackToTop from './BackToTop/BackToTop';
|
import BackToTop from './BackToTop/BackToTop';
|
||||||
import Footer from './Footer/Footer';
|
import Footer from './Footer/Footer';
|
||||||
@@ -15,7 +16,7 @@ export default function AppShell() {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<SkipNavLink id="main" data-testid="skip-link">
|
<SkipNavLink id="main" data-testid="skip-link">
|
||||||
Direct naar de inhoud
|
{t('common.aria.skipToContent')}
|
||||||
</SkipNavLink>
|
</SkipNavLink>
|
||||||
<NavigationBar />
|
<NavigationBar />
|
||||||
<SkipNavContent as="main" id="main">
|
<SkipNavContent as="main" id="main">
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ import {
|
|||||||
import { contactClient } from '@/contact/contactClient';
|
import { contactClient } from '@/contact/contactClient';
|
||||||
import type { EmailAddress } from '@/content/types';
|
import type { EmailAddress } from '@/content/types';
|
||||||
import useEmailAddress from '@/hooks/useEmailAddress';
|
import useEmailAddress from '@/hooks/useEmailAddress';
|
||||||
|
import { t } from '@/i18n';
|
||||||
import { mailtoLink } from '@/lib/mailLink';
|
import { mailtoLink } from '@/lib/mailLink';
|
||||||
import { trackContactEvent } from '@/lib/trackEvent';
|
import { trackContactEvent } from '@/lib/trackEvent';
|
||||||
import { CAPTCHA_HEIGHT } from './CaptchaWidget';
|
import { CAPTCHA_HEIGHT } from './CaptchaWidget';
|
||||||
@@ -133,7 +134,7 @@ export default function ContactForm({
|
|||||||
borderStartColor="accent"
|
borderStartColor="accent"
|
||||||
bg="paper.alt"
|
bg="paper.alt"
|
||||||
>
|
>
|
||||||
{`Bedankt voor je bericht! Ik reageer binnen ${replyTime}.`}
|
{t('common.form.sent', { replyTime })}
|
||||||
</Box>
|
</Box>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -178,13 +179,13 @@ export default function ContactForm({
|
|||||||
required
|
required
|
||||||
id={fieldId('name')}
|
id={fieldId('name')}
|
||||||
>
|
>
|
||||||
{label('Naam')}
|
{label(t('common.form.name.label'))}
|
||||||
<Input
|
<Input
|
||||||
{...control('name')}
|
{...control('name')}
|
||||||
type="text"
|
type="text"
|
||||||
autoComplete="name"
|
autoComplete="name"
|
||||||
maxLength={CONTACT_LIMITS.name}
|
maxLength={CONTACT_LIMITS.name}
|
||||||
placeholder="Jouw naam"
|
placeholder={t('common.form.name.placeholder')}
|
||||||
/>
|
/>
|
||||||
{error('name')}
|
{error('name')}
|
||||||
</Field.Root>
|
</Field.Root>
|
||||||
@@ -193,13 +194,13 @@ export default function ContactForm({
|
|||||||
required
|
required
|
||||||
id={fieldId('email')}
|
id={fieldId('email')}
|
||||||
>
|
>
|
||||||
{label('E-mail')}
|
{label(t('common.form.email.label'))}
|
||||||
<Input
|
<Input
|
||||||
{...control('email')}
|
{...control('email')}
|
||||||
type="email"
|
type="email"
|
||||||
autoComplete="email"
|
autoComplete="email"
|
||||||
maxLength={CONTACT_LIMITS.email}
|
maxLength={CONTACT_LIMITS.email}
|
||||||
placeholder="jouw@email.nl"
|
placeholder={t('common.form.email.placeholder')}
|
||||||
/>
|
/>
|
||||||
{error('email')}
|
{error('email')}
|
||||||
</Field.Root>
|
</Field.Root>
|
||||||
@@ -210,10 +211,12 @@ export default function ContactForm({
|
|||||||
required
|
required
|
||||||
id={fieldId('subject')}
|
id={fieldId('subject')}
|
||||||
>
|
>
|
||||||
{label('In welke shoot heb je interesse?')}
|
{label(t('common.form.subject.label'))}
|
||||||
<NativeSelect.Root>
|
<NativeSelect.Root>
|
||||||
<NativeSelect.Field {...control('subject')}>
|
<NativeSelect.Field {...control('subject')}>
|
||||||
<option value="">Kies een optie...</option>
|
<option value="">
|
||||||
|
{t('common.form.subject.placeholder')}
|
||||||
|
</option>
|
||||||
{options.map((option) => (
|
{options.map((option) => (
|
||||||
<option key={option.value} value={option.value}>
|
<option key={option.value} value={option.value}>
|
||||||
{option.label}
|
{option.label}
|
||||||
@@ -230,11 +233,11 @@ export default function ContactForm({
|
|||||||
required
|
required
|
||||||
id={fieldId('message')}
|
id={fieldId('message')}
|
||||||
>
|
>
|
||||||
{label('Stel hier je vraag')}
|
{label(t('common.form.message.label'))}
|
||||||
<Textarea
|
<Textarea
|
||||||
{...control('message')}
|
{...control('message')}
|
||||||
maxLength={CONTACT_LIMITS.message}
|
maxLength={CONTACT_LIMITS.message}
|
||||||
placeholder="Vul hier je bericht in"
|
placeholder={t('common.form.message.placeholder')}
|
||||||
minH="170px"
|
minH="170px"
|
||||||
resize="vertical"
|
resize="vertical"
|
||||||
/>
|
/>
|
||||||
@@ -278,11 +281,10 @@ export default function ContactForm({
|
|||||||
fontSize="sm"
|
fontSize="sm"
|
||||||
>
|
>
|
||||||
<Text>
|
<Text>
|
||||||
De controle dat je geen robot bent kon niet laden.
|
{t('common.form.captcha.problem')}
|
||||||
Ververs de pagina of
|
|
||||||
{address ? (
|
{address ? (
|
||||||
<>
|
<>
|
||||||
{' mail naar '}
|
{t('common.form.captcha.mailTo')}
|
||||||
<Link
|
<Link
|
||||||
variant="underline"
|
variant="underline"
|
||||||
href={mailtoLink(address, mailSubject)}
|
href={mailtoLink(address, mailSubject)}
|
||||||
@@ -291,7 +293,7 @@ export default function ContactForm({
|
|||||||
</Link>
|
</Link>
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
' mail me.'
|
t('common.form.captcha.mailMe')
|
||||||
)}
|
)}
|
||||||
</Text>
|
</Text>
|
||||||
</Box>
|
</Box>
|
||||||
@@ -321,7 +323,7 @@ export default function ContactForm({
|
|||||||
>
|
>
|
||||||
{disabled
|
{disabled
|
||||||
? form.messages.sendingLabel
|
? form.messages.sendingLabel
|
||||||
: '(Aan)vraag versturen'}
|
: t('common.form.submit')}
|
||||||
</chakra.button>
|
</chakra.button>
|
||||||
{/* Under the submit button, aligned with it */}
|
{/* Under the submit button, aligned with it */}
|
||||||
<PrivacyNote textAlign="end" />
|
<PrivacyNote textAlign="end" />
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import Eyebrow from '@/components/Eyebrow/Eyebrow';
|
|||||||
import PrivacyNote from '@/components/PrivacyNote/PrivacyNote';
|
import PrivacyNote from '@/components/PrivacyNote/PrivacyNote';
|
||||||
import type { EmailAddress } from '@/content/types';
|
import type { EmailAddress } from '@/content/types';
|
||||||
import useEmailAddress from '@/hooks/useEmailAddress';
|
import useEmailAddress from '@/hooks/useEmailAddress';
|
||||||
|
import { t } from '@/i18n';
|
||||||
import { mailtoLink } from '@/lib/mailLink';
|
import { mailtoLink } from '@/lib/mailLink';
|
||||||
|
|
||||||
type ContactFormGateProps = {
|
type ContactFormGateProps = {
|
||||||
@@ -14,7 +15,7 @@ type ContactFormGateProps = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// The text that comes before the address once it is shown
|
// The text that comes before the address once it is shown
|
||||||
const MAIL_LEAD = ' Mail me voor nu op ';
|
const MAIL_LEAD = t('common.gate.mailLead');
|
||||||
|
|
||||||
// Until there is a back-end the form stays visible but dimmed and inert
|
// Until there is a back-end the form stays visible but dimmed and inert
|
||||||
// under a "coming soon" notice with a mail button (FR-HP-07). inert keeps
|
// under a "coming soon" notice with a mail button (FR-HP-07). inert keeps
|
||||||
@@ -52,9 +53,9 @@ export default function ContactFormGate({
|
|||||||
textAlign="center"
|
textAlign="center"
|
||||||
data-testid="contact-gate-notice"
|
data-testid="contact-gate-notice"
|
||||||
>
|
>
|
||||||
<Eyebrow>Binnenkort</Eyebrow>
|
<Eyebrow>{t('common.gate.eyebrow')}</Eyebrow>
|
||||||
<Text color="ink.soft" mb={available ? 7 : 0}>
|
<Text color="ink.soft" mb={available ? 7 : 0}>
|
||||||
Het contactformulier komt binnenkort.
|
{t('common.gate.text')}
|
||||||
{address ? (
|
{address ? (
|
||||||
<>
|
<>
|
||||||
{MAIL_LEAD}
|
{MAIL_LEAD}
|
||||||
@@ -84,7 +85,7 @@ export default function ContactFormGate({
|
|||||||
css={linkButton({ variant: 'accent' })}
|
css={linkButton({ variant: 'accent' })}
|
||||||
data-testid="contact-gate-mail"
|
data-testid="contact-gate-mail"
|
||||||
>
|
>
|
||||||
Stuur een e-mail
|
{t('common.gate.mailButton')}
|
||||||
</chakra.a>
|
</chakra.a>
|
||||||
) : (
|
) : (
|
||||||
// Same recipe and label, so the notice is as high as
|
// Same recipe and label, so the notice is as high as
|
||||||
@@ -96,7 +97,7 @@ export default function ContactFormGate({
|
|||||||
data-email-pending
|
data-email-pending
|
||||||
data-testid="contact-gate-mail-pending"
|
data-testid="contact-gate-mail-pending"
|
||||||
>
|
>
|
||||||
Stuur een e-mail
|
{t('common.gate.mailButton')}
|
||||||
</chakra.span>
|
</chakra.span>
|
||||||
))}
|
))}
|
||||||
{/* Readable now, while the form's own line is inert (BR-PR-03) */}
|
{/* Readable now, while the form's own line is inert (BR-PR-03) */}
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ import leftOutlined from '@iconify-icons/ant-design/left-outlined';
|
|||||||
import rightOutlined from '@iconify-icons/ant-design/right-outlined';
|
import rightOutlined from '@iconify-icons/ant-design/right-outlined';
|
||||||
import type { GalleryItem } from '@/content/types';
|
import type { GalleryItem } from '@/content/types';
|
||||||
import useSwipe from '@/hooks/useSwipe';
|
import useSwipe from '@/hooks/useSwipe';
|
||||||
|
import { t } from '@/i18n';
|
||||||
import { neighbourIndexes } from '@/lib/neighbourIndexes';
|
import { neighbourIndexes } from '@/lib/neighbourIndexes';
|
||||||
import { wrapIndex } from '@/lib/wrapIndex';
|
import { wrapIndex } from '@/lib/wrapIndex';
|
||||||
|
|
||||||
@@ -42,7 +43,7 @@ export default function Lightbox({
|
|||||||
index,
|
index,
|
||||||
onIndexChange,
|
onIndexChange,
|
||||||
onClose,
|
onClose,
|
||||||
label = 'Foto groot bekijken',
|
label = t('common.lightbox.label'),
|
||||||
finalFocusEl,
|
finalFocusEl,
|
||||||
}: LightboxProps) {
|
}: LightboxProps) {
|
||||||
const count = items.length;
|
const count = items.length;
|
||||||
@@ -77,8 +78,15 @@ export default function Lightbox({
|
|||||||
const next = wrapIndex(to, count);
|
const next = wrapIndex(to, count);
|
||||||
onIndexChange(next);
|
onIndexChange(next);
|
||||||
const caption = items[next].caption;
|
const caption = items[next].caption;
|
||||||
|
const position = next + 1;
|
||||||
setAnnouncement(
|
setAnnouncement(
|
||||||
`Foto ${next + 1} van ${count}` + (caption ? `, ${caption}` : ''),
|
caption
|
||||||
|
? t('common.lightbox.announcementWithCaption', {
|
||||||
|
position,
|
||||||
|
count,
|
||||||
|
caption,
|
||||||
|
})
|
||||||
|
: t('common.lightbox.announcement', { position, count }),
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -176,7 +184,7 @@ export default function Lightbox({
|
|||||||
<Dialog.CloseTrigger asChild>
|
<Dialog.CloseTrigger asChild>
|
||||||
<ControlButton
|
<ControlButton
|
||||||
ref={closeButton}
|
ref={closeButton}
|
||||||
aria-label="Sluiten"
|
aria-label={t('common.actions.close')}
|
||||||
data-testid="lightbox-close"
|
data-testid="lightbox-close"
|
||||||
position="absolute"
|
position="absolute"
|
||||||
top={{ base: 2, md: 4 }}
|
top={{ base: 2, md: 4 }}
|
||||||
@@ -202,7 +210,9 @@ export default function Lightbox({
|
|||||||
justifyContent="space-between"
|
justifyContent="space-between"
|
||||||
>
|
>
|
||||||
<ControlButton
|
<ControlButton
|
||||||
aria-label="Vorige foto"
|
aria-label={t(
|
||||||
|
'common.lightbox.previous',
|
||||||
|
)}
|
||||||
data-testid="lightbox-prev"
|
data-testid="lightbox-prev"
|
||||||
onClick={() => show(current - 1)}
|
onClick={() => show(current - 1)}
|
||||||
position={{ md: 'absolute' }}
|
position={{ md: 'absolute' }}
|
||||||
@@ -226,7 +236,7 @@ export default function Lightbox({
|
|||||||
{current + 1} / {count}
|
{current + 1} / {count}
|
||||||
</Text>
|
</Text>
|
||||||
<ControlButton
|
<ControlButton
|
||||||
aria-label="Volgende foto"
|
aria-label={t('common.lightbox.next')}
|
||||||
data-testid="lightbox-next"
|
data-testid="lightbox-next"
|
||||||
onClick={() => show(current + 1)}
|
onClick={() => show(current + 1)}
|
||||||
position={{ md: 'absolute' }}
|
position={{ md: 'absolute' }}
|
||||||
@@ -271,9 +281,7 @@ function Photo({ item, swipe, onBackground }: PhotoProps) {
|
|||||||
const onLoad = () => setLoad('loaded');
|
const onLoad = () => setLoad('loaded');
|
||||||
const onError = () => setLoad('failed');
|
const onError = () => setLoad('failed');
|
||||||
const caption =
|
const caption =
|
||||||
load === 'failed'
|
load === 'failed' ? t('common.lightbox.loadFailed') : item.caption;
|
||||||
? 'Deze foto kon niet groot geladen worden'
|
|
||||||
: item.caption;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<chakra.figure
|
<chakra.figure
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import { Link, Text, type TextProps } from '@chakra-ui/react';
|
import { Link, Text, type TextProps } from '@chakra-ui/react';
|
||||||
import RouterLink from '@/components/RouterLink';
|
import RouterLink from '@/components/RouterLink';
|
||||||
|
import { t } from '@/i18n';
|
||||||
|
|
||||||
// The line under a contact form (and under its "coming soon" notice) that
|
// The line under a contact form (and under its "coming soon" notice) that
|
||||||
// tells visitors where to read what happens with their details (BR-PR-01).
|
// tells visitors where to read what happens with their details (BR-PR-01).
|
||||||
@@ -12,13 +13,13 @@ export default function PrivacyNote(props: TextProps) {
|
|||||||
data-testid="privacy-note"
|
data-testid="privacy-note"
|
||||||
{...props}
|
{...props}
|
||||||
>
|
>
|
||||||
Lees in de{' '}
|
{t('common.privacyNote.before')}{' '}
|
||||||
<Link variant="underline" asChild>
|
<Link variant="underline" asChild>
|
||||||
<RouterLink to="/privacyverklaring">
|
<RouterLink to="/privacyverklaring">
|
||||||
privacyverklaring
|
{t('common.privacyNote.link')}
|
||||||
</RouterLink>
|
</RouterLink>
|
||||||
</Link>{' '}
|
</Link>{' '}
|
||||||
wat ik met je gegevens doe.
|
{t('common.privacyNote.after')}
|
||||||
</Text>
|
</Text>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import { useEffect } from 'react';
|
import { useEffect } from 'react';
|
||||||
import { chakra, useRecipe } from '@chakra-ui/react';
|
import { chakra, useRecipe } from '@chakra-ui/react';
|
||||||
import { useRouter, type ErrorComponentProps } from '@tanstack/react-router';
|
import { useRouter, type ErrorComponentProps } from '@tanstack/react-router';
|
||||||
|
import { t } from '@/i18n';
|
||||||
import { reportError } from '@/monitoring/sentry';
|
import { reportError } from '@/monitoring/sentry';
|
||||||
import LinkButton from '../LinkButton';
|
import LinkButton from '../LinkButton';
|
||||||
import StatusPage from './StatusPage';
|
import StatusPage from './StatusPage';
|
||||||
@@ -24,10 +25,15 @@ export default function ErrorPage({ error, reset }: ErrorComponentProps) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<title>Er ging iets mis | Andrea Slop Fotografie</title>
|
<title>
|
||||||
|
{t('common.status.documentTitle', {
|
||||||
|
title: t('common.status.error.title'),
|
||||||
|
siteName: t('common.site.name'),
|
||||||
|
})}
|
||||||
|
</title>
|
||||||
<meta name="robots" content="noindex" />
|
<meta name="robots" content="noindex" />
|
||||||
<StatusPage
|
<StatusPage
|
||||||
title="Er ging iets mis"
|
title={t('common.status.error.title')}
|
||||||
actions={
|
actions={
|
||||||
<>
|
<>
|
||||||
<chakra.button
|
<chakra.button
|
||||||
@@ -37,20 +43,19 @@ export default function ErrorPage({ error, reset }: ErrorComponentProps) {
|
|||||||
cursor="pointer"
|
cursor="pointer"
|
||||||
data-testid="error-page-retry-button"
|
data-testid="error-page-retry-button"
|
||||||
>
|
>
|
||||||
Opnieuw proberen
|
{t('common.actions.retry')}
|
||||||
</chakra.button>
|
</chakra.button>
|
||||||
<LinkButton
|
<LinkButton
|
||||||
to="/"
|
to="/"
|
||||||
variant="outline"
|
variant="outline"
|
||||||
data-testid="error-page-home-link"
|
data-testid="error-page-home-link"
|
||||||
>
|
>
|
||||||
Terug naar home
|
{t('common.actions.backHome')}
|
||||||
</LinkButton>
|
</LinkButton>
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
Door een fout kan deze pagina nu niet worden getoond. Probeer
|
{t('common.status.error.text')}
|
||||||
het opnieuw of ga terug naar de homepage.
|
|
||||||
</StatusPage>
|
</StatusPage>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import { useRouterState } from '@tanstack/react-router';
|
import { useRouterState } from '@tanstack/react-router';
|
||||||
import useHydrated from '@/hooks/useHydrated';
|
import useHydrated from '@/hooks/useHydrated';
|
||||||
|
import { t } from '@/i18n';
|
||||||
import { isShootSectionPath } from '@/lib/isShootSectionPath';
|
import { isShootSectionPath } from '@/lib/isShootSectionPath';
|
||||||
import LinkButton from '../LinkButton';
|
import LinkButton from '../LinkButton';
|
||||||
import StatusPage from './StatusPage';
|
import StatusPage from './StatusPage';
|
||||||
@@ -19,10 +20,15 @@ export default function NotFound() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<title>Pagina niet gevonden | Andrea Slop Fotografie</title>
|
<title>
|
||||||
|
{t('common.status.documentTitle', {
|
||||||
|
title: t('common.status.notFound.title'),
|
||||||
|
siteName: t('common.site.name'),
|
||||||
|
})}
|
||||||
|
</title>
|
||||||
<meta name="robots" content="noindex" />
|
<meta name="robots" content="noindex" />
|
||||||
<StatusPage
|
<StatusPage
|
||||||
title="Pagina niet gevonden"
|
title={t('common.status.notFound.title')}
|
||||||
actions={
|
actions={
|
||||||
hydrated && isShootSectionPath(pathname) ? (
|
hydrated && isShootSectionPath(pathname) ? (
|
||||||
<>
|
<>
|
||||||
@@ -31,21 +37,20 @@ export default function NotFound() {
|
|||||||
variant="accent"
|
variant="accent"
|
||||||
data-testid="status-page-section-link"
|
data-testid="status-page-section-link"
|
||||||
>
|
>
|
||||||
Terug naar Soorten fotoshoots
|
{t('common.status.backToShoots')}
|
||||||
</LinkButton>
|
</LinkButton>
|
||||||
<LinkButton
|
<LinkButton
|
||||||
to="/"
|
to="/"
|
||||||
variant="outline"
|
variant="outline"
|
||||||
data-testid="status-page-home-link"
|
data-testid="status-page-home-link"
|
||||||
>
|
>
|
||||||
Terug naar home
|
{t('common.actions.backHome')}
|
||||||
</LinkButton>
|
</LinkButton>
|
||||||
</>
|
</>
|
||||||
) : undefined
|
) : undefined
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
Deze pagina bestaat niet (meer). Misschien is de link verouderd
|
{t('common.status.notFound.text')}
|
||||||
of zit er een typfout in het adres.
|
|
||||||
</StatusPage>
|
</StatusPage>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import type { ReactNode } from 'react';
|
import type { ReactNode } from 'react';
|
||||||
import { Container, Flex, Heading, Text } from '@chakra-ui/react';
|
import { Container, Flex, Heading, Text } from '@chakra-ui/react';
|
||||||
|
import { t } from '@/i18n';
|
||||||
import LinkButton from '../LinkButton';
|
import LinkButton from '../LinkButton';
|
||||||
|
|
||||||
type StatusPageProps = {
|
type StatusPageProps = {
|
||||||
@@ -32,7 +33,7 @@ export default function StatusPage({
|
|||||||
<Flex gap={4} justifyContent="center" wrap="wrap">
|
<Flex gap={4} justifyContent="center" wrap="wrap">
|
||||||
{actions ?? (
|
{actions ?? (
|
||||||
<LinkButton to="/" data-testid="status-page-home-link">
|
<LinkButton to="/" data-testid="status-page-home-link">
|
||||||
Terug naar home
|
{t('common.actions.backHome')}
|
||||||
</LinkButton>
|
</LinkButton>
|
||||||
)}
|
)}
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import {
|
|||||||
} from '@chakra-ui/react';
|
} from '@chakra-ui/react';
|
||||||
import { Link } from '@tanstack/react-router';
|
import { Link } from '@tanstack/react-router';
|
||||||
import type { PricingPackage } from '@/content/types';
|
import type { PricingPackage } from '@/content/types';
|
||||||
|
import { t } from '@/i18n';
|
||||||
import { bookLabel } from '@/lib/bookLabel';
|
import { bookLabel } from '@/lib/bookLabel';
|
||||||
import { formatPrice } from '@/lib/formatPrice';
|
import { formatPrice } from '@/lib/formatPrice';
|
||||||
|
|
||||||
@@ -62,7 +63,7 @@ export default function PriceCard({ pkg }: PriceCardProps) {
|
|||||||
color="white"
|
color="white"
|
||||||
whiteSpace="nowrap"
|
whiteSpace="nowrap"
|
||||||
>
|
>
|
||||||
Uitgelicht
|
{t('common.pricing.featured')}
|
||||||
</Text>
|
</Text>
|
||||||
)}
|
)}
|
||||||
{/* Smaller than the design's 1.75rem: stays clearly below the
|
{/* Smaller than the design's 1.75rem: stays clearly below the
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import { Box, chakra, Text } from '@chakra-ui/react';
|
import { Box, chakra, Text } from '@chakra-ui/react';
|
||||||
import type { PricingTopBanner } from '@/content/types';
|
import type { PricingTopBanner } from '@/content/types';
|
||||||
|
import { t } from '@/i18n';
|
||||||
|
|
||||||
type PriceTopBarProps = {
|
type PriceTopBarProps = {
|
||||||
banner: PricingTopBanner;
|
banner: PricingTopBanner;
|
||||||
@@ -18,7 +19,7 @@ export default function PriceTopBar({ banner }: PriceTopBarProps) {
|
|||||||
return (
|
return (
|
||||||
<Box
|
<Box
|
||||||
as="aside"
|
as="aside"
|
||||||
aria-label={title ?? 'Mededeling'}
|
aria-label={title ?? t('common.pricing.announcement')}
|
||||||
data-testid="price-top-bar"
|
data-testid="price-top-bar"
|
||||||
display="flex"
|
display="flex"
|
||||||
flexWrap="wrap"
|
flexWrap="wrap"
|
||||||
|
|||||||
@@ -9,5 +9,70 @@
|
|||||||
"newTab": {
|
"newTab": {
|
||||||
"short": "(opent in nieuw tabblad)",
|
"short": "(opent in nieuw tabblad)",
|
||||||
"instagram": "(Instagram, opent in nieuw tabblad)"
|
"instagram": "(Instagram, opent in nieuw tabblad)"
|
||||||
|
},
|
||||||
|
"actions": {
|
||||||
|
"backHome": "Terug naar home",
|
||||||
|
"close": "Sluiten",
|
||||||
|
"retry": "Opnieuw proberen"
|
||||||
|
},
|
||||||
|
"form": {
|
||||||
|
"name": {
|
||||||
|
"label": "Naam",
|
||||||
|
"placeholder": "Jouw naam"
|
||||||
|
},
|
||||||
|
"email": {
|
||||||
|
"label": "E-mail",
|
||||||
|
"placeholder": "jouw@email.nl"
|
||||||
|
},
|
||||||
|
"subject": {
|
||||||
|
"label": "In welke shoot heb je interesse?",
|
||||||
|
"placeholder": "Kies een optie..."
|
||||||
|
},
|
||||||
|
"message": {
|
||||||
|
"label": "Stel hier je vraag",
|
||||||
|
"placeholder": "Vul hier je bericht in"
|
||||||
|
},
|
||||||
|
"submit": "(Aan)vraag versturen",
|
||||||
|
"sent": "Bedankt voor je bericht! Ik reageer binnen {replyTime}.",
|
||||||
|
"captcha": {
|
||||||
|
"problem": "De controle dat je geen robot bent kon niet laden. Ververs de pagina of",
|
||||||
|
"mailTo": " mail naar ",
|
||||||
|
"mailMe": " mail me."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"gate": {
|
||||||
|
"eyebrow": "Binnenkort",
|
||||||
|
"text": "Het contactformulier komt binnenkort.",
|
||||||
|
"mailLead": " Mail me voor nu op ",
|
||||||
|
"mailButton": "Stuur een e-mail"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"documentTitle": "{title} | {siteName}",
|
||||||
|
"backToShoots": "Terug naar Soorten fotoshoots",
|
||||||
|
"notFound": {
|
||||||
|
"title": "Pagina niet gevonden",
|
||||||
|
"text": "Deze pagina bestaat niet (meer). Misschien is de link verouderd of zit er een typfout in het adres."
|
||||||
|
},
|
||||||
|
"error": {
|
||||||
|
"title": "Er ging iets mis",
|
||||||
|
"text": "Door een fout kan deze pagina nu niet worden getoond. Probeer het opnieuw of ga terug naar de homepage."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"lightbox": {
|
||||||
|
"label": "Foto groot bekijken",
|
||||||
|
"previous": "Vorige foto",
|
||||||
|
"next": "Volgende foto",
|
||||||
|
"announcement": "Foto {position} van {count}",
|
||||||
|
"announcementWithCaption": "Foto {position} van {count}, {caption}",
|
||||||
|
"loadFailed": "Deze foto kon niet groot geladen worden"
|
||||||
|
},
|
||||||
|
"privacyNote": {
|
||||||
|
"before": "Lees in de",
|
||||||
|
"link": "privacyverklaring",
|
||||||
|
"after": "wat ik met je gegevens doe."
|
||||||
|
},
|
||||||
|
"pricing": {
|
||||||
|
"featured": "Uitgelicht",
|
||||||
|
"announcement": "Mededeling"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user