From: Daniel Karbach Date: Sun, 1 Oct 2023 13:41:28 +0000 (+0200) Subject: show translated event title if available X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=27802e47533789b87644ddc718ba9d7693424537;p=alttp.git show translated event title if available --- 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 ?