2026-08-18 12:49:14 -05:00
|
|
|
---
|
|
|
|
|
import { literals } from "@blitzkit/i18n";
|
|
|
|
|
import locales from "@blitzkit/i18n/locales.json";
|
2026-09-23 13:48:50 -05:00
|
|
|
import { api } from "../api/dynamic";
|
2026-08-18 12:49:14 -05:00
|
|
|
import { Link } from "./Link";
|
|
|
|
|
|
|
|
|
|
interface Props {
|
|
|
|
|
locale: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const { locale } = Astro.props;
|
|
|
|
|
|
2026-09-23 13:48:50 -05:00
|
|
|
const strings = await api.strings(locale);
|
2026-08-18 12:49:14 -05:00
|
|
|
---
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
.center {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
locale !== locales.default && (
|
|
|
|
|
<div class="center">
|
|
|
|
|
<Link
|
|
|
|
|
href="https://crowdin.com/project/blitzkrieg"
|
|
|
|
|
target="_blank"
|
|
|
|
|
underline="always"
|
|
|
|
|
>
|
|
|
|
|
{literals(strings.website.home.help_translate, {
|
|
|
|
|
name: "BlitzKit",
|
|
|
|
|
language:
|
|
|
|
|
strings.common.locales[
|
|
|
|
|
locale as keyof typeof strings.common.locales
|
|
|
|
|
],
|
|
|
|
|
})}
|
|
|
|
|
</Link>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
}
|