diff --git a/web/src/components/home/IntroGallery/IntroGallery.tsx b/web/src/components/home/IntroGallery/IntroGallery.tsx index 1948ecc..ab46a02 100644 --- a/web/src/components/home/IntroGallery/IntroGallery.tsx +++ b/web/src/components/home/IntroGallery/IntroGallery.tsx @@ -7,6 +7,7 @@ import Reveal from '@/components/Reveal/Reveal'; import SectionHeading from '@/components/SectionHeading/SectionHeading'; import type { HomeContent } from '@/content/types'; import useInView from '@/hooks/useInView'; +import { t } from '@/i18n'; const TITLE_ID = 'intro-title'; @@ -45,7 +46,7 @@ export default function IntroGallery({ content }: IntroGalleryProps) { " on one line in the // card's button down to a 320px phone (BR-BOOK-02, BR-BOOK-03) export const BOOK_LABEL_MAX_NAME = 14; @@ -13,7 +15,10 @@ export interface BookLabel { // screen readers, so every link still names its package. export function bookLabel(name: string): BookLabel { if (name.length <= BOOK_LABEL_MAX_NAME) { - return { visible: `Boek ${name}` }; + return { visible: t('home.booking.book', { name }) }; } - return { visible: 'Boek je shoot', hidden: `: ${name}` }; + return { + visible: t('home.booking.bookShoot'), + hidden: t('home.booking.hiddenName', { name }), + }; } diff --git a/web/src/lib/readMoreLabel.ts b/web/src/lib/readMoreLabel.ts index 6202f49..e0373c8 100644 --- a/web/src/lib/readMoreLabel.ts +++ b/web/src/lib/readMoreLabel.ts @@ -1,7 +1,10 @@ +import { t } from '../i18n/index.ts'; import type { ShootType } from '../content/types.ts'; // The text of the link from the overview to a shoot page (FR-ST-09). It // differs per shoot, so no aria-label is needed to tell the links apart. export function readMoreLabel(shoot: ShootType): string { - return `Lees meer over de ${shoot.shootLabel.toLowerCase()}`; + return t('home.booking.readMore', { + shootLabel: shoot.shootLabel.toLowerCase(), + }); } diff --git a/web/src/lib/shootOptions.ts b/web/src/lib/shootOptions.ts index 650bc6b..5f68b60 100644 --- a/web/src/lib/shootOptions.ts +++ b/web/src/lib/shootOptions.ts @@ -1,3 +1,4 @@ +import { t } from '../i18n/index.ts'; import type { SubjectOption } from '../cms-client/contact/index.ts'; import type { PricingPackage } from '../content/types.ts'; import { visiblePackages } from './visiblePackages.ts'; @@ -5,7 +6,10 @@ import { visiblePackages } from './visiblePackages.ts'; // What is sent as the message subject is the readable label, so mails and // the CMS message list are readable (decision Bryan, 2026-11-10). The label // of "other" is fixed per site. -export const OTHER_SHOOT: SubjectOption = { value: 'Overig', label: 'Overig' }; +export const OTHER_SHOOT: SubjectOption = { + value: t('home.booking.otherShoot'), + label: t('home.booking.otherShoot'), +}; // The choices of "In welke shoot heb je interesse?": the shown packages in // their order, then Overig. Same source as the price cards, so the two never