Skip to content

Commit

Permalink
fix(api): update title field to support multilingual representation
Browse files Browse the repository at this point in the history
  • Loading branch information
BuildmodeOne committed Nov 26, 2024
1 parent 8440f7b commit c156c6a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 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,10 @@ class NeulandAPIClient {
website
instagram
}
title
title {
de
en
}
location
begin
end
Expand Down
3 changes: 2 additions & 1 deletion rogue-thi-app/pages/events.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ export default function Events({ initialCampusEvents, sportsEvents }) {
<AppContainer>
<AppNavbar title={t('events.appbar.title')} />

{/* SPORTS DETAILS MODAL */}
<Modal
show={!!focusedSport}
onHide={() => setFocusedSport(null)}
Expand Down Expand Up @@ -248,7 +249,7 @@ export default function Events({ initialCampusEvents, sportsEvents }) {
className={styles.item}
>
<div className={styles.left}>
{!item.url && item.title}
{!item.url && item.title[locale]}
{item.url && (
<a
href={item.url}
Expand Down

0 comments on commit c156c6a

Please sign in to comment.