Show Locale in Player Data Gui (#381)

* Update playerdata.lua

* Update data.cfg

* Update data.cfg

* Update data.cfg

* Update playerdata.lua

* Update playerdata.lua
This commit is contained in:
2025-03-08 00:41:23 +09:00
committed by GitHub
parent 5862ad200b
commit b1063ce55e
4 changed files with 12 additions and 0 deletions

View File

@@ -110,3 +110,5 @@ NetPlayTime=Net Play Time
NetPlayTime-tooltip=Net Play Time
AFKTimeRatio=AFK Time Ratio
AFKTimeRatio-tooltip=AFK Time over Play Time
Locale=Locale
Locale-tooltip=The language of player interface

View File

@@ -110,3 +110,5 @@ NetPlayTime=淨遊玩時間
NetPlayTime-tooltip=遊玩時間減掛機時間
AFKTimeRatio=掛機時間比
AFKTimeRatio-tooltip=掛機時間除以遊玩時間
Locale=語言
Locale-tooltip=用戶介面語言

View File

@@ -110,3 +110,5 @@ NetPlayTime=淨遊玩時間
NetPlayTime-tooltip=遊玩時間減掛機時間
AFKTimeRatio=掛機時間比
AFKTimeRatio-tooltip=掛機時間除以遊玩時間
Locale=語言
Locale-tooltip=用戶介面語言

View File

@@ -72,6 +72,12 @@ local computed_stats = {
return format_number_n(PlayerStats["AfkTime"]:get(player_name, 0) * 100 / PlayerStats["Playtime"]:get(player_name, 1))
end,
},
Locale = {
default = "en",
calculate = function(player)
return player.locale
end,
},
}
local label = Gui.element("label")