This commit is contained in:
Nordi98 2025-07-20 22:06:58 +02:00
parent 7533584a53
commit c6be40ffbd
18 changed files with 1492 additions and 3 deletions

View file

@ -0,0 +1,19 @@
Language = Language or {}
---@param str string -- Name of the string to pull from the locale file
function _L(str, ...)
if str then
local string = Language[Cfg.Server.Language][str]
if string then
return string.format(string, ...)
else
return "ERR_TRANSLATE_"..(str).."_404"
end
else
return "ERR_TRANSLATE_404"
end
end
math.lerp = function(a, b, t)
return a + (b - a) * t
end