Locale instead of self?

This commit is contained in:
Er2 2021-07-27 11:18:27 +03:00
parent 60c7c2c60b
commit 81e2a7cad7

View file

@ -16,7 +16,7 @@ function Locale:get(cat, k, lang)
local v = (self[lang] or {})[cat]
if not v then
return self[Locale.main][cat][k]
return self[self.main][cat][k]
else return v[k] end
end