From 9906671cc0f11bf1e95f325e9116698bcccf14c4 Mon Sep 17 00:00:00 2001 From: SwagMuffin88 Date: Thu, 21 Aug 2025 17:38:12 +0300 Subject: [PATCH] fix variables in translation files --- src/app/[locale]/reeglid/page.tsx | 9 +++++---- translations/en.json | 6 +++--- translations/et.json | 3 ++- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/app/[locale]/reeglid/page.tsx b/src/app/[locale]/reeglid/page.tsx index ba27e02..0886779 100644 --- a/src/app/[locale]/reeglid/page.tsx +++ b/src/app/[locale]/reeglid/page.tsx @@ -9,16 +9,17 @@ export default async function RulesMenu({ params: Promise<{ locale: string }>; }) { const { locale } = await params; + setRequestLocale(locale); + const t = await getTranslations({ locale }); + const headingStyle = `text-4xl md:text-5xl lg:text-6xl ${vipnagorgialla.className} font-bold italic text-[#2A2C3F] dark:text-[#EEE5E5] uppercase`; const boxStyle = `-skew-x-2 md:-skew-x-5 text-white md:px-12 hover:scale-103 transition-all duration-150 w-full md:w-xl lg:w-[400px]`; const boxTextStyle = `text-3xl ${vipnagorgialla.className} font-bold uppercase text-[#EEE5E5] pb-2`; - - // const SectionDivider = () =>
; - + return (
@@ -49,7 +50,7 @@ export default async function RulesMenu({ {/**/}

- {t("tournaments.mini.titleSingular")} {t("rules.title")} + {t("rules.miniRules")}

{/**/} diff --git a/translations/en.json b/translations/en.json index 73ec36e..566f638 100644 --- a/translations/en.json +++ b/translations/en.json @@ -6,7 +6,7 @@ "houserules": "House rules", "expo": "Expo", "tickets": "Tickets", - "rules": "Rules", + "rules": "Game rules", "stream": "Stream", "tournaments": "Tournaments" }, @@ -116,7 +116,6 @@ "buyTicket": "BUY TICKETS" }, "mini": { - "titleSingular": "Mini-tournament", "title": "Mini-tournaments", "timing": "Timing to be announced", "description1": "TipiLAN hosts various fun and competitive mini-tournaments. Mini-tournaments take place in the following games: SimRacing, Tekken, FIFA, Minecraft Bedwars, Buckshot Roulette, LostGamer and many more.", @@ -185,7 +184,8 @@ "title": "Rules", "houseRules": "House Rules", "cs2Rules": "CS2 Rules", - "lolRules": "LoL Rules" + "lolRules": "LoL Rules", + "miniRules": "Mini-tournament Rules" }, "admin": { "title": "Admin", diff --git a/translations/et.json b/translations/et.json index 40ba4f3..7c1818e 100644 --- a/translations/et.json +++ b/translations/et.json @@ -184,7 +184,8 @@ "title": "Reeglid", "houseRules": "Kodukord", "cs2Rules": "CS2 Reeglid", - "lolRules": "LoL Reeglid" + "lolRules": "LoL Reeglid", + "miniRules": "Miniturniiride Reeglid" }, "admin": { "title": "Haldus",