-- 提取 ElvUI 核心引擎和本地化表格 (L)
local E, L = unpack(ElvUI)
local locale = GetLocale()

-- ==========================================
-- 默认语言 (enUS / enGB)
-- ==========================================
L["Additional Feature"] = "Additional Feature"
L["Force Solo Threat Color"] = "Force Solo Threat Color"
L["Enable Solo Threat Color"] = "Enable Solo Threat Color"
L["Force use solo threat color even in a group/raid."] = "Force use solo threat color even in a group/raid."
L["Castbar Interrupt Settings"] = "Castbar Interrupt Settings"
L["Nameplate Interrupt Color"] = "Nameplate Interrupt Color"
L["Change the castbar color when a spell is interrupted."] = "Change the castbar color when a spell is interrupted."
L["Force Custom Interrupt Color"] = "Force Custom Interrupt Color"
L["FORCE_INTERRUPT_COLOR_DESC"] = "When enabled: Forces the use of the custom interrupt color below.\nWhen disabled: Prioritizes ElvUI's default interrupt color, and falls back to the custom color if not found."
L["Custom Interrupt Color"] = "Custom Interrupt Color"
L["Color to use when a spell is interrupted."] = "Color to use when a spell is interrupted."
L["Custom Reaction Color Tag"] = "Custom Reaction Color Tag"
L["Custom Tag Name"] = "Custom Tag Name"
L["Change the tag name used in text formats."] = "Change the tag name used in text formats."
L["TAG_USAGE_DESC"] = "|cff20d51bUsage|r: Add |cff00ccff[%s][name]|r in the text format.\nThis tag is synchronized and available in ElvUI's Available Tags."
L["Good"] = "Good"
L["Neutral"] = "Neutral"
L["Bad"] = "Bad"
L["Auras Settings"] = "Auras Settings"
L["Disable Aura Sweep"] = "Disable Aura Sweep"
L["DISABLE_AURA_SWEEP_DESC"] = "Forces the sweep (cooldown animation) on player auras (buffs/debuffs) to be hidden.\n\nOnly the cooldown numbers will remain."
L["Custom reaction color from Additional Feature plugin."] = "Custom reaction color from Additional Feature plugin."
-- 新增：任务目标颜色
L["Quest Objective Settings"] = "Quest Objective Settings"
L["Nameplate Quest Color"] = "Nameplate Quest Color"
L["Change the nameplate health bar color for quest objectives."] = "Change the nameplate health bar color for quest objectives."
L["Quest Objective Color"] = "Quest Objective Color"
L["Color to use for quest objectives."] = "Color to use for quest objectives."

-- ==========================================
-- 客户端语言覆盖
-- ==========================================
if locale == "zhCN" then
    L["Additional Feature"] = "附加功能"
    L["Force Solo Threat Color"] = "强制单人仇恨颜色设置"
    L["Enable Solo Threat Color"] = "启用 Solo 仇恨颜色"
    L["Force use solo threat color even in a group/raid."] = "开启后，即使在小队/团队中，也会强制执行 db.useSoloColor 逻辑"
    L["Castbar Interrupt Settings"] = "施法条打断设置"
    L["Nameplate Interrupt Color"] = "姓名版打断变色"
    L["Change the castbar color when a spell is interrupted."] = "当目标施法被成功打断时，施法条改变颜色"
    L["Force Custom Interrupt Color"] = "强制使用自定义打断颜色"
    L["FORCE_INTERRUPT_COLOR_DESC"] = "开启时：强制使用下方设置的自定义打断颜色。\n关闭时：优先使用自带的打断颜色，如果没有获取到则使用下方颜色兜底。"
    L["Custom Interrupt Color"] = "自定义打断颜色"
    L["Color to use when a spell is interrupted."] = "点击选择打断成功后施法条显示的颜色"
    L["Custom Reaction Color Tag"] = "自定义声望颜色标签 (Custom Tag)"
    L["Custom Tag Name"] = "自定义标签名称"
    L["Change the tag name used in text formats."] = "修改此名称后，请在需要变色的文本格式中同步修改。"
    L["TAG_USAGE_DESC"] = "|cff20d51b使用方法|r：在文本格式中填入 |cff00ccff[%s][name]|r 即可。\n此标签已同步注册至 ElvUI 的“可用的文字格式”中。"
    L["Good"] = "友方 (Good)"
    L["Neutral"] = "中立 (Neutral)"
    L["Bad"] = "敌对 (Bad)"
    L["Auras Settings"] = "光环 (Auras) 设置"
    L["Disable Aura Sweep"] = "关闭光环冷却转圈动画"
    L["DISABLE_AURA_SWEEP_DESC"] = "开启后，强制关闭右上角玩家 Buff 和 Debuff 上的黑边倒计时转圈动画（Swipe）。\n\n开启此项可彻底将黑边隐藏，仅保留清晰的倒计时数字。"
    L["Custom reaction color from Additional Feature plugin."] = "基于 Additional Feature 插件的自定义声望颜色。"

    L["Quest Objective Settings"] = "任务目标设置"
    L["Nameplate Quest Color"] = "任务目标姓名板变色"
    L["Change the nameplate health bar color for quest objectives."] = "开启后，属于当前任务目标的小怪姓名板血条会变成指定颜色。"
    L["Quest Objective Color"] = "任务目标颜色"
    L["Color to use for quest objectives."] = "属于任务目标的小怪的血条颜色。"

