--- // "Cómo trabajamos" — Horizontal asymmetric circles with organic SVG connecting line import SectionEyebrow from './SectionEyebrow.astro'; import type { TranslationKey } from '@/i18n/ui'; interface Props { t: (key: TranslationKey) => string; } const { t } = Astro.props; const steps = [ { num: '01', titleKey: 'process.step1.title' as TranslationKey, bodyKey: 'process.step1.body' as TranslationKey, yPct: 35 }, { num: '02', titleKey: 'process.step2.title' as TranslationKey, bodyKey: 'process.step2.body' as TranslationKey, yPct: 58 }, { num: '03', titleKey: 'process.step3.title' as TranslationKey, bodyKey: 'process.step3.body' as TranslationKey, yPct: 28 }, { num: '04', titleKey: 'process.step4.title' as TranslationKey, bodyKey: 'process.step4.body' as TranslationKey, yPct: 50 }, ]; --- {t('process.title')} {steps.map((step, i) => ( {step.num} {t(step.titleKey)} {t(step.bodyKey)} ))} {steps.map((step, i) => ( {step.num} {t(step.titleKey)} {t(step.bodyKey)} ))}
{t(step.bodyKey)}