]> git.localhorst.tv Git - alttp.git/commitdiff
use translated tournament title if available
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Wed, 21 May 2025 12:36:18 +0000 (14:36 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Wed, 21 May 2025 12:36:18 +0000 (14:36 +0200)
resources/js/pages/Tournament.js

index 4e6c86c8dbfeca485f9a963932da48e6ae047706..a374fe907ff9e93c2142b9420943e53d4466a8c1 100644 (file)
@@ -194,7 +194,11 @@ export const Component = () => {
 
        return <ErrorBoundary>
                <Helmet>
-                       <title>{tournament.title}</title>
+                       <title>
+                               {(tournament.description
+                                       && getTranslation(tournament.description, 'title', i18n.language))
+                                       || tournament.title}
+                       </title>
                </Helmet>
                {tournament.description ? <Helmet>
                        <meta