elseif locale == "zhTW" then
    L["Additional Feature"] = "附加功能"
    L["Force Solo Threat Color"] = "強制單人仇恨顏色設置"
    L["Enable Solo Threat Color"] = "啟用 Solo 仇恨顏色"
    L["Force use solo threat color even in a group/raid."] = "開啟後，即使在小隊/團隊中，也會強制執行 db.useSoloColor 邏輯"
    L["Castbar Interrupt Settings"] = "施法條打斷設置"
    L["Nameplate Interrupt Color"] = "姓名板打斷變色"
    L["Change the castbar color when a spell is interrupted."] = "當目標施法被成功打斷時，施法條改變顏色"
    L["Force Custom Interrupt Color"] = "強制使用自定義打斷顏色"
    L["FORCE_INTERRUPT_COLOR_DESC"] = "開啟時：強制使用下方設置的自定義打斷顏色。\n關閉時：優先使用自帶的打斷顏色，如果沒有獲取到則使用下方顏色兜底。"
    L["Custom Interrupt Color"] = "自定義打斷顏色"
    L["Color to use when a spell is interrupted."] = "點擊選擇打斷成功後施法條顯示的顏色"
    L["Custom Reaction Color Tag"] = "自定義聲望顏色標籤 (Custom Tag)"
    L["Custom Tag Name"] = "自定義標籤名稱"
    L["Change the tag name used in text formats."] = "修改此名稱後，請在需要變色的文本格式中同步修改。"
    L["TAG_USAGE_DESC"] = "|cff20d51b使用方法|r：在文本格式中填入 |cff00ccff[%s][name]|r 即可。\n此標籤已同步註冊至 ElvUI 的「可用的文字格式」中。"
    L["Good"] = "友方 (Good)"
    L["Neutral"] = "中立 (Neutral)"
    L["Bad"] = "敵對 (Bad)"
    L["Auras Settings"] = "光環 (Auras) 設置"
    L["Disable Aura Sweep"] = "關閉光環冷卻轉圈動畫"
    L["DISABLE_AURA_SWEEP_DESC"] = "開啟後，強制關閉右上角玩家 Buff 和 Debuff 上的黑邊倒計時轉圈動畫（Swipe）。\n\n開啟此項可徹底將黑邊隱藏，僅保留清晰的倒計時數字。"
    L["Custom reaction color from Additional Feature plugin."] = "基於 Additional Feature 插件的自定義聲望顏色。"

    L["Quest Objective Settings"] = "任務目標設置"
    L["Nameplate Quest Color"] = "任務目標姓名板變色"
    L["Change the nameplate health bar color for quest objectives."] = "開啟後，屬於當前任務目標的小怪姓名板血條會變成指定顏色。"
    L["Quest Objective Color"] = "任務目標顏色"
    L["Color to use for quest objectives."] = "屬於任務目標的小怪的血條顏色。"
    
