fix type sprites displaying wrong for languages with a hyphen (#2454)
@ -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,
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
@ -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,
|
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |
@ -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,
|
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 800 B After Width: | Height: | Size: 800 B |
Before Width: | Height: | Size: 799 B After Width: | Height: | Size: 799 B |
@ -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:
|
||||||
|