feat: fixed localize tankopedia chars

This commit is contained in:
tresabhi committed 2025-01-14 20:19:37 -06:00
1 parent c4f1d9f3b0
commit 6233c16b88
4 files changed
+30 -19

No files matched your search

@@ -1,7 +1,7 @@
---
import { assertSecret } from '@blitzkit/core';
import { DEFAULT_LOCALE, SUPPORTED_LOCALES } from '@blitzkit/i18n';
import { Box, Flex, Heading } from '@radix-ui/themes';
import { Box, Flex, Heading, Link } from '@radix-ui/themes';
import type { GetStaticPaths } from 'astro';
import { AesonPlug } from '../../components/AesonPlug';
import { HomeLocaleSwitcher } from '../../components/Home/HomeLocaleSwitcher';
@@ -21,6 +21,7 @@ import {
tierListTool,
} from '../../constants/tools';
import { getStrings } from '../../core/i18n/getStrings';
import { literals } from '../../core/i18n/literals';
import BaseLayout from '../../layouts/BaseLayout.astro';
const PUBLIC_ASSET_BRANCH = assertSecret(import.meta.env.PUBLIC_ASSET_BRANCH);
@@ -43,6 +44,23 @@ export const getStaticPaths = (() => {
<HomeLocaleSwitcher {locale} client:load />
{
locale !== DEFAULT_LOCALE && (
<Flex justify="center" mb="4">
<Link
href="https://crowdin.com/project/blitzkrieg"
target="_blank"
underline="always"
>
{literals(strings.website.home.help_translate, [
'BlitzKit',
strings.common.locales[locale],
])}
</Link>
</Flex>
)
}
<Plugs client:idle />
{