elseif locale == "deDE" then
    L["Additional Feature"] = "Zusätzliche Funktionen"
    L["Force Solo Threat Color"] = "Solo-Bedrohungsfarbe erzwingen"
    L["Enable Solo Threat Color"] = "Solo-Bedrohungsfarbe aktivieren"
    L["Force use solo threat color even in a group/raid."] = "Erzwingt die Verwendung der Solo-Bedrohungsfarbe auch in einer Gruppe/Schlachtzug."
    L["Castbar Interrupt Settings"] = "Zauberleiste Unterbrechungseinstellungen"
    L["Nameplate Interrupt Color"] = "Namensplaketten Unterbrechungsfarbe"
    L["Change the castbar color when a spell is interrupted."] = "Ändert die Farbe der Zauberleiste, wenn ein Zauber unterbrochen wird."
    L["Force Custom Interrupt Color"] = "Benutzerdefinierte Unterbrechungsfarbe erzwingen"
    L["FORCE_INTERRUPT_COLOR_DESC"] = "Wenn aktiviert: Erzwingt die unten eingestellte benutzerdefinierte Unterbrechungsfarbe.\nWenn deaktiviert: Priorisiert die Standard-Unterbrechungsfarbe von ElvUI."
    L["Custom Interrupt Color"] = "Benutzerdefinierte Unterbrechungsfarbe"
    L["Color to use when a spell is interrupted."] = "Farbe, die bei einer Unterbrechung verwendet werden soll."
    L["Custom Reaction Color Tag"] = "Benutzerdefinierter Reaktionsfarben-Tag"
    L["Custom Tag Name"] = "Benutzerdefinierter Tag-Name"
    L["Change the tag name used in text formats."] = "Ändert den Tag-Namen, der in Textformaten verwendet wird."
    L["TAG_USAGE_DESC"] = "|cff20d51bVerwendung|r: Füge |cff00ccff[%s][name]|r im Textformat hinzu."
    L["Good"] = "Freundlich (Good)"
    L["Neutral"] = "Neutral"
    L["Bad"] = "Feindlich (Bad)"
    L["Auras Settings"] = "Auren-Einstellungen"
    L["Disable Aura Sweep"] = "Auren-Animation deaktivieren"
    L["DISABLE_AURA_SWEEP_DESC"] = "Verbirgt die Abklingzeit-Animation (Sweep) auf Spieler-Auren, nur Zahlen bleiben sichtbar."

    L["Quest Objective Settings"] = "Quest-Ziel-Einstellungen"
    L["Nameplate Quest Color"] = "Namensplaketten Quest-Farbe"
    L["Change the nameplate health bar color for quest objectives."] = "Ändert die Farbe der Gesundheitsleiste für Quest-Ziele."
    L["Quest Objective Color"] = "Quest-Ziel-Farbe"
    L["Color to use for quest objectives."] = "Farbe für Quest-Ziele."

elseif locale == "frFR" then
    L["Additional Feature"] = "Fonctionnalités Supplémentaires"
    L["Force Solo Threat Color"] = "Forcer la couleur de menace solo"
    L["Enable Solo Threat Color"] = "Activer la couleur de menace solo"
    L["Force use solo threat color even in a group/raid."] = "Force l'utilisation de la couleur de menace solo même en groupe/raid."
    L["Castbar Interrupt Settings"] = "Paramètres d'interruption d'incantation"
    L["Nameplate Interrupt Color"] = "Couleur d'interruption (Plates d'ident.)"
    L["Change the castbar color when a spell is interrupted."] = "Change la couleur de la barre d'incantation lors d'une interruption."
    L["Force Custom Interrupt Color"] = "Forcer la couleur d'interruption personnalisée"
    L["FORCE_INTERRUPT_COLOR_DESC"] = "Activé : Force l'utilisation de la couleur personnalisée ci-dessous.\nDésactivé : Priorise la couleur par défaut d'ElvUI."
    L["Custom Interrupt Color"] = "Couleur d'interruption personnalisée"
    L["Color to use when a spell is interrupted."] = "Couleur à utiliser lorsqu'un sort est interrompu."
    L["Custom Reaction Color Tag"] = "Tag de couleur de réaction perso"
    L["Custom Tag Name"] = "Nom du Tag personnalisé"
    L["TAG_USAGE_DESC"] = "|cff20d51bUtilisation|r: Ajoutez |cff00ccff[%s][name]|r dans le format de texte."
    L["Good"] = "Amical (Good)"
    L["Neutral"] = "Neutre (Neutral)"
    L["Bad"] = "Hostile (Bad)"
    L["Auras Settings"] = "Paramètres des Auras"
    L["Disable Aura Sweep"] = "Désactiver l'animation des Auras"
    L["DISABLE_AURA_SWEEP_DESC"] = "Masque l'animation de recharge (sweep) sur les auras du joueur."

    L["Quest Objective Settings"] = "Paramètres d'Objectif de Quête"
    L["Nameplate Quest Color"] = "Couleur de Quête (Plates d'ident.)"
    L["Change the nameplate health bar color for quest objectives."] = "Change la couleur de la barre de vie pour les objectifs de quête."
    L["Quest Objective Color"] = "Couleur d'Objectif de Quête"
    L["Color to use for quest objectives."] = "Couleur à utiliser pour les objectifs de quête."

