diff --git a/resources/lang/en.json b/resources/lang/en.json index f3f1bda26..aa046e58c 100644 --- a/resources/lang/en.json +++ b/resources/lang/en.json @@ -292,7 +292,10 @@ "assigned_teams": "Assigned Teams", "empty_teams": "Empty Teams", "empty_team": "Empty", - "remove_player": "Remove {username}" + "remove_player": "Remove {username}", + "teams_Duos": "Duos (teams of 2)", + "teams_Trios": "Trios (teams of 3)", + "teams_Quads": "Quads (teams of 4)" }, "team_colors": { "red": "Red", diff --git a/src/client/HostLobbyModal.ts b/src/client/HostLobbyModal.ts index 5d94324e9..dc0a6cb90 100644 --- a/src/client/HostLobbyModal.ts +++ b/src/client/HostLobbyModal.ts @@ -312,7 +312,7 @@ export class HostLobbyModal extends LitElement { ${typeof o === "string" ? o === HumansVsNations ? translateText("public_lobby.teams_hvn") - : translateText(`public_lobby.teams_${o}`) + : translateText(`host_modal.teams_${o}`) : translateText("public_lobby.teams", { num: o, })} diff --git a/src/client/PublicLobby.ts b/src/client/PublicLobby.ts index b1946e13d..2e79119cb 100644 --- a/src/client/PublicLobby.ts +++ b/src/client/PublicLobby.ts @@ -143,6 +143,11 @@ export class PublicLobby extends LitElement { teamTotal, teamSize, ); + + const fullModeLabel = teamDetailLabel + ? `${modeLabel} ${teamDetailLabel}` + : modeLabel; + const mapImageSrc = this.mapImages.get(lobby.gameID); return html` @@ -176,14 +181,8 @@ export class PublicLobby extends LitElement {
${modeLabel}${fullModeLabel} - ${teamDetailLabel - ? html`${teamDetailLabel}` - : ""} ${translateText( `map.${lobby.gameConfig.gameMap.toLowerCase().replace(/[\s.]+/g, "")}`, diff --git a/src/client/SinglePlayerModal.ts b/src/client/SinglePlayerModal.ts index 9c51bf905..6e8e04096 100644 --- a/src/client/SinglePlayerModal.ts +++ b/src/client/SinglePlayerModal.ts @@ -220,7 +220,7 @@ export class SinglePlayerModal extends LitElement { ${typeof o === "string" ? o === HumansVsNations ? translateText("public_lobby.teams_hvn") - : translateText(`public_lobby.teams_${o}`) + : translateText(`host_modal.teams_${o}`) : translateText(`public_lobby.teams`, { num: o })}