Translation files, steps 6 and 7: portfolio, instagram, testimonials and the SEO titles in language files
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { Box, chakra, Container, Link, VisuallyHidden } from '@chakra-ui/react';
|
||||
import { t } from '@/i18n';
|
||||
import DeferredImage from '@/components/DeferredImage/DeferredImage';
|
||||
import PageSection from '@/components/PageSection/PageSection';
|
||||
import Reveal from '@/components/Reveal/Reveal';
|
||||
@@ -46,7 +47,7 @@ export default function InstagramGrid({
|
||||
out of the announced name */}
|
||||
{content.handle}{' '}
|
||||
<VisuallyHidden>
|
||||
(opent in nieuw tabblad)
|
||||
{t('common.newTab.short')}
|
||||
</VisuallyHidden>
|
||||
</Link>
|
||||
}
|
||||
@@ -106,7 +107,7 @@ export default function InstagramGrid({
|
||||
{/* The photo's alt names the link; this says
|
||||
where it goes */}{' '}
|
||||
<VisuallyHidden>
|
||||
(Instagram, opent in nieuw tabblad)
|
||||
{t('common.newTab.instagram')}
|
||||
</VisuallyHidden>
|
||||
</chakra.a>
|
||||
</chakra.li>
|
||||
|
||||
@@ -6,6 +6,7 @@ import {
|
||||
VisuallyHidden,
|
||||
type ImageProps,
|
||||
} from '@chakra-ui/react';
|
||||
import { t } from '@/i18n';
|
||||
import DeferredImage from '@/components/DeferredImage/DeferredImage';
|
||||
import Reveal from '@/components/Reveal/Reveal';
|
||||
import type { GalleryItem } from '@/content/types';
|
||||
@@ -185,7 +186,7 @@ export default function PortfolioGrid({
|
||||
{/* The alt names the photo; this says what
|
||||
the link does */}{' '}
|
||||
<VisuallyHidden>
|
||||
(groot bekijken)
|
||||
{t('portfolio.gallery.viewLarge')}
|
||||
</VisuallyHidden>
|
||||
</chakra.a>
|
||||
</chakra.li>
|
||||
|
||||
@@ -13,6 +13,7 @@ import {
|
||||
import { Icon } from '@iconify/react/offline';
|
||||
import leftOutlined from '@iconify-icons/ant-design/left-outlined';
|
||||
import rightOutlined from '@iconify-icons/ant-design/right-outlined';
|
||||
import { t } from '@/i18n';
|
||||
import type { Testimonial } from '@/content/types';
|
||||
import { slideCounter } from '@/lib/slideCounter';
|
||||
import { slideLabel } from '@/lib/slideLabel';
|
||||
@@ -50,8 +51,8 @@ export default function TestimonialCarousel({
|
||||
return (
|
||||
<Carousel.RootProvider
|
||||
value={carousel}
|
||||
aria-label="Reviews"
|
||||
aria-roledescription="carrousel"
|
||||
aria-label={t('testimonials.carouselLabel')}
|
||||
aria-roledescription={t('testimonials.carouselRoleDescription')}
|
||||
gap={0}
|
||||
// The control bar lies over the bottom right of the slides
|
||||
position="relative"
|
||||
@@ -95,7 +96,7 @@ export default function TestimonialCarousel({
|
||||
>
|
||||
<chakra.button
|
||||
type="button"
|
||||
aria-label="Vorige review"
|
||||
aria-label={t('testimonials.previous')}
|
||||
data-testid="testimonials-prev"
|
||||
css={control({ kind: 'arrow' })}
|
||||
onClick={previous}
|
||||
@@ -118,7 +119,7 @@ export default function TestimonialCarousel({
|
||||
</Text>
|
||||
<chakra.button
|
||||
type="button"
|
||||
aria-label="Volgende review"
|
||||
aria-label={t('testimonials.next')}
|
||||
data-testid="testimonials-next"
|
||||
css={control({ kind: 'arrow' })}
|
||||
onClick={next}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { lazy, Suspense, useReducer, useRef, useState } from 'react';
|
||||
import { Box, chakra, Heading, VisuallyHidden } from '@chakra-ui/react';
|
||||
import { t } from '@/i18n';
|
||||
import FilterBar from '@/components/FilterBar/FilterBar';
|
||||
import PageSection from '@/components/PageSection/PageSection';
|
||||
import PortfolioGrid from '@/components/PortfolioGrid/PortfolioGrid';
|
||||
@@ -88,15 +89,18 @@ export default function PortfolioGallery({
|
||||
names the section */}
|
||||
<VisuallyHidden>
|
||||
<Heading as="h2" id={TITLE_ID}>
|
||||
Foto's
|
||||
{t('portfolio.gallery.heading')}
|
||||
</Heading>
|
||||
</VisuallyHidden>
|
||||
<Box mb={{ base: 6, md: 10 }}>
|
||||
<FilterBar
|
||||
options={filterOptions(available, 'Alles')}
|
||||
options={filterOptions(
|
||||
available,
|
||||
t('portfolio.gallery.filterAll'),
|
||||
)}
|
||||
value={active ?? ALL_FILTER}
|
||||
onChange={chooseFilter}
|
||||
label="Filter op soort shoot"
|
||||
label={t('portfolio.gallery.filterLabel')}
|
||||
/>
|
||||
</Box>
|
||||
<chakra.p srOnly aria-live="polite" data-testid="portfolio-count">
|
||||
|
||||
Reference in New Issue
Block a user