local Breeds = require("scripts/settings/breed/breeds")

local localization = {
	mod_name = {
		en = "Healthbars",
		["zh-cn"] = "敌人血条",
		["zh-tw"] = "敵人血條",
		ru = "Полоски здоровья",
		fr = "Barres de santé",
	},
	mod_description = {
		en = "Show healthbars from the Psykanium in regular game modes",
		["zh-cn"] = "在常规游戏模式中也显示灵能室的血条",
		["zh-tw"] = "在一般遊戲模式中顯示靈能室的血條",
		ru = "Показывает полоски здоровья из Псайканиума в обычных режимах игры",
		fr = "Affiche les barres de santé du Psykhanium dans les modes de jeu normaux",
	},
	feature_toggles = {
		en = "Toggle features",
		["zh-cn"] = "开关功能",
		["zh-tw"] = "切換功能",
		ru = "Выключение функций",
		fr = "Fonctionnalités",
	},
	show_bar = {
		en = "Show health bar",
		["zh-cn"] = "显示血条",
		["zh-tw"] = "顯示血條",
		ru = "Полоски здоровья",
		fr = "Affiche les barres de santé",
	},
	show_damage_numbers = {
		en = "Show damage numbers",
		["zh-cn"] = "显示伤害数字",
		["zh-tw"] = "顯示傷害數字",
		ru = "Цифры урона",
		fr = "Affiche les points de dégâts",
	},
	show_dps = {
		en = "Show DPS report",
		["zh-cn"] = "显示 DPS 报告",
		["zh-tw"] = "顯示 DPS 報告",
		ru = "Отчёт Урон в секунду",
		fr = "Affiche les DPS",
	},
	show_armour_type = {
		en = "Show armour type hit",
		["zh-cn"] = "显示命中护甲类型",
		["zh-tw"] = "顯示命中護甲類型",
		ru = "Тип поражённой брони",
		fr = "Affiche le type d'armure touché",
	},
	horde_breeds = {
		en = "Horde/Roamer",
		["zh-cn"] = "群怪/游荡",
		["zh-tw"] = "群怪/遊蕩",
		ru = "Орда/бродяга",
		fr = "Horde/Rôdeur",
	},
	elite_breeds = {
		en = "Elite",
		["zh-cn"] = "精英",
		["zh-tw"] = "菁英",
		ru = "Элита",
		fr = "Élite",
	},
	special_breeds = {
		en = "Special",
		["zh-cn"] = "专家",
		["zh-tw"] = "專家",
		ru = "Специалист",
		fr = "Spécial",
	},
	monster_breeds = {
		en = "Monster/Captain",
		["zh-cn"] = "怪物/连长",
		["zh-tw"] = "怪物/連長",
		ru = "Монстр/капитан",
		fr = "Monstre/Capitaine",
	},
	ritualist_breeds = {
		en = "Ritualist",
		["zh-cn"] = "仪式师",
		["zh-tw"] = "儀式師",
		ru = "Ритуалист",
		fr = "Ritualiste",
	},
	bleed = {
		en = "Show bleed stacks",
		["zh-cn"] = "显示流血层数",
		["zh-tw"] = "顯示流血層數",
		ru = "Заряды кровотечения",
		fr = "Affiche les saignements",
	},
	burn = {
		en = "Show burn stacks",
		["zh-cn"] = "显示燃烧层数",
		["zh-tw"] = "顯示燃燒層數",
		ru = "Заряды горения",
		fr = "Affiche les brûlures",
	},
	toxin = {
		en = "Show toxin stacks",
		["zh-cn"] = "显示毒层数",
	},
}

local unlocalized_breeds = {
	chaos_lesser_mutated_poxwalker = {
		en = "Show Lesser mutated poxwalker health",
		["zh-cn"] = "显示变异瘟疫行者的血量",
		ru = "Показывать здоровье малого мутировавшего чумного ходока",
		fr = "Affiche la santé des scrofuleux inférieures muté",
	},
	chaos_mutated_poxwalker = {
		en = "Show Mutated poxwalker health",
		["zh-cn"] = "显示完全变异瘟疫行者的血量",
		ru = "Показывать здоровье мутировавшего чумного ходока",
		fr = "Affiche la santé des scrofuleux muté",
	},
}

for breed_name, breed in pairs(Breeds) do
	if breed.tags and breed.tags.minion then
		local display_name = Localize(breed.display_name)

		if string.find(display_name, "<unlocalized") then
			if unlocalized_breeds[breed_name] then
				localization[breed_name] = unlocalized_breeds[breed_name]
			else
				localization[breed_name] = {
					en = "Show " .. breed_name .. " health",
					["zh-cn"] = "显示" .. breed_name .. "的血量",
					["zh-tw"] = "顯示" .. breed_name .. "的血量",
					ru = "Показать здоровье:\n" .. breed_name,
					fr = "Affiche la santé de " .. breed_name,
				}
			end
		else
			localization[breed_name] = {
				en = "Show " .. display_name .. " health",
				["zh-cn"] = "显示" .. display_name .. "的血量",
				["zh-tw"] = "顯示" .. display_name .. "的血量",
				ru = "Показать здоровье:\n" .. display_name,
				fr = "Affiche la santé de " .. display_name,
			}
		end
	end
end

return localization
