fix variables in translation files

pull/49/head
SwagMuffin88 4 months ago
parent c22afa28d9
commit 9906671cc0
  1. 9
      src/app/[locale]/reeglid/page.tsx
  2. 6
      translations/en.json
  3. 3
      translations/et.json

@ -9,16 +9,17 @@ export default async function RulesMenu({
params: Promise<{ locale: string }>; params: Promise<{ locale: string }>;
}) { }) {
const { locale } = await params; const { locale } = await params;
setRequestLocale(locale); setRequestLocale(locale);
const t = await getTranslations({ 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 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 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 boxTextStyle = `text-3xl ${vipnagorgialla.className} font-bold uppercase text-[#EEE5E5] pb-2`;
// const SectionDivider = () => <div className="border-b-[3px] border-[#1F5673] w-full"/>;
return ( return (
<div> <div>
<div className="flex flex-col md:m-16"> <div className="flex flex-col md:m-16">
@ -49,7 +50,7 @@ export default async function RulesMenu({
{/*<Link href="">*/} {/*<Link href="">*/}
<div className={`${boxStyle} bg-[#1F5673] py-16 px-8`}> <div className={`${boxStyle} bg-[#1F5673] py-16 px-8`}>
<h2 className={`${boxTextStyle}`}> <h2 className={`${boxTextStyle}`}>
{t("tournaments.mini.titleSingular")} {t("rules.title")} {t("rules.miniRules")}
</h2> </h2>
</div> </div>
{/*</Link>*/} {/*</Link>*/}

@ -6,7 +6,7 @@
"houserules": "House rules", "houserules": "House rules",
"expo": "Expo", "expo": "Expo",
"tickets": "Tickets", "tickets": "Tickets",
"rules": "Rules", "rules": "Game rules",
"stream": "Stream", "stream": "Stream",
"tournaments": "Tournaments" "tournaments": "Tournaments"
}, },
@ -116,7 +116,6 @@
"buyTicket": "BUY TICKETS" "buyTicket": "BUY TICKETS"
}, },
"mini": { "mini": {
"titleSingular": "Mini-tournament",
"title": "Mini-tournaments", "title": "Mini-tournaments",
"timing": "Timing to be announced", "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.", "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", "title": "Rules",
"houseRules": "House Rules", "houseRules": "House Rules",
"cs2Rules": "CS2 Rules", "cs2Rules": "CS2 Rules",
"lolRules": "LoL Rules" "lolRules": "LoL Rules",
"miniRules": "Mini-tournament Rules"
}, },
"admin": { "admin": {
"title": "Admin", "title": "Admin",

@ -184,7 +184,8 @@
"title": "Reeglid", "title": "Reeglid",
"houseRules": "Kodukord", "houseRules": "Kodukord",
"cs2Rules": "CS2 Reeglid", "cs2Rules": "CS2 Reeglid",
"lolRules": "LoL Reeglid" "lolRules": "LoL Reeglid",
"miniRules": "Miniturniiride Reeglid"
}, },
"admin": { "admin": {
"title": "Haldus", "title": "Haldus",

Loading…
Cancel
Save