import React from 'react'; import { STEPS } from '../constants'; import { useLocation } from 'react-router-dom'; const Process: React.FC = () => { const location = useLocation(); const isEnglish = location.pathname.startsWith('/en'); const steps = STEPS.map((step) => ({ ...step, description: isEnglish ? (() => { switch (step.title) { case 'Звонок': return 'We get in touch with you, clarify all the details and agree on the price.'; case 'ТЗ': return 'We prepare a technical assignment for our specialists.'; case 'Договор': return 'We prepare all required documents and sign the contract.'; case 'Работа': return 'We carry out on-site work and test collected samples.'; case 'Отчет': return 'We prepare a technical report and hand over the full documentation package.'; case 'Финал': return 'We present the report and provide recommendations.'; default: return step.description; } })() : step.description, })); return (
{step.description}