From 034ba902d2265090f2b771d5d291f7385b3f0ab2 Mon Sep 17 00:00:00 2001 From: Sluijsens Date: Sun, 15 Nov 2026 20:51:07 +0100 Subject: [PATCH] Translation files, step 2: navigation, footer and contact details in site.json Co-Authored-By: Claude Sonnet 5.5 --- web/src/components/Breadcrumb/Breadcrumb.tsx | 3 +- .../ContactDetails/ContactDetails.tsx | 3 +- web/src/components/Footer/Footer.tsx | 14 +++--- .../components/NavigationBar/MobileNav.tsx | 3 +- .../NavigationBar/MobileNavGroup.tsx | 3 +- .../components/NavigationBar/NavSubmenu.tsx | 3 +- .../NavigationBar/NavigationBar.tsx | 9 ++-- .../components/NavigationBar/NoScriptNav.tsx | 5 ++- web/src/content/siteContent.ts | 17 ++++--- web/src/content/socialPlatforms.ts | 5 ++- web/src/i18n/nl/site.json | 45 ++++++++++++++++++- web/src/lib/copyrightLine.ts | 4 +- web/src/lib/mailLink.ts | 6 ++- web/src/navigation.ts | 19 ++++---- 14 files changed, 101 insertions(+), 38 deletions(-) diff --git a/web/src/components/Breadcrumb/Breadcrumb.tsx b/web/src/components/Breadcrumb/Breadcrumb.tsx index 5f4e2a5..a4b311a 100644 --- a/web/src/components/Breadcrumb/Breadcrumb.tsx +++ b/web/src/components/Breadcrumb/Breadcrumb.tsx @@ -1,6 +1,7 @@ import { Fragment } from 'react'; import { Box, Flex, Text } from '@chakra-ui/react'; import RouterLink from '@/components/RouterLink'; +import { t } from '@/i18n'; import type { BreadcrumbItem } from '@/lib/shootPageView'; type BreadcrumbProps = { @@ -68,7 +69,7 @@ export default function Breadcrumb({ {!last && ( )} diff --git a/web/src/components/ContactDetails/ContactDetails.tsx b/web/src/components/ContactDetails/ContactDetails.tsx index af957bc..178f88a 100644 --- a/web/src/components/ContactDetails/ContactDetails.tsx +++ b/web/src/components/ContactDetails/ContactDetails.tsx @@ -12,6 +12,7 @@ import Eyebrow from '@/components/Eyebrow/Eyebrow'; import socialPlatforms from '@/content/socialPlatforms'; import type { ContentImage, EmailAddress, SocialLink } from '@/content/types'; import useHydrated from '@/hooks/useHydrated'; +import { t } from '@/i18n'; import { contactChannels, type ContactChannel } from '@/lib/contactChannels'; type ContactDetailsProps = { @@ -122,7 +123,7 @@ export default function ContactDetails({ <> {' '} - (opent in nieuw tabblad) + {t('common.newTab.short')} )} diff --git a/web/src/components/Footer/Footer.tsx b/web/src/components/Footer/Footer.tsx index 8ea128d..926f7c4 100644 --- a/web/src/components/Footer/Footer.tsx +++ b/web/src/components/Footer/Footer.tsx @@ -12,6 +12,7 @@ import socialPlatforms from '@/content/socialPlatforms'; import type { SiteContent } from '@/content/types'; import useEmailAddress from '@/hooks/useEmailAddress'; import useHydrated from '@/hooks/useHydrated'; +import { t } from '@/i18n'; import { copyrightLine } from '@/lib/copyrightLine'; import { visibleSocials } from '@/lib/visibleSocials'; import { footerNav } from '@/navigation'; @@ -69,7 +70,7 @@ export default function Footer({ content }: FooterProps) { > Andrea Slop Fotografie {socials.length > 0 && ( - + {socials.map((social) => ( - (opent in nieuw tabblad) + {t('common.newTab.short')} @@ -106,7 +107,10 @@ export default function Footer({ content }: FooterProps) { )} {available && ( - + {address === null ? ( // Even hoog als FooterLink (44px onder lg, daarna // een tekstregel), zodat de kolom niet verspringt @@ -143,7 +147,7 @@ export default function Footer({ content }: FooterProps) { {copyrightLine(year)} - + -