Hi, I am trying to make a library addon (so it can be embedded in other addons) that has locale data. What's the proper way to have a library addon that spans over multiple files?
I hacked it by doing this in every file of the library addon:
local MAJOR, MINOR = "LibFoo-1.0", 0
assert(LibStub, MAJOR.." requires LibStub")
local LibFoo = LibStub(MAJOR, true)
if LibFoo == nil then LibFoo = LibStub:NewLibrary(MAJOR, MINOR) end
if LibFoo.initialized then return end
But I don't like it. Is there a cleaner way to have a library addon that spans over multiple files? Thanks