Delete locale.lua

This commit is contained in:
Mycroft
2022-06-12 18:44:50 +01:00
committed by GitHub
parent a0af3d16e2
commit 8e974a7eb4
-21
View File
@@ -1,21 +0,0 @@
Locales = {}
function _(str, ...) -- Translate string
if Locales[Config.Locale] ~= nil then
if Locales[Config.Locale][str] ~= nil then
return string.format(Locales[Config.Locale][str], ...)
else
return 'Translation [' .. Config.Locale .. '][' .. str .. '] does not exist'
end
else
return 'Locale [' .. Config.Locale .. '] does not exist'
end
end
function _U(str, ...) -- Translate string first char uppercase
return tostring(_(str, ...):gsub("^%l", string.upper))
end