--- import type { Locale } from '../i18n/index.ts'; import { t } from '../i18n/index.ts'; interface Props { locale: Locale } const { locale } = Astro.props; const tr = t(locale); const features = [ { key: 'local', data: tr.how.local, accent: '#0b9688', icon: ` `, }, { key: 'integrations', data: tr.how.integrations, accent: '#3d35c0', icon: ` `, }, { key: 'human', data: tr.how.human, accent: '#7b39eb', icon: ` `, }, ] as const; --- {locale === 'en' ? 'Our approach' : 'Nasze podejście'} {tr.how.h2} {features.map(({ key, data, accent, icon }) => ( {data.title} {data.body} {key === 'human' && ( — {tr.how.human.tagline} )} ))}
{data.body}
— {tr.how.human.tagline}