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

@@ -3,7 +3,7 @@ import { App } from '../../../../stores/app';
export const AUTH_PROVIDERS = ['wargaming'] as const;
type AuthProvider = (typeof AUTH_PROVIDERS)[number];
export type AuthProvider = (typeof AUTH_PROVIDERS)[number];
export const AUTH_PROVIDER_NAMES: Record<AuthProvider, string> = {
wargaming: 'Wargaming',
@@ -4,7 +4,12 @@ import type { GetStaticPaths } from 'astro';
import { PageWrapper } from '../../../../components/PageWrapper';
import BaseLayout from '../../../../layouts/BaseLayout.astro';
import { getStaticPaths as parentGetStaticPaths } from '../../index.astro';
import { AUTH_PROVIDERS, AUTH_PROVIDER_NAMES, Authorize } from './_index';
import {
AUTH_PROVIDER_NAMES,
AUTH_PROVIDERS,
Authorize,
type AuthProvider,
} from './_index';
export const getStaticPaths = (() => {
const parentPaths = parentGetStaticPaths();
@@ -14,7 +19,7 @@ export const getStaticPaths = (() => {
).flat();
}) satisfies GetStaticPaths;
const { provider } = Astro.params;
const provider = Astro.params.provider as AuthProvider;
---
<BaseLayout>