LibSharedMedia: Ascension Fonts Upgrade

This commit is contained in:
andrew6180
2024-01-15 09:16:27 -07:00
parent d2053f641d
commit f1bd57e5c8
2 changed files with 34 additions and 13 deletions
+8 -1
View File
@@ -3,7 +3,14 @@ local D = E:GetModule("Distributor")
local _, Engine = ...
Engine[1] = {Blank = function() return '' end }
Engine[2] = E.Libs.ACL:GetLocale("ElvUI", E.global.general.locale or "enUS")
local gameLocale
do -- Locale doesn't exist yet, make it exist.
local convert = {["enGB"] = "enUS", ["esES"] = "esMX", ["itIT"] = "enUS"}
local lang = GetLocale()
gameLocale = convert[lang] or lang or "enUS"
Engine[2] = E.Libs.ACL:GetLocale("ElvUI", gameLocale)
end
local C, L = Engine[1], Engine[2]
local format, strmatch, strsplit = string.format, string.match, string.split