fix: even more locale props

This commit is contained in:
TrèsAbhi committed 2025-10-22 17:55:17 -05:00
1 parent 0809c9ee0c
commit db94edea69
13 files changed
+53 -37

No files matched your search

@@ -20,7 +20,7 @@ const toolStrings =
];
---
<ToolOpenGraph {tool} />
<ToolOpenGraph {locale} {tool} />
<BaseLayout {locale} {noNavbar} {noFooter}>
<Box
@@ -116,7 +116,7 @@ export const getStaticPaths = (() => {
rows.map((row) => (
<Flex gap="4" direction={{ initial: "column", sm: "row" }}>
{row.map((tool) => (
<ToolCard {tool} />
<ToolCard {locale} {tool} />
))}
{row.length < MAX_TOOLS_PER_ROW &&
!("significant" in row[0] && row[0].significant) && (
@@ -10,7 +10,7 @@ export { getStaticPaths } from "../index.astro";
const { locale } = Astro.props;
---
<ToolOpenGraph tool={tools.performance} />
<ToolOpenGraph {locale} tool={tools.performance} />
<BaseLayout {locale} noFooter>
<Page client:only="react" {locale}>
@@ -9,7 +9,7 @@ export { getStaticPaths } from "../index.astro";
const { locale } = Astro.props;
---
<ToolOpenGraph tool={tools.playlist} />
<ToolOpenGraph {locale} tool={tools.playlist} />
<BaseLayout {locale} noFooter>
<Page {locale} client:only="react">
@@ -1,7 +1,9 @@
---
import LegacyRedirect from '../../../../layouts/LegacyRedirect.astro';
import LegacyRedirect from "../../../../layouts/LegacyRedirect.astro";
export { getStaticPaths } from '../../index.astro';
export { getStaticPaths } from "../../index.astro";
const { locale } = Astro.props;
---
<LegacyRedirect path="compare" />
<LegacyRedirect {locale} path="compare" />
@@ -1,8 +1,8 @@
---
import type { GetStaticPaths } from 'astro';
import { embedConfigurations } from '../../../../../constants/embeds';
import LegacyRedirect from '../../../../../layouts/LegacyRedirect.astro';
import { getStaticPaths as parentGetStaticPaths } from '../index.astro';
import type { GetStaticPaths } from "astro";
import { embedConfigurations } from "../../../../../constants/embeds";
import LegacyRedirect from "../../../../../layouts/LegacyRedirect.astro";
import { getStaticPaths as parentGetStaticPaths } from "../index.astro";
export const getStaticPaths = (() => {
const parentPaths = parentGetStaticPaths();
@@ -14,12 +14,13 @@ export const getStaticPaths = (() => {
...parent.params,
embed: embed as keyof typeof embedConfigurations,
},
})),
}))
)
.flat();
}) satisfies GetStaticPaths;
const { embed } = Astro.params;
const { locale } = Astro.props;
---
<LegacyRedirect path={`embed/${embed}`} />
<LegacyRedirect {locale} path={`embed/${embed}`} />
@@ -1,7 +1,9 @@
---
import LegacyRedirect from '../../../../layouts/LegacyRedirect.astro';
import LegacyRedirect from "../../../../layouts/LegacyRedirect.astro";
export { getStaticPaths } from '../../index.astro';
export { getStaticPaths } from "../../index.astro";
const { locale } = Astro.props;
---
<LegacyRedirect path="embed" />
<LegacyRedirect {locales} path="embed" />
@@ -1,7 +1,9 @@
---
import LegacyRedirect from '../../../../layouts/LegacyRedirect.astro';
import LegacyRedirect from "../../../../layouts/LegacyRedirect.astro";
export { getStaticPaths } from '../../index.astro';
export { getStaticPaths } from "../../index.astro";
const { locale } = Astro.props;
---
<LegacyRedirect path="gallery" />
<LegacyRedirect {locale} path="gallery" />
@@ -1,7 +1,9 @@
---
import LegacyRedirect from '../../../../layouts/LegacyRedirect.astro';
import LegacyRedirect from "../../../../layouts/LegacyRedirect.astro";
export { getStaticPaths } from '../../index.astro';
export { getStaticPaths } from "../../index.astro";
const { locale } = Astro.props;
---
<LegacyRedirect path="performance" />
<LegacyRedirect {locale} path="performance" />
@@ -1,7 +1,9 @@
---
import LegacyRedirect from '../../../../layouts/LegacyRedirect.astro';
import LegacyRedirect from "../../../../layouts/LegacyRedirect.astro";
export { getStaticPaths } from '../../index.astro';
export { getStaticPaths } from "../../index.astro";
const { locale } = Astro.props;
---
<LegacyRedirect path="session" />
<LegacyRedirect {locale} path="session" />
@@ -1,8 +1,8 @@
---
import { fetchTankDefinitions } from '@blitzkit/core';
import type { GetStaticPaths } from 'astro';
import LegacyRedirect from '../../../../../layouts/LegacyRedirect.astro';
import { getStaticPaths as parentGetStaticPaths } from '../index.astro';
import { fetchTankDefinitions } from "@blitzkit/core";
import type { GetStaticPaths } from "astro";
import LegacyRedirect from "../../../../../layouts/LegacyRedirect.astro";
import { getStaticPaths as parentGetStaticPaths } from "../index.astro";
export const getStaticPaths = (async () => {
const tankDefinitions = await fetchTankDefinitions();
@@ -12,14 +12,15 @@ export const getStaticPaths = (async () => {
.map((tank) =>
parentPaths.map((parent) => ({
params: { ...parent.params, id: tank.id },
})),
}))
)
.flat();
}) satisfies GetStaticPaths;
const { id } = Astro.params;
const { locale } = Astro.props;
const tankDefinitions = await fetchTankDefinitions();
const tank = tankDefinitions.tanks[id];
---
<LegacyRedirect path={`tanks/${tank.slug}`} />
<LegacyRedirect {locale} path={`tanks/${tank.slug}`} />
@@ -1,7 +1,9 @@
---
import LegacyRedirect from '../../../../layouts/LegacyRedirect.astro';
import LegacyRedirect from "../../../../layouts/LegacyRedirect.astro";
export { getStaticPaths } from '../../index.astro';
export { getStaticPaths } from "../../index.astro";
const { locale } = Astro.props;
---
<LegacyRedirect path="tanks" />
<LegacyRedirect {locale} path="tanks" />
@@ -1,7 +1,9 @@
---
import LegacyRedirect from '../../../../layouts/LegacyRedirect.astro';
import LegacyRedirect from "../../../../layouts/LegacyRedirect.astro";
export { getStaticPaths } from '../../index.astro';
export { getStaticPaths } from "../../index.astro";
const { locale } = Astro.props;
---
<LegacyRedirect path="tier-list" />
<LegacyRedirect {locale} path="tier-list" />