Skip to content

Commit

Permalink
fix(events): update EventsCard and API to support multilingual titles
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert27 committed Nov 27, 2024
1 parent d95e13f commit fd5a739
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rogue-thi-app/components/cards/EventsCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default function EventsCard() {
<ListGroup variant="flush">
{calendar.slice(0, 2).map((x, i) => (
<ListGroup.Item key={i}>
<div>{x.title[locale]}</div>
<div>{x.titles[locale]}</div>
{x.host?.name && (
<div className="text-muted">
{t('events.organizer.attribute')} {x.host.name}
Expand Down
2 changes: 1 addition & 1 deletion rogue-thi-app/lib/backend/neuland-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class NeulandAPIClient {
website
instagram
}
title {
titles {
de
en
}
Expand Down
2 changes: 1 addition & 1 deletion rogue-thi-app/pages/events.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ export default function Events({ initialCampusEvents, sportsEvents }) {
className={styles.item}
>
<div className={styles.left}>
{!item.url && item.title[locale]}
{!item.url && item.titles[locale]}
{item.url && (
<a
href={item.url}
Expand Down

0 comments on commit fd5a739

Please sign in to comment.