Scripts/resources/[custom_script]/rcore_arcade/locale.lua
2024-12-29 20:48:41 +01:00

8 lines
178 B
Lua

-- global variable for locales
Locales = {}
-- this is for translation
function _U(str, ...)
local text = Locales[Config.Locale][str]
return string.format(text, ...)
end