Scripts/resources/[custom_script]/rcore_arcade/locale.lua

8 lines
178 B
Lua
Raw Normal View History

2024-12-29 19:48:41 +00:00
-- global variable for locales
Locales = {}
-- this is for translation
function _U(str, ...)
local text = Locales[Config.Locale][str]
return string.format(text, ...)
end