Load only the client's locale strings; abbreviate numbers through ClassicAPI's numeric formatter; build the module environment once instead of on every load

This commit is contained in:
Brues
2026-10-31 20:01:05 -05:00
parent 14a26b8301
commit 987c244591
6 changed files with 95 additions and 78 deletions
+3 -1
View File
@@ -236,7 +236,9 @@ pfUI:RegisterModule("turtle-wow", function ()
-- castbar.lua reads pfUI.synthetic_casts[unit] as a fallback when
-- C_Spell.UnitCastingInfo returns nil.
pfUI_locale["enUS"]["customcast"]["TRUESHOT"] = "Steady Shot"
pfUI_locale["zhCN"]["customcast"]["TRUESHOT"] = "稳固射击"
if pfUI_locale["zhCN"] then -- loaded on zhCN clients only
pfUI_locale["zhCN"]["customcast"]["TRUESHOT"] = "稳固射击"
end
pfUI.synthetic_casts = pfUI.synthetic_casts or {}
local steadyShotName = L["customcast"]["TRUESHOT"]