import { motion } from 'framer-motion'; import { useTranslation } from 'react-i18next'; import { Briefcase, GraduationCap, Globe } from 'lucide-react'; interface WorkPosition { title: string; period: string; company: string; location: string; highlights: string[]; } const Journey = () => { const { t } = useTranslation(); // Sichere Datenabruf-Funktionen const getWorkPositions = (): WorkPosition[] => { try { const positions = t('pages.about.journey.work.positions', { returnObjects: true }); return Array.isArray(positions) ? (positions as WorkPosition[]) : []; } catch (error) { console.error('Error loading work positions:', error); return []; } }; const getLanguageItems = () => { try { const items = t('pages.about.journey.languages.items', { returnObjects: true }); return typeof items === 'object' ? Object.entries(items) : []; } catch (error) { console.error('Error loading language items:', error); return []; } }; return (
{/* Section Header */}

{t('pages.about.journey.title')}

{t('pages.about.journey.subtitle')}

{/* Education Column */}

{t('pages.about.journey.education.title')}

{t('pages.about.journey.education.degrees.masters.degree')}

{t('pages.about.journey.education.degrees.masters.university')}

{t('pages.about.journey.education.degrees.masters.period')}

{t('pages.about.journey.education.degrees.bachelors.degree')}

{t('pages.about.journey.education.degrees.bachelors.university')}

{t('pages.about.journey.education.degrees.bachelors.period')}

{/* Languages */}

{t('pages.about.journey.languages.title')}

{getLanguageItems().map(([key, item]) => (
{item.name}
{item.level}
))}
{/* Work History */} {getWorkPositions().map((job, index) => (

{job.title}

{job.period}

{job.company}

• {job.location}
    {job.highlights.map((highlight: string, idx: number) => (
  • {highlight}
  • ))}
))}
); }; export default Journey;