From e31495645ff7694f607f7107c3efa4768a8d1794 Mon Sep 17 00:00:00 2001 From: Aotumuri Date: Mon, 21 Jul 2025 08:43:11 +0900 Subject: [PATCH] Fix language code mismatch during language switching (2) (#1511) ## Description: Fix casing issues in language file imports and mapping keys for pt_BR, sv_SE, and zh_CN These mismatches were causing translation loading issues in environments with case-sensitive file systems. ## 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 - [x] I have read and accepted the CLA aggreement (only required once). ## Please put your Discord username so you can be contacted if a bug or regression is found: aotumuri --- src/client/LangSelector.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/client/LangSelector.ts b/src/client/LangSelector.ts index 19985cc47..783ecdced 100644 --- a/src/client/LangSelector.ts +++ b/src/client/LangSelector.ts @@ -21,14 +21,14 @@ import ja from "../../resources/lang/ja.json"; import ko from "../../resources/lang/ko.json"; import nl from "../../resources/lang/nl.json"; import pl from "../../resources/lang/pl.json"; -import pt_br from "../../resources/lang/pt_BR.json"; +import pt_BR from "../../resources/lang/pt_BR.json"; import ru from "../../resources/lang/ru.json"; import sh from "../../resources/lang/sh.json"; -import sv_se from "../../resources/lang/sv_SE.json"; +import sv_SE from "../../resources/lang/sv_SE.json"; import tp from "../../resources/lang/tp.json"; import tr from "../../resources/lang/tr.json"; import uk from "../../resources/lang/uk.json"; -import zh_cn from "../../resources/lang/zh_CN.json"; +import zh_CN from "../../resources/lang/zh_CN.json"; @customElement("lang-selector") export class LangSelector extends LitElement { @@ -55,7 +55,7 @@ export class LangSelector extends LitElement { ja, nl, pl, - pt_br, + pt_BR, ru, sh, tr, @@ -65,8 +65,8 @@ export class LangSelector extends LitElement { he, da, fi, - sv_se, - zh_cn, + sv_SE, + zh_CN, ko, gl, };