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

@@ -1,7 +1,7 @@
---
import { localizedHTML as favicons } from "astro-favicons/middleware";
const { locale } = Astro.params;
const { locale } = Astro.props;
---
<Fragment set:html={favicons(locale)} />
+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);
---
@@ -4,7 +4,7 @@ import { resolveBranchName } from "../core/blitzkit/branches";
import { getStrings } from "../core/i18n/getStrings";
import { literals } from "@blitzkit/i18n/src/literals";
const { locale } = Astro.params;
const { locale } = Astro.props;
const branchName = resolveBranchName(locale);
const isBranchNamed = branchName !== undefined;
const strings = getStrings(locale);
+1 -1
View File
@@ -21,7 +21,7 @@ const { integrated = false } = Astro.props;
const toolsFiltered = Object.values(tools).filter(
(tool) => !tool.href && !tool.disabled
);
const { locale } = Astro.params;
const { locale } = Astro.props;
const branchName = resolveBranchName(locale);
const isBranchNamed = branchName !== undefined;
const strings = getStrings(locale);
@@ -14,10 +14,10 @@ import { LinkI18n } from "./LinkI18n";
interface Props {
tool: Tool;
locale: string;
}
const { tool } = Astro.props;
const { locale } = Astro.params;
const { locale, tool } = Astro.props;
const strings = getStrings(locale);
const toolStrings =
strings.website.tools[
@@ -5,10 +5,10 @@ import { getStrings } from "../core/i18n/getStrings";
interface Props {
tool: Tool;
locale: string;
}
const { tool } = Astro.props;
const { locale } = Astro.params;
const { locale, tool } = Astro.props;
const strings = getStrings(locale);
const toolStrings =
strings.website.tools[