Skip to content

Commit

Permalink
zhTW Type Images are now correctly loaded.
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeTappert committed May 27, 2024
1 parent 6d2b8ef commit 469d50c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion public/images/types_zh_TW.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"textures": [
{
"image": "types_zh_CN.png",
"image": "types_zh_TW.png",
"format": "RGBA8888",
"size": {
"w": 32,
Expand Down
4 changes: 4 additions & 0 deletions src/loading-scene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`, "");
}
});
Expand Down

0 comments on commit 469d50c

Please sign in to comment.