--- import wg from "../../images/WarGears.png"; import mwg from "../../images/MiniWarGears.png"; import as from "../../images/AirShips.png"; import ws from "../../images/WarShips.png"; import {t} from "astro-i18n"; import {getCollection} from "astro:content"; import PageLayout from "../../layouts/PageLayout.astro"; import {Image} from "astro:assets"; import {l} from "../../util/util"; const imageMap = { "wg": wg, "mwg": mwg, "as": as, "ws": ws, "qg": mwg, }; const modes = await getCollection("modes", entry => entry.data.main); --- {modes.map(value => (
{t(value.data.translationKey

{t(value.data.translationKey + ".title")}

{t(value.data.translationKey + ".description")}
{t("rules")} {t("announcements")} {value.data.ranked ? {t("ranking")} : null}
))}