mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-26 07:44:36 +00:00
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
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user