mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: localize tank search
This commit is contained in:
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 && (
|
||||
|
||||
Reference in new issue
Block a user