Update
Some checks failed
Release Workflow / release (push) Failing after 18s

This commit is contained in:
2025-05-05 00:58:16 +02:00
parent 5d8afe8db7
commit d57b573683
2 changed files with 4 additions and 4 deletions

View File

@@ -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)))