localize a few things

This commit is contained in:
tresabhi committed 2026-11-19 21:12:33 -06:00
1 parent 94fcd17480
commit 60f3fb7727
5 files changed
+26 -5

No files matched your search

+10
View File
@@ -173,6 +173,11 @@
"equalize": "Equalize" "equalize": "Equalize"
}, },
"skin_switcher": {
"play_animations": "Play animations",
"pause_animations": "Pause animations"
},
"custom_shell": { "custom_shell": {
"title": "Custom shell", "title": "Custom shell",
"type": "Type", "type": "Type",
@@ -766,6 +771,11 @@
"body": "This page has moved. Redirecting..." "body": "This page has moved. Redirecting..."
}, },
"not_found": {
"title": "404: page not found",
"body": "Where would you like to go?"
},
"settings": { "settings": {
"title": "Settings", "title": "Settings",
"description": "Change BlitzKit settings", "description": "Change BlitzKit settings",
@@ -6,6 +6,7 @@ import { SKIN_NUMBER } from "../../constants/skinNumber";
import { useAbsoluteDisplay } from "../../hooks/useAbsoluteDisplay"; import { useAbsoluteDisplay } from "../../hooks/useAbsoluteDisplay";
import { useDuelModules } from "../../hooks/useDuelModules"; import { useDuelModules } from "../../hooks/useDuelModules";
import { hasSkinAnimations } from "../../hooks/useSkin"; import { hasSkinAnimations } from "../../hooks/useSkin";
import { useStrings } from "../../hooks/useStrings";
import { useUnwrapper } from "../../hooks/useUnwrapper"; import { useUnwrapper } from "../../hooks/useUnwrapper";
import { Tankopedia } from "../../stores/tankopedia"; import { Tankopedia } from "../../stores/tankopedia";
import { TankopediaDisplay } from "../../stores/tankopediaPersistent/constants"; import { TankopediaDisplay } from "../../stores/tankopediaPersistent/constants";
@@ -17,6 +18,7 @@ const camouflageDefinitions = await api.camouflages();
export function TankopediaSkinSwitcher() { export function TankopediaSkinSwitcher() {
const unwrap = useUnwrapper(); const unwrap = useUnwrapper();
const strings = useStrings();
const protagonist = useDuelModules("protagonist"); const protagonist = useDuelModules("protagonist");
@@ -94,7 +96,11 @@ export function TankopediaSkinSwitcher() {
{hasAnimations && ( {hasAnimations && (
<Tooltip <Tooltip
tooltip={playing ? "Pause animations" : "Play animations"} tooltip={
playing
? strings.tanks.skin_switcher.pause_animations
: strings.tanks.skin_switcher.play_animations
}
side="left" side="left"
> >
<IconButton <IconButton
+1
View File
@@ -66,6 +66,7 @@ export const tools: Record<string, Tool> = {
banner_background_position: "bottom", banner_background_position: "bottom",
}, },
tier_list: { tier_list: {
disabled: true,
id: "tier_list", id: "tier_list",
slug: "tier-list", slug: "tier-list",
banner_background_position: "bottom", banner_background_position: "bottom",
+6 -4
View File
@@ -1,6 +1,7 @@
--- ---
import locales from "@blitzkit/i18n/locales.json"; import locales from "@blitzkit/i18n/locales.json";
import { DiscordLogoIcon, HomeIcon } from "@radix-ui/react-icons"; import { DiscordLogoIcon, HomeIcon } from "@radix-ui/react-icons";
import { api } from "../api/dynamic";
import { Button } from "../components/Button"; import { Button } from "../components/Button";
import { Heading } from "../components/Heading"; import { Heading } from "../components/Heading";
import { Link } from "../components/Link"; import { Link } from "../components/Link";
@@ -11,25 +12,26 @@ import BaseLayout from "../layouts/BaseLayout.astro";
// the 404 page is not locale-scoped, so it always renders in the default locale // the 404 page is not locale-scoped, so it always renders in the default locale
const locale = locales.default; const locale = locales.default;
const strings = await api.strings(locale);
--- ---
<BaseLayout accent="blue" {locale}> <BaseLayout accent="blue" {locale}>
<div class="page"> <div class="page">
<Heading size="3">404: page not found</Heading> <Heading size="3">{strings.website.not_found.title}</Heading>
<Text lowContrast>Where would you like to go?</Text> <Text lowContrast>{strings.website.not_found.body}</Text>
<div class="actions"> <div class="actions">
<LinkI18n {locale} href="/" underline="never"> <LinkI18n {locale} href="/" underline="never">
<Button> <Button>
<HomeIcon /> <HomeIcon />
Home {strings.navbar.home}
</Button> </Button>
</LinkI18n> </LinkI18n>
<Link href={discordLink} underline="never"> <Link href={discordLink} underline="never">
<Button variant="outline"> <Button variant="outline">
<DiscordLogoIcon /> <DiscordLogoIcon />
Discord {strings.website.home.discord.action}
</Button> </Button>
</Link> </Link>
</div> </div>
@@ -61,3 +61,5 @@ export const getStaticPaths = mixStaticPaths(_getStaticPaths, () => {
<HomeTechnical {locale} /> <HomeTechnical {locale} />
</Section> </Section>
</BaseLayout> </BaseLayout>
<!-- TODO: read temp/notes.md for user testing fixes -->