From 984030675327043235ab7f1e0d724a09010fc1de Mon Sep 17 00:00:00 2001 From: evanpelle Date: Wed, 19 Nov 2025 12:12:29 -0800 Subject: [PATCH] fix translation for humans vs nations in public lobby --- src/client/PublicLobby.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/client/PublicLobby.ts b/src/client/PublicLobby.ts index 35cd183e6..cb2f68974 100644 --- a/src/client/PublicLobby.ts +++ b/src/client/PublicLobby.ts @@ -1,7 +1,7 @@ import { LitElement, html } from "lit"; import { customElement, state } from "lit/decorators.js"; import { renderDuration, translateText } from "../client/Utils"; -import { GameMapType, GameMode } from "../core/game/Game"; +import { GameMapType, GameMode, HumansVsNations } from "../core/game/Game"; import { GameID, GameInfo } from "../core/Schemas"; import { generateID } from "../core/Util"; import { JoinLobbyEvent } from "./Main"; @@ -161,7 +161,9 @@ export class PublicLobby extends LitElement { > ${lobby.gameConfig.gameMode === GameMode.Team ? typeof teamCount === "string" - ? translateText(`public_lobby.teams_${teamCount}`) + ? teamCount === HumansVsNations + ? translateText("public_lobby.teams_hvn") + : translateText(`public_lobby.teams_${teamCount}`) : translateText("public_lobby.teams", { num: teamCount ?? 0, })