elseif locale == "ruRU" then
    L["Additional Feature"] = "Дополнительные функции"
    L["Force Solo Threat Color"] = "Принудительный цвет соло-угрозы"
    L["Enable Solo Threat Color"] = "Включить цвет соло-угрозы"
    L["Force use solo threat color even in a group/raid."] = "Принудительно использовать цвет соло-угрозы даже в группе/рейде."
    L["Castbar Interrupt Settings"] = "Настройки прерывания"
    L["Nameplate Interrupt Color"] = "Цвет прерывания индикатора"
    L["Change the castbar color when a spell is interrupted."] = "Изменить цвет полосы применения при прерывании заклинания."
    L["Force Custom Interrupt Color"] = "Свой цвет прерывания"
    L["FORCE_INTERRUPT_COLOR_DESC"] = "Включено: использовать настроенный ниже цвет.\nВыключено: приоритет стандартного цвета ElvUI."
    L["Custom Interrupt Color"] = "Пользовательский цвет прерывания"
    L["Color to use when a spell is interrupted."] = "Цвет полосы при успешном прерывании."
    L["Custom Reaction Color Tag"] = "Свой тег цвета реакции"
    L["Custom Tag Name"] = "Имя пользовательского тега"
    L["Change the tag name used in text formats."] = "Измените имя тега, используемого в текстовых форматах."
    L["TAG_USAGE_DESC"] = "|cff20d51bИспользование|r: добавьте |cff00ccff[%s][name]|r в текстовый формат."
    L["Good"] = "Дружелюбие (Good)"
    L["Neutral"] = "Равнодушие (Neutral)"
    L["Bad"] = "Враждебность (Bad)"
    L["Auras Settings"] = "Настройки аур"
    L["Disable Aura Sweep"] = "Отключить анимацию аур"
    L["DISABLE_AURA_SWEEP_DESC"] = "Скрывает анимацию перезарядки (затмение) на аурах игрока, оставляя только цифры."

    L["Quest Objective Settings"] = "Настройки целей заданий"
    L["Nameplate Quest Color"] = "Цвет целей заданий"
    L["Change the nameplate health bar color for quest objectives."] = "Изменить цвет полосы здоровья для целей заданий."
    L["Quest Objective Color"] = "Цвет цели задания"
    L["Color to use for quest objectives."] = "Цвет для целей заданий."

