This commit is contained in:
2025-02-22 23:23:58 +09:00
parent ce73946885
commit 5add829a78
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_name)
return game.players[player_name].locale
end,
},
}
local label = Gui.element("label")