--- 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, icon: ` `, }, { key: 'integrations', data: tr.how.integrations, icon: ` `, }, { key: 'human', data: tr.how.human, icon: ` `, }, ] as const; --- {locale === 'en' ? 'Our approach' : 'Nasze podejście'} {tr.how.h2} {features.map(({ data, icon }) => ( {data.title} {data.body} ))}
{data.body}