elseif locale == "koKR" then
    L["Additional Feature"] = "추가 기능"
    L["Force Solo Threat Color"] = "솔로 위협 색상 강제"
    L["Enable Solo Threat Color"] = "솔로 위협 색상 활성화"
    L["Force use solo threat color even in a group/raid."] = "파티/공격대에서도 솔로 위협 색상을 강제로 사용합니다."
    L["Castbar Interrupt Settings"] = "시전바 차단 설정"
    L["Nameplate Interrupt Color"] = "이름표 차단 색상"
    L["Change the castbar color when a spell is interrupted."] = "주문이 차단되었을 때 시전바 색상을 변경합니다."
    L["Force Custom Interrupt Color"] = "사용자 지정 차단 색상 강제"
    L["FORCE_INTERRUPT_COLOR_DESC"] = "활성화 시: 아래의 사용자 지정 색상을 강제로 사용합니다.\n비활성화 시: ElvUI 기본 차단 색상을 우선 사용합니다."
    L["Custom Interrupt Color"] = "사용자 지정 차단 색상"
    L["Custom Reaction Color Tag"] = "사용자 지정 반응 색상 태그"
    L["Custom Tag Name"] = "사용자 지정 태그 이름"
    L["TAG_USAGE_DESC"] = "|cff20d51b사용법|r: 텍스트 형식에 |cff00ccff[%s][name]|r을 추가하세요."
    L["Good"] = "우호적 (Good)"
    L["Neutral"] = "중립적 (Neutral)"
    L["Bad"] = "적대적 (Bad)"
    L["Auras Settings"] = "효과(오라) 설정"
    L["Disable Aura Sweep"] = "오라 재사용 대기시간 애니메이션 비활성화"
    L["DISABLE_AURA_SWEEP_DESC"] = "플레이어 오라의 재사용 대기시간 애니메이션(어두운 회전 효과)을 숨깁니다."

    L["Quest Objective Settings"] = "퀘스트 목표 설정"
    L["Nameplate Quest Color"] = "이름표 퀘스트 색상"
    L["Change the nameplate health bar color for quest objectives."] = "퀘스트 목표의 이름표 체력바 색상을 변경합니다."
    L["Quest Objective Color"] = "퀘스트 목표 색상"
    L["Color to use for quest objectives."] = "퀘스트 목표에 사용할 색상입니다."

elseif locale == "esES" or locale == "esMX" then
    L["Additional Feature"] = "Características Adicionales"
    L["Force Solo Threat Color"] = "Forzar color de amenaza en solitario"
    L["Enable Solo Threat Color"] = "Habilitar color de amenaza en solitario"
    L["Force use solo threat color even in a group/raid."] = "Fuerza el uso del color de amenaza en solitario incluso en grupo/banda."
    L["Castbar Interrupt Settings"] = "Ajustes de interrupción de lanzamiento"
    L["Nameplate Interrupt Color"] = "Color de interrupción en placas"
    L["Change the castbar color when a spell is interrupted."] = "Cambia el color de la barra de lanzamiento al ser interrumpido."
    L["Force Custom Interrupt Color"] = "Forzar color de interrupción personalizado"
    L["FORCE_INTERRUPT_COLOR_DESC"] = "Activado: Fuerza el uso del color personalizado.\nDesactivado: Prioriza el color predeterminado de ElvUI."
    L["Custom Interrupt Color"] = "Color de interrupción personalizado"
    L["Custom Reaction Color Tag"] = "Etiqueta de color de reacción pers."
    L["Custom Tag Name"] = "Nombre de etiqueta personalizada"
    L["TAG_USAGE_DESC"] = "|cff20d51bUso|r: Añade |cff00ccff[%s][name]|r en el formato de texto."
    L["Good"] = "Amistoso (Good)"
    L["Neutral"] = "Neutral"
    L["Bad"] = "Hostil (Bad)"
    L["Auras Settings"] = "Ajustes de Auras"
    L["Disable Aura Sweep"] = "Desactivar animación de auras"
    L["DISABLE_AURA_SWEEP_DESC"] = "Oculta la animación de tiempo de reutilización en las auras del jugador."

    L["Quest Objective Settings"] = "Ajustes de Objetivo de Misión"
    L["Nameplate Quest Color"] = "Color de Misión en Placas"
    L["Change the nameplate health bar color for quest objectives."] = "Cambia el color de la barra de salud para los objetivos de misión."
    L["Quest Objective Color"] = "Color de Objetivo de Misión"
    L["Color to use for quest objectives."] = "Color a usar para los objetivos de misión."

