mirror of
https://github.com/ornfelt/azerothcore_lua_scripts
synced 2026-08-22 06:26:03 -04:00
17 lines
249 B
Lua
17 lines
249 B
Lua
|
|
NetherBot = {
|
|
Locales = {},
|
|
}
|
|
|
|
local _usedLocale
|
|
function NetherBot.InitLocale()
|
|
_usedLocale = NetherBot.Locales[GetLocale()]
|
|
end
|
|
|
|
function NetherBot.I18n(text)
|
|
if _usedLocale then
|
|
return _usedLocale[text] or text
|
|
else
|
|
return text
|
|
end
|
|
end
|