8 lines
178 B
Lua
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 |