elseif locale == "ptBR" then
    L["Additional Feature"] = "Recursos Adicionais"
    L["Force Solo Threat Color"] = "Forçar Cor de Ameaça Solo"
    L["Enable Solo Threat Color"] = "Habilitar Cor de Ameaça Solo"
    L["Force use solo threat color even in a group/raid."] = "Força o uso da cor de ameaça solo mesmo em grupo/raide."
    L["Castbar Interrupt Settings"] = "Configurações de Interrupção"
    L["Nameplate Interrupt Color"] = "Cor de Interrupção nas Placas"
    L["Change the castbar color when a spell is interrupted."] = "Altera a cor da barra de lançamento quando for interrompido."
    L["Force Custom Interrupt Color"] = "Forçar Cor de Interrupção Pers."
    L["FORCE_INTERRUPT_COLOR_DESC"] = "Ativado: Força o uso da cor personalizada abaixo.\nDesativado: Prioriza a cor padrão do ElvUI."
    L["Custom Interrupt Color"] = "Cor de Interrupção Personalizada"
    L["Custom Reaction Color Tag"] = "Tag de Cor de Reação Pers."
    L["Custom Tag Name"] = "Nome da Tag Personalizada"
    L["TAG_USAGE_DESC"] = "|cff20d51bUso|r: Adicione |cff00ccff[%s][name]|r no formato de texto."
    L["Good"] = "Amigável (Good)"
    L["Neutral"] = "Neutro (Neutral)"
    L["Bad"] = "Hostil (Bad)"
    L["Auras Settings"] = "Configurações de Auras"
    L["Disable Aura Sweep"] = "Desativar Animação de Auras"
    L["DISABLE_AURA_SWEEP_DESC"] = "Oculta a animação de recarga nas auras do jogador."

    L["Quest Objective Settings"] = "Configurações de Objetivo de Missão"
    L["Nameplate Quest Color"] = "Cor de Missão nas Placas"
    L["Change the nameplate health bar color for quest objectives."] = "Muda a cor da barra de vida para os objetivos de missão."
    L["Quest Objective Color"] = "Cor de Objetivo de Missão"
    L["Color to use for quest objectives."] = "Cor a ser usada para objetivos de missão."

elseif locale == "itIT" then
    L["Additional Feature"] = "Funzionalità Aggiuntive"
    L["Force Solo Threat Color"] = "Forza Colore Minaccia in Solitaria"
    L["Enable Solo Threat Color"] = "Abilita Colore Minaccia in Solitaria"
    L["Force use solo threat color even in a group/raid."] = "Forza l'uso del colore minaccia in solitaria anche in gruppo/incursione."
    L["Castbar Interrupt Settings"] = "Impostazioni Interruzione Lancio"
    L["Nameplate Interrupt Color"] = "Colore Interruzione Targhette"
    L["Change the castbar color when a spell is interrupted."] = "Cambia il colore della barra di lancio in caso di interruzione."
    L["Force Custom Interrupt Color"] = "Forza Colore Interruzione Pers."
    L["FORCE_INTERRUPT_COLOR_DESC"] = "Attivato: Forza il colore personalizzato.\nDisattivato: Usa il colore predefinito di ElvUI."
    L["Custom Interrupt Color"] = "Colore Interruzione Personalizzato"
    L["Custom Reaction Color Tag"] = "Tag Colore Reazione Pers."
    L["Custom Tag Name"] = "Nome Tag Personalizzato"
    L["TAG_USAGE_DESC"] = "|cff20d51bUso|r: Aggiungi |cff00ccff[%s][name]|r nel formato testo."
    L["Good"] = "Amichevole (Good)"
    L["Neutral"] = "Neutrale (Neutral)"
    L["Bad"] = "Ostile (Bad)"
    L["Auras Settings"] = "Impostazioni Aure"
    L["Disable Aura Sweep"] = "Disabilita Animazione Aure"
    L["DISABLE_AURA_SWEEP_DESC"] = "Nasconde l'animazione di ricarica sulle aure del giocatore."

    L["Quest Objective Settings"] = "Impostazioni Obiettivo Missione"
    L["Nameplate Quest Color"] = "Colore Missione Targhette"
    L["Change the nameplate health bar color for quest objectives."] = "Cambia il colore della barra della salute per gli obiettivi della missione."
    L["Quest Objective Color"] = "Colore Obiettivo Missione"
    L["Color to use for quest objectives."] = "Colore da usare per gli obiettivi della missione."

end
