diff --git a/packages/website/src/pages/[...locale]/tools/tankopedia/_index.tsx b/packages/website/src/pages/[...locale]/tools/tankopedia/_index.tsx index 860d7663a..6dafe221a 100644 --- a/packages/website/src/pages/[...locale]/tools/tankopedia/_index.tsx +++ b/packages/website/src/pages/[...locale]/tools/tankopedia/_index.tsx @@ -1,16 +1,23 @@ import { PageWrapper } from '../../../../components/PageWrapper'; import { TankSearch } from '../../../../components/TankSearch'; +import { LocaleProvider } from '../../../../hooks/useLocale'; import { App } from '../../../../stores/app'; import { TankopediaPersistent } from '../../../../stores/tankopediaPersistent'; -export function Page() { +interface PageProps { + locale: string | undefined; +} + +export function Page({ locale }: PageProps) { return ( - - - - - - - + + + + + + + + + ); } diff --git a/packages/website/src/pages/[...locale]/tools/tankopedia/index.astro b/packages/website/src/pages/[...locale]/tools/tankopedia/index.astro index 0efb66a9a..71a69ab5c 100644 --- a/packages/website/src/pages/[...locale]/tools/tankopedia/index.astro +++ b/packages/website/src/pages/[...locale]/tools/tankopedia/index.astro @@ -4,10 +4,12 @@ import ToolLayout from '../../../../layouts/ToolLayout.astro'; import { Page } from './_index'; export { getStaticPaths } from '../../index.astro'; + +const { locale } = Astro.params; --- - - + +