zhTW Type Images are now correctly loaded. (#1436)

This commit is contained in:
Jannik Tappert 2024-05-27 16:23:05 +02:00 committed by GitHub
parent d23d835687
commit 88f725e15a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -1,7 +1,7 @@
{
"textures": [
{
"image": "types_zh_CN.png",
"image": "types_zh_TW.png",
"format": "RGBA8888",
"size": {
"w": 32,

View File

@ -216,6 +216,10 @@ export class LoadingScene extends SceneBase {
break;
}
if (Utils.verifyLang(lang)) {
if (lang === "zh_CN") {
// Load also the traditional Chinese since it doesn't have a separate language code in supportedLngs
this.loadAtlas("types_zh_TW", "");
}
this.loadAtlas(`types_${lang}`, "");
}
});