From 0793153f4e514e0892a787ef0cb5e65ef06caa0d Mon Sep 17 00:00:00 2001
From: Achim Marius <67611764+plazmaezio@users.noreply.github.com>
Date: Wed, 24 Dec 2025 05:34:00 +0200
Subject: [PATCH] Standardize difficulty translation keys to
easy/medium/hard/impossible (#2676)
Resolves #2673
## Description:
- This PR unifies difficulty naming by switching all difficulty
identifiers to a single lowercase set of keys (`easy`, `medium`, `hard`,
`impossible`) and aligning UI + translation keys (`en.json`) to match.
- The old UI labels (`"Relaxed"`, `"Balanced"`, `"Intense"`) have been
removed and replaced with the standardized difficulty terms (`Easy`,
`Medium`, `Hard`).
## 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:
assessin.
---
resources/lang/en.json | 8 ++++----
src/client/HostLobbyModal.ts | 2 +-
src/client/SinglePlayerModal.ts | 2 +-
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/resources/lang/en.json b/resources/lang/en.json
index ad8f421aa..e5fc91da5 100644
--- a/resources/lang/en.json
+++ b/resources/lang/en.json
@@ -338,10 +338,10 @@
},
"difficulty": {
"difficulty": "Difficulty",
- "Easy": "Relaxed",
- "Medium": "Balanced",
- "Hard": "Intense",
- "Impossible": "Impossible"
+ "easy": "Easy",
+ "medium": "Medium",
+ "hard": "Hard",
+ "impossible": "Impossible"
},
"game_mode": {
"ffa": "Free for All",
diff --git a/src/client/HostLobbyModal.ts b/src/client/HostLobbyModal.ts
index 87e24ef37..48ce400c1 100644
--- a/src/client/HostLobbyModal.ts
+++ b/src/client/HostLobbyModal.ts
@@ -248,7 +248,7 @@ export class HostLobbyModal extends LitElement {
.difficultyKey=${key}
>
- ${translateText(`difficulty.${key}`)} + ${translateText(`difficulty.${key.toLowerCase()}`)}
`, diff --git a/src/client/SinglePlayerModal.ts b/src/client/SinglePlayerModal.ts index 26f73040b..8b937ae30 100644 --- a/src/client/SinglePlayerModal.ts +++ b/src/client/SinglePlayerModal.ts @@ -153,7 +153,7 @@ export class SinglePlayerModal extends LitElement { .difficultyKey=${key} >- ${translateText(`difficulty.${key}`)} + ${translateText(`difficulty.${key.toLowerCase()}`)}
`,