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)))
|
||||||
|
Reference in New Issue
Block a user