local addonName, ns = ...

ns.L = ns.L or {}
rMinimapLocaleTables = rMinimapLocaleTables or {}

local L = ns.L
local locale = GetLocale()
local active = rMinimapLocaleTables[locale]
if not active and locale == "enGB" then
  active = rMinimapLocaleTables["enUS"]
end
local fallback = rMinimapLocaleTables["enUS"] or {}

setmetatable(L, {
  __index = function(_, key)
    return (active and active[key]) or fallback[key] or key
  end
})
