fix: move hardcoded translation in landing-page to translations

This commit is contained in:
Dariusz Niemczyk 2025-08-05 20:55:56 +02:00
parent e69926a162
commit 5127ee7967
No known key found for this signature in database
2 changed files with 6 additions and 4 deletions

View file

@ -267,14 +267,12 @@ export default function LandingPage(
/>
</svg>
<p className="text-lg text-muted-foreground mb-4">
{currentLocale === 'pl'
? 'Zobacz pełny harmonogram wydarzeń, prelekcji i warsztatów'
: 'View the full schedule of events, talks, and workshops'}
{t.contribute.agenda.description}
</p>
</div>
<Button className={`${oxanium.className} text-xl uppercase cursor-pointer`} size="lg">
<Link href={`/${currentLocale}/agenda`}>
{currentLocale === 'pl' ? 'Zobacz agendę' : 'View agenda'}
{t.contribute.agenda.viewButton}
</Link>
</Button>
</div>

View file

@ -63,6 +63,8 @@ const pl = {
},
agenda: {
title: "Agenda",
description: "Zobacz pełny harmonogram wydarzeń, prelekcji i warsztatów",
viewButton: "Zobacz agendę",
},
},
faq: {
@ -180,6 +182,8 @@ const en = {
},
agenda: {
title: "Schedule",
description: "View the full schedule of events, talks, and workshops",
viewButton: "View agenda",
},
},
faq: {