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 -7
View File
@@ -1,31 +1,34 @@
import { t } from '../i18n/index.ts';
import type { SiteContent } from './types';
// Site-brede content tot de CMS-API er is. Daarna komt dit object uit de API.
const siteContent: SiteContent = {
// Elke zin op een eigen regel; de footer toont de regelafbreking
footerIntro:
'Lifestyle fotograaf uit Huizen.\nIk leg jouw mooiste momenten vast.',
footerIntro: t('site.info.footerIntro'),
// In display order: Instagram first, her main channel
socials: [
{
platform: 'instagram',
href: 'https://www.instagram.com/andreaslopfotografie/',
label: '@andreaslopfotografie',
label: t('site.socials.instagramHandle'),
},
{
platform: 'facebook',
href: 'https://www.facebook.com/andreaslopfotografie/',
label: 'Andrea Slop Fotografie',
label: t('common.site.name'),
},
],
email: { user: 'info', domain: 'andreaslop.nl' },
// Switched on once the API can receive the form
contactForm: { enabled: true, replyTime: '1-2 werkdagen' },
contactForm: { enabled: true, replyTime: t('site.info.replyTime') },
// Huizen and the region around it (Bussum, Hilversum, …), as the pages
// say; not the whole country, which would weaken the local signal
serviceArea: [
{ type: 'City', name: 'Huizen' },
{ type: 'AdministrativeArea', name: 'Gooi en Vechtstreek' },
{ type: 'City', name: t('site.info.serviceArea.city') },
{
type: 'AdministrativeArea',
name: t('site.info.serviceArea.region'),
},
],
};
+3 -2
View File
@@ -1,11 +1,12 @@
import facebookFilled from '@iconify-icons/ant-design/facebook-filled';
import instagramFilled from '@iconify-icons/ant-design/instagram-filled';
import { t } from '../i18n/index.ts';
// Vaste set ondersteunde platforms. De icon-data zit in de build, dus er gaat
// geen request naar de Iconify API. Het CMS levert alleen de links aan.
const socialPlatforms = {
facebook: { name: 'Facebook', icon: facebookFilled },
instagram: { name: 'Instagram', icon: instagramFilled },
facebook: { name: t('site.socials.facebook'), icon: facebookFilled },
instagram: { name: t('site.socials.instagram'), icon: instagramFilled },
};
export type SocialPlatform = keyof typeof socialPlatforms;