From 27802e47533789b87644ddc718ba9d7693424537 Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Sun, 1 Oct 2023 15:41:28 +0200 Subject: [PATCH] show translated event title if available --- resources/js/components/events/Detail.js | 5 ++++- resources/js/pages/Event.js | 12 +++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/resources/js/components/events/Detail.js b/resources/js/components/events/Detail.js index 3626fbd..d530006 100644 --- a/resources/js/components/events/Detail.js +++ b/resources/js/components/events/Detail.js @@ -13,7 +13,10 @@ const Detail = ({ actions, event }) => { return <>
-

{event.title}

+

+ {(event.description && getTranslation(event.description, 'title', i18n.language)) + || event.title} +

{event.description && actions.editContent ?