diff --git a/packages/i18n/strings/en.json b/packages/i18n/strings/en.json index 1ac8805f1..b06dcd0bc 100644 --- a/packages/i18n/strings/en.json +++ b/packages/i18n/strings/en.json @@ -40,6 +40,44 @@ "name": "API", "action": "To docs", "slogan": "BlitzKit hosted API" + }, + "settings": { + "name": "Settings" + }, + "players": { + "name": "Players", + "slogan": "Player statistics", + "action": "Stalk player" + }, + "compare": { + "name": "Compare", + "slogan": "Compare tanks characteristics", + "action": "Compare now" + }, + "performance": { + "name": "Performance", + "slogan": "Tank performance statistics", + "action": "View tanks" + }, + "playlist": { + "name": "Playlist", + "slogan": "Tank playlist generator", + "action": "Generate" + }, + "mixer": { + "name": "Mixer", + "slogan": "Tank module mixer", + "action": "Mix and match" + }, + "session": { + "name": "Session", + "slogan": "Live player statistics", + "action": "Track" + }, + "guesser": { + "name": "Guesser", + "slogan": "Silhouette mini-game", + "action": "Play" } }, diff --git a/packages/website-ue/src/components/Navbar.astro b/packages/website-ue/src/components/Navbar.astro index 734421ef8..4c695c6f6 100644 --- a/packages/website-ue/src/components/Navbar.astro +++ b/packages/website-ue/src/components/Navbar.astro @@ -1,20 +1,24 @@ --- -import { - GearIcon, - HamburgerMenuIcon, - MagnifyingGlassIcon, -} from "@radix-ui/react-icons"; import { BlitzKitIcon } from "../icons/BlitzKit"; import { LinkI18n } from "./LinkI18n"; import { Text } from "./Text"; import { api } from "../core/api/dynamic"; +import { tools } from "../core/tools/tools"; +import type { Tool } from "../core/tools/tools"; interface Props { locale: string; + selectedTool?: Tool; } -const { locale } = Astro.props; +const { locale, selectedTool } = Astro.props; const strings = await api.strings(locale); +const toolsArray = Object.values(tools); + +const toolsSorted = + selectedTool === undefined + ? toolsArray + : [selectedTool, ...toolsArray.filter((tool) => tool !== selectedTool)]; ---