From 59107d09b2124967d67ca4d0e6da1827d6fedb33 Mon Sep 17 00:00:00 2001 From: Aotumuri Date: Tue, 6 May 2025 01:14:55 +0900 Subject: [PATCH] fixed team count (#654) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description: fixed .w. スクリーンショット 2025-05-05 11 22 34 ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced - [x] I understand that submitting code with bugs that could have been caught through manual testing blocks releases and new features for all contributors ## Please put your Discord username so you can be contacted if a bug or regression is found: aotumuri --- resources/lang/en.json | 2 +- resources/lang/ja.json | 2 +- src/client/PublicLobby.ts | 9 +-------- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/resources/lang/en.json b/resources/lang/en.json index a1e9eb6c6..fd7e70e09 100644 --- a/resources/lang/en.json +++ b/resources/lang/en.json @@ -143,7 +143,7 @@ "public_lobby": { "join": "Join next Game", "waiting": "players waiting", - "teams": "Team count:" + "teams": "{num} teams" }, "username": { "enter_username": "Enter your username", diff --git a/resources/lang/ja.json b/resources/lang/ja.json index b88aa456f..98e89edbd 100644 --- a/resources/lang/ja.json +++ b/resources/lang/ja.json @@ -138,7 +138,7 @@ "public_lobby": { "join": "次のゲームに参加", "waiting": "人が参加しています...", - "teams": "チームの数:" + "teams": "{num}チーム" }, "username": { "enter_username": "ユーザー名を入力", diff --git a/src/client/PublicLobby.ts b/src/client/PublicLobby.ts index acb463c4a..77ad4c5d7 100644 --- a/src/client/PublicLobby.ts +++ b/src/client/PublicLobby.ts @@ -132,16 +132,9 @@ export class PublicLobby extends LitElement {
${lobby.gameConfig.gameMode == GameMode.Team - ? translateText("game_mode.teams") + ? translateText("public_lobby.teams", { num: teamCount }) : translateText("game_mode.ffa")}
- ${teamCount !== null - ? html` -
- ${translateText("public_lobby.teams")} ${teamCount} -
- ` - : null}