Translation files, step 2: navigation, footer and contact details in site.json

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-15 20:51:07 +01:00
co-authored by Claude Sonnet 5.5
parent 9405e2d4f9
commit 034ba902d2
14 changed files with 101 additions and 38 deletions
+10 -9
View File
@@ -1,4 +1,5 @@
import shootTypes from './content/shootTypes.ts';
import { t } from './i18n/index.ts';
import { shootNavItems } from './lib/shootNavItems.ts';
import type { FileRoutesByTo } from './routeTree.gen.ts';
@@ -23,22 +24,22 @@ export function hasChildren(
// Hoofdmenu: desktopnavigatie en mobiel menu
export const mainNav: readonly NavItem[] = [
{ to: '/', label: 'Home' },
{ to: '/over-mij', label: 'Over mij' },
{ to: '/portfolio', label: 'Portfolio' },
{ to: '/', label: t('site.nav.items.home') },
{ to: '/over-mij', label: t('site.nav.items.about') },
{ to: '/portfolio', label: t('site.nav.items.portfolio') },
{
to: '/soorten-fotoshoots',
label: 'Soorten fotoshoots',
label: t('site.nav.items.shoots'),
// One source: a new shoot type shows up in the menu by itself (D5)
children: shootNavItems(shootTypes),
},
{ to: '/contact', label: 'Contact' },
{ to: '/contact', label: t('site.nav.items.contact') },
];
// Menu in de onderste footerbalk
export const footerNav: readonly NavItem[] = [
{ to: '/portfolio', label: 'Portfolio' },
{ to: '/soorten-fotoshoots', label: 'Soorten fotoshoots' },
{ to: '/contact', label: 'Contact' },
{ to: '/privacyverklaring', label: 'Privacyverklaring' },
{ to: '/portfolio', label: t('site.nav.items.portfolio') },
{ to: '/soorten-fotoshoots', label: t('site.nav.items.shoots') },
{ to: '/contact', label: t('site.nav.items.contact') },
{ to: '/privacyverklaring', label: t('site.nav.items.privacy') },
];