This commit is contained in:
@@ -698,14 +698,14 @@ local function init()
|
|||||||
---@param locale string
|
---@param locale string
|
||||||
---@return string
|
---@return string
|
||||||
shared._L = function(key, locale)
|
shared._L = function(key, locale)
|
||||||
local locale = shared._Locale[locale]
|
local localeTable = shared._Locale[locale]
|
||||||
if not locale then
|
if not localeTable then
|
||||||
if Heimdall_Data.config.debug then
|
if Heimdall_Data.config.debug then
|
||||||
print(string.format("[Heimdall] Locale %s not found", tostring(locale)))
|
print(string.format("[Heimdall] Locale %s not found", tostring(locale)))
|
||||||
end
|
end
|
||||||
return key
|
return key
|
||||||
end
|
end
|
||||||
local value = locale[key]
|
local value = localeTable[key]
|
||||||
if not value then
|
if not value then
|
||||||
if Heimdall_Data.config.debug then
|
if Heimdall_Data.config.debug then
|
||||||
print(string.format("[Heimdall] Key %s not found in locale %s", tostring(key), tostring(locale)))
|
print(string.format("[Heimdall] Key %s not found in locale %s", tostring(key), tostring(locale)))
|
||||||
|
@@ -140,7 +140,7 @@ function shared.NetworkMessenger.Init()
|
|||||||
local target = strtrim(tostring(parts[4]))
|
local target = strtrim(tostring(parts[4]))
|
||||||
if Heimdall_Data.config.networkMessenger.debug then
|
if Heimdall_Data.config.networkMessenger.debug then
|
||||||
print(
|
print(
|
||||||
string.format("[%s] Received message command: %s %s %s", ModuleName, content, targetchannel, target)
|
string.format("[%s] Received message command: %s %s %s", ModuleName, content, targetchannel, target)
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
---@type Message
|
---@type Message
|
||||||
|
Reference in New Issue
Block a user