From 8965ad53b0a231fd73b41c0f4313f7af0b387cf7 Mon Sep 17 00:00:00 2001 From: evanpelle Date: Thu, 21 Aug 2025 09:04:21 -0700 Subject: [PATCH] better pattern name (#1885) ## Description: If the translation key isn't found for a pattern, show just the pattern key, not the entire translation key. Since patterns will be added frequently. ## 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: evan --- src/client/TerritoryPatternsModal.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/client/TerritoryPatternsModal.ts b/src/client/TerritoryPatternsModal.ts index 9759912b1..e3dcec8ab 100644 --- a/src/client/TerritoryPatternsModal.ts +++ b/src/client/TerritoryPatternsModal.ts @@ -144,7 +144,7 @@ export class TerritoryPatternsModal extends LitElement { @mouseleave=${() => this.handleMouseLeave()} >
- ${translateText(`territory_patterns.pattern.${pattern.name}`)} + ${translatePatternName("territory_patterns.pattern", pattern.name)}