Scripts/resources/[il]/illenium-appearance/locales/locales.lua
2024-12-29 20:49:12 +01:00

18 lines
383 B
Lua

Locales = {}
function _L(key)
local lang = GetConvar("illenium-appearance:locale", "da")
if not Locales[lang] then
lang = "da"
end
local value = Locales[lang]
for k in key:gmatch("[^.]+") do
value = value[k]
if not value then
print("Missing locale for: " .. key)
return ""
end
end
return value
end