Skip to content

Commit 29076f8

Browse files
authored
fixed team count (openfrontio#654)
## Description: fixed .w. <img width="541" alt="スクリーンショット 2025-05-05 11 22 34" src="https://github.com/user-attachments/assets/4c324d64-a9cd-44a8-a72b-2465849303c9" /> ## 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
1 parent 5d828f7 commit 29076f8

3 files changed

Lines changed: 3 additions & 10 deletions

File tree

resources/lang/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
"public_lobby": {
147147
"join": "Join next Game",
148148
"waiting": "players waiting",
149-
"teams": "Team count:"
149+
"teams": "{num} teams"
150150
},
151151
"username": {
152152
"enter_username": "Enter your username",

resources/lang/ja.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
"public_lobby": {
139139
"join": "次のゲームに参加",
140140
"waiting": "人が参加しています...",
141-
"teams": "チームの数:"
141+
"teams": "{num}チーム"
142142
},
143143
"username": {
144144
"enter_username": "ユーザー名を入力",

src/client/PublicLobby.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -132,16 +132,9 @@ export class PublicLobby extends LitElement {
132132
</div>
133133
<div class="text-md font-medium text-blue-100">
134134
${lobby.gameConfig.gameMode == GameMode.Team
135-
? translateText("game_mode.teams")
135+
? translateText("public_lobby.teams", { num: teamCount })
136136
: translateText("game_mode.ffa")}
137137
</div>
138-
${teamCount !== null
139-
? html`
140-
<div class="text-md font-medium text-blue-100">
141-
${translateText("public_lobby.teams")} ${teamCount}
142-
</div>
143-
`
144-
: null}
145138
</div>
146139
<div class="flex flex-col items-center">
147140
<div class="text-md font-medium text-blue-100 mb-2">

0 commit comments

Comments
 (0)