From 30808bfd5bfc9dade83546166938900f75e125f7 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Sat, 9 Mar 2024 14:21:26 +0100 Subject: [PATCH] Fix Elo Page --- src/i18n/common/de.json | 7 ++++++- src/i18n/common/en.json | 5 +---- src/pages/rangliste/[...gamemode].astro | 3 ++- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/i18n/common/de.json b/src/i18n/common/de.json index e7f3377..e1f5493 100644 --- a/src/i18n/common/de.json +++ b/src/i18n/common/de.json @@ -119,7 +119,9 @@ "join": "Jetzt Spielen" }, "elo": { - "place": "Platz" + "place": "Platz", + "name": "Name", + "elo": "Elo" }, "tag": { "title": "Tag: {# tag #} - SteamWar" @@ -209,5 +211,8 @@ }, "stats": { "title": "Kampf Statistiken" + }, + "ranking": { + "heading": "{# mode #} Rangliste" } } diff --git a/src/i18n/common/en.json b/src/i18n/common/en.json index 029efff..c22fab6 100644 --- a/src/i18n/common/en.json +++ b/src/i18n/common/en.json @@ -88,10 +88,7 @@ } }, "elo": { - "place": "Place", - "name": "Name", - "elo": "Elo", - "title": "{# mode #} - Rankings" + "place": "Place" }, "warning": { "title": "This page is not available in your language.", diff --git a/src/pages/rangliste/[...gamemode].astro b/src/pages/rangliste/[...gamemode].astro index 642017c..b925fdd 100644 --- a/src/pages/rangliste/[...gamemode].astro +++ b/src/pages/rangliste/[...gamemode].astro @@ -3,6 +3,7 @@ import {createGetStaticPaths, t} from "astro-i18n"; import {getCollection, CollectionEntry} from "astro:content"; import PageLayout from "../../layouts/PageLayout.astro"; import EloTable from "../../components/EloTable.svelte"; +import "@styles/table.css"; export const getStaticPaths = createGetStaticPaths(async () => { const modes = await getCollection("modes", entry => entry.data.ranked); @@ -24,7 +25,7 @@ interface Props { const {mode} = Astro.props; --- - +

{t("ranking.heading", {mode: t(`${mode.data.translationKey}.title`)})}

\ No newline at end of file