Merge pull request #49 from Lapikud/json-content-fix

fix variables in translation files
pull/50/head
Voltages 4 months ago committed by GitHub
commit 385b1dd4c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  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 }>;
}) {
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 = () => <div className="border-b-[3px] border-[#1F5673] w-full"/>;
return (
<div>
<div className="flex flex-col md:m-16">
@ -49,7 +50,7 @@ export default async function RulesMenu({
{/*<Link href="">*/}
<div className={`${boxStyle} bg-[#1F5673] py-16 px-8`}>
<h2 className={`${boxTextStyle}`}>
{t("tournaments.mini.titleSingular")} {t("rules.title")}
{t("rules.miniRules")}
</h2>
</div>
{/*</Link>*/}

@ -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",

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

Loading…
Cancel
Save