From 88f725e15a0ec5b4258e8a51d8094cd85dbd195e Mon Sep 17 00:00:00 2001 From: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Date: Mon, 27 May 2024 16:23:05 +0200 Subject: [PATCH] zhTW Type Images are now correctly loaded. (#1436) --- public/images/types_zh_TW.json | 2 +- src/loading-scene.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/public/images/types_zh_TW.json b/public/images/types_zh_TW.json index 4cd0135a677..e3923b00f02 100644 --- a/public/images/types_zh_TW.json +++ b/public/images/types_zh_TW.json @@ -1,7 +1,7 @@ { "textures": [ { - "image": "types_zh_CN.png", + "image": "types_zh_TW.png", "format": "RGBA8888", "size": { "w": 32, diff --git a/src/loading-scene.ts b/src/loading-scene.ts index ae14283c4c6..a8c63778246 100644 --- a/src/loading-scene.ts +++ b/src/loading-scene.ts @@ -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}`, ""); } });