-- English
local L = LibStub("AceLocale-3.0-ElvUI"):NewLocale("ElvUI", "enUS", true)

if not L then return end

L["Bag Control"] = true
L["Close bags when the following windows close:"] = true
L["Open bags when the following windows open:"] = true

if GetLocale() == "enUS" then return end

-- German
local L = LibStub("AceLocale-3.0-ElvUI"):NewLocale("ElvUI", "deDE")
if L then
	L["Bag Control"] = true
	L["Close bags when the following windows close:"] = true
	L["Open bags when the following windows open:"] = true
end

-- Spanish
local L = LibStub("AceLocale-3.0-ElvUI"):NewLocale("ElvUI", "esES")
if L then
	L["Bag Control"] = true
	L["Close bags when the following windows close:"] = true
	L["Open bags when the following windows open:"] = true
end

-- French
local L = LibStub("AceLocale-3.0-ElvUI"):NewLocale("ElvUI", "frFR")
if L then
	L["Bag Control"] = true
	L["Close bags when the following windows close:"] = true
	L["Open bags when the following windows open:"] = true
end

-- Korean
local L = LibStub("AceLocale-3.0-ElvUI"):NewLocale("ElvUI", "koKR")
if L then
	L["Bag Control"] = true
	L["Close bags when the following windows close:"] = true
	L["Open bags when the following windows open:"] = true
end

-- Portuguese
local L = LibStub("AceLocale-3.0-ElvUI"):NewLocale("ElvUI", "ptBR")
if L then
	L["Bag Control"] = true
	L["Close bags when the following windows close:"] = true
	L["Open bags when the following windows open:"] = true
end

-- Russian
local L = LibStub("AceLocale-3.0-ElvUI"):NewLocale("ElvUI", "ruRU")
if L then
	L["Bag Control"] = true
	L["Close bags when the following windows close:"] = true
	L["Open bags when the following windows open:"] = true
end

--Chinese (China, simplified)
local L = LibStub("AceLocale-3.0-ElvUI"):NewLocale("ElvUI", "zhCN")
if L then
	L["Bag Control"] = true
	L["Close bags when the following windows close:"] = true
	L["Open bags when the following windows open:"] = true
end

--Chinese (Taiwan, traditional)
local L = LibStub("AceLocale-3.0-ElvUI"):NewLocale("ElvUI", "zhTW")
if L then
	L["Bag Control"] = true
	L["Close bags when the following windows close:"] = true
	L["Open bags when the following windows open:"] = true
end