fix: some locale props

This commit is contained in:
TrèsAbhi committed 2025-10-22 17:52:01 -05:00
1 parent 0326e8d1d7
commit 0809c9ee0c
30 files changed
+134 -134

No files matched your search

+5 -2
View File
@@ -1,15 +1,18 @@
---
import { assertSecret, fetchGameDefinitions } from "@blitzkit/core";
import locales from "@blitzkit/i18n/locales.json";
import { Box, Code, Flex, Heading, Link, Text } from "@radix-ui/themes";
import packageJson from "../../../../package.json";
import { getStrings } from "../core/i18n/getStrings";
import { LinkI18n } from "./LinkI18n";
import { LocaleSwitcherThemeWrapper } from "./LocaleSwitcher";
export interface Props {
locale: string;
}
const gameDefinitions = await fetchGameDefinitions();
const PUBLIC_ASSET_BRANCH = assertSecret(import.meta.env.PUBLIC_BRANCH);
const locale = Astro.params.locale ?? locales.default;
const { locale } = Astro.props;
const strings = getStrings(locale);
---