diff --git a/src/components/Schedule/ScheduleCard.astro b/src/components/Schedule/ScheduleCard.astro index a5cf74f..aaca5c4 100644 --- a/src/components/Schedule/ScheduleCard.astro +++ b/src/components/Schedule/ScheduleCard.astro @@ -1,5 +1,6 @@ --- import type { ScheduleSlotRoom } from '../../data/types/sessionize'; +import { getLangFromUrl, useTranslatedPath, useTranslations } from '../../i18n/utils'; interface Props { @@ -7,6 +8,9 @@ interface Props { } const { value } = Astro.props; +const lang = getLangFromUrl(Astro.url); +const t = useTranslations(lang); +const getPath = useTranslatedPath(lang); const hasSpeakers = value.session.info && value.session.info.speakers; @@ -16,14 +20,16 @@ const url = !value.session.isServiceSession --- -{!value.session.isServiceSession &&

{value.name}

} + {!value.session.isServiceSession &&

{value.name}

}

{value.session.title}

+
+ {value.session.isServiceSession &&

{t("session.room")}: {value.name}

}
{ hasSpeakers &&