feat: localize tank search

This commit is contained in:
tresabhi committed 2025-01-13 20:06:43 -06:00
1 parent 06cbe1e733
commit ade6ec8af1
5 files changed
+21 -6

No files matched your search

@@ -6,18 +6,19 @@ import Footer from '../components/Footer.astro';
import Navbar from '../components/Navbar.astro';
import Party3 from '../components/Party3.astro';
import './base.css';
import { DEFAULT_LOCALE } from '@blitzkit/core';
export interface Props {
noFooter?: boolean;
}
const { noFooter } = Astro.props;
const { locale } = Astro.params;
const locale = Astro.params.locale ?? DEFAULT_LOCALE;
const { pathname } = Astro.url;
const isRoot = pathname === '/';
---
<html lang="en">
<html lang={locale}>
<head>
{
isRoot && (