fix type sprites displaying wrong for languages with a hyphen (#2454)

This commit is contained in:
Matthew 2024-06-20 09:59:30 -04:00 committed by GitHub
parent 125d55dd11
commit f016e2dbca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,7 @@
{ {
"textures": [ "textures": [
{ {
"image": "types_pt_BR.png", "image": "types_pt-BR.png",
"format": "RGBA8888", "format": "RGBA8888",
"size": { "size": {
"w": 32, "w": 32,

View File

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

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

View File

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

View File

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

View File

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

View File

Before

Width:  |  Height:  |  Size: 800 B

After

Width:  |  Height:  |  Size: 800 B

View File

Before

Width:  |  Height:  |  Size: 799 B

After

Width:  |  Height:  |  Size: 799 B

View File

@ -450,9 +450,9 @@ export function verifyLang(lang?: string): boolean {
case "fr": case "fr":
case "de": case "de":
case "it": case "it":
case "zh_CN": case "zh-CN":
case "zh_TW": case "zh-TW":
case "pt_BR": case "pt-BR":
case "ko": case "ko":
return true; return true;
default: default: