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:
@@ -1,5 +1,6 @@
|
||||
import { useRouterState } from '@tanstack/react-router';
|
||||
import useHydrated from '@/hooks/useHydrated';
|
||||
import { t } from '@/i18n';
|
||||
import { isShootSectionPath } from '@/lib/isShootSectionPath';
|
||||
import LinkButton from '../LinkButton';
|
||||
import StatusPage from './StatusPage';
|
||||
@@ -19,10 +20,15 @@ export default function NotFound() {
|
||||
|
||||
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" />
|
||||
<StatusPage
|
||||
title="Pagina niet gevonden"
|
||||
title={t('common.status.notFound.title')}
|
||||
actions={
|
||||
hydrated && isShootSectionPath(pathname) ? (
|
||||
<>
|
||||
@@ -31,21 +37,20 @@ export default function NotFound() {
|
||||
variant="accent"
|
||||
data-testid="status-page-section-link"
|
||||
>
|
||||
Terug naar Soorten fotoshoots
|
||||
{t('common.status.backToShoots')}
|
||||
</LinkButton>
|
||||
<LinkButton
|
||||
to="/"
|
||||
variant="outline"
|
||||
data-testid="status-page-home-link"
|
||||
>
|
||||
Terug naar home
|
||||
{t('common.actions.backHome')}
|
||||
</LinkButton>
|
||||
</>
|
||||
) : undefined
|
||||
}
|
||||
>
|
||||
Deze pagina bestaat niet (meer). Misschien is de link verouderd
|
||||
of zit er een typfout in het adres.
|
||||
{t('common.status.notFound.text')}
|
||||
</StatusPage>
|
||||
</>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user