feat: localize game assets

This commit is contained in:
tresabhi committed 2025-01-14 19:22:41 -06:00
1 parent d8459d373c
commit ef9778ea96
90 files changed
+336 -251

No files matched your search

@@ -6,7 +6,7 @@ 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';
import { DEFAULT_LOCALE } from '@blitzkit/i18n';
export interface Props {
noFooter?: boolean;
@@ -40,7 +40,7 @@ const isRoot = pathname === '/';
<Party3 />
<script>
import { SUPPORTED_LOCALES } from '@blitzkit/core';
import { SUPPORTED_LOCALES } from '@blitzkit/i18n';
import { getBestLocale } from '../core/i18n/getBestLocale';
const isI18nPath = SUPPORTED_LOCALES.some((locale) =>
@@ -51,8 +51,6 @@ const isRoot = pathname === '/';
window.location.pathname.startsWith(`/${locale}`),
);
console.log(bestLocale);
if (bestLocale !== currentPathLocale) {
window.location.pathname = isI18nPath
? window.location.pathname.replace(