From 9d10ca71a5c2a11d47083e47d3d250a57222a460 Mon Sep 17 00:00:00 2001 From: Aotumuri Date: Sun, 14 Dec 2025 14:51:31 +0900 Subject: [PATCH] Fix: GulfOfStLawrence map name not being translated (#2616) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description: The map name was not translated because it contained a . character, which caused the translation key to break. To prevent this issue, the map name handling now strips . characters when generating translation keys. With this change, maps that include . in their names will no longer cause translation issues in the future. Before fix: スクリーンショット 2025-12-14 14 26 02 After fix: スクリーンショット 2025-12-14 14 27 19 ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced ## Please put your Discord username so you can be contacted if a bug or regression is found: aotumuri --- src/client/PublicLobby.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/PublicLobby.ts b/src/client/PublicLobby.ts index 5f6cf628a..b3a44c8a8 100644 --- a/src/client/PublicLobby.ts +++ b/src/client/PublicLobby.ts @@ -191,7 +191,7 @@ export class PublicLobby extends LitElement { : ""} ${translateText( - `map.${lobby.gameConfig.gameMap.toLowerCase().replace(/\s+/g, "")}`, + `map.${lobby.gameConfig.gameMap.toLowerCase().replace(/[\s.]+/g, "")}`, )}