From 5127ee7967fb482e905d0a8a33f3e0380b29733c Mon Sep 17 00:00:00 2001 From: Dariusz Niemczyk Date: Tue, 5 Aug 2025 20:55:56 +0200 Subject: [PATCH] fix: move hardcoded translation in landing-page to translations --- src/components/landing-page.tsx | 6 ++---- src/i18n/translations.ts | 4 ++++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/landing-page.tsx b/src/components/landing-page.tsx index 3c23331..4e3cbde 100644 --- a/src/components/landing-page.tsx +++ b/src/components/landing-page.tsx @@ -267,14 +267,12 @@ export default function LandingPage( />

- {currentLocale === 'pl' - ? 'Zobacz pełny harmonogram wydarzeń, prelekcji i warsztatów' - : 'View the full schedule of events, talks, and workshops'} + {t.contribute.agenda.description}

diff --git a/src/i18n/translations.ts b/src/i18n/translations.ts index 2a4c224..c7c9f41 100644 --- a/src/i18n/translations.ts +++ b/src/i18n/translations.ts @@ -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: {