From c156c6ad17220a7fffbc0ecbd176fa1ad4df7756 Mon Sep 17 00:00:00 2001 From: Philipp Opheys Date: Tue, 26 Nov 2024 23:46:18 +0100 Subject: [PATCH] fix(api): update title field to support multilingual representation --- rogue-thi-app/lib/backend/neuland-api.js | 5 ++++- rogue-thi-app/pages/events.jsx | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/rogue-thi-app/lib/backend/neuland-api.js b/rogue-thi-app/lib/backend/neuland-api.js index 82f01ab1..e882ac87 100644 --- a/rogue-thi-app/lib/backend/neuland-api.js +++ b/rogue-thi-app/lib/backend/neuland-api.js @@ -131,7 +131,10 @@ class NeulandAPIClient { website instagram } - title + title { + de + en + } location begin end diff --git a/rogue-thi-app/pages/events.jsx b/rogue-thi-app/pages/events.jsx index 35ab5d5c..50f203c1 100644 --- a/rogue-thi-app/pages/events.jsx +++ b/rogue-thi-app/pages/events.jsx @@ -123,6 +123,7 @@ export default function Events({ initialCampusEvents, sportsEvents }) { + {/* SPORTS DETAILS MODAL */} setFocusedSport(null)} @@ -248,7 +249,7 @@ export default function Events({ initialCampusEvents, sportsEvents }) { className={styles.item} >
- {!item.url && item.title} + {!item.url && item.title[locale]} {item.url && (