--- import { translations } from '../data/i18n.js'; const { lang = 'no', data } = Astro.props; const t = translations[lang].program; const currentDate = new Date().toLocaleDateString(lang === 'en' ? 'en-GB' : 'nb-NO', { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' }); --- {data ? (

{t.today}

{currentDate}

{Object.entries(data).map(([dayName, items]) => (

{dayName}

))}
) : (
No program data available.
)}