local addonName, addonTable = ...
local L = {}

local locale = GetLocale()

-- ==========================================
-- DEFAULT ENGLISH (enUS / enGB)
-- ==========================================
L["UI_TITLE"] = "WoW Translator Configuration"
L["UI_ENABLE_TEXT"] = " Enable Real-time Translation"
L["UI_COLOR_LABEL"] = "Translation Color:"
L["UI_COLOR_BTN"] = "Choose Color"
L["UI_LANG_LABEL"] = "Language to translate:"
L["CHAT_WELCOME"] = "Active. Type /wt for config."
L["SLASH_ON"] = "Translations: |cff00ff00ENABLED|r"
L["SLASH_OFF"] = "Translations: |cffff0000DISABLED|r"
L["SLASH_TEST_ORIGINAL"] = "Original: "
L["SLASH_TEST_RESULT"] = "Result: "
L["SLASH_TEST_ERROR"] = "Translations disabled"
L["HELP_HEADER"] = "--- WoW Translator Help ---"
L["HELP_CONFIG_MSG"] = "/wt config - Opens options panel."
L["HELP_ONOFF_MSG"] = "/wt on|off - Enable or disable translations."
L["HELP_TEST_MSG"] = "/wt test - Perform a translation test."
L["CAT_HEADER"] = "Categories to translate:"
L["CAT_MAZZ"] = "Dungeons & Raids"
L["CAT_SOCIAL"] = "Social & Slang"
L["CAT_CLASSES"] = "Classes"
L["CAT_ROLES"] = "Roles"
L["CAT_STATS"] = "Statistics"
L["CAT_PROF"] = "Professions"
L["CAT_COMBAT"] = "Combat"
L["CAT_TRADE"] = "Trade"
L["CAT_STATUS"] = "Status"
L["CAT_GROUPS"] = "Groups"
L["CAT_GUILD"] = "Guild"
L["CAT_ZONES"] = "Zones (World)"
L["CAT_SETS"] = "Item Sets"

-- ==========================================
-- ESPAÑOL (esES / esMX)
-- ==========================================
if locale == "esES" or locale == "esMX" then
    L["UI_TITLE"] = "Configuración de WoW Translator"
    L["UI_ENABLE_TEXT"] = " Activar Traducción en tiempo real"
    L["UI_COLOR_LABEL"] = "Color de la traducción:"
    L["UI_COLOR_BTN"] = "Elegir Color"
    L["UI_LANG_LABEL"] = "Idioma a traducir:"
    L["CHAT_WELCOME"] = "Activo. Escribe /wt para configurar."
    L["SLASH_ON"] = "Traducciones: |cff00ff00ACTIVADAS|r"
    L["SLASH_OFF"] = "Traducciones: |cffff0000DESACTIVADAS|r"
    L["SLASH_TEST_ORIGINAL"] = "Original: "
    L["SLASH_TEST_RESULT"] = "Resultado: "
    L["SLASH_TEST_ERROR"] = "Traducciones desactivadas"
    L["HELP_HEADER"] = "--- WoW Translator Ayuda ---"
    L["HELP_CONFIG_MSG"] = "/wt config - Abre el panel de opciones."
    L["HELP_ONOFF_MSG"] = "/wt on|off - Activa o desactiva las traducciones."
    L["HELP_TEST_MSG"] = "/wt test - Realiza una prueba de traducción."
    L["CAT_HEADER"] = "Categorías a traducir:"
    L["CAT_MAZZ"] = "Mazmorras y Bandas"
    L["CAT_SOCIAL"] = "Social y Jerga"
    L["CAT_CLASSES"] = "Clases"
    L["CAT_ROLES"] = "Roles"
    L["CAT_STATS"] = "Estadísticas"
    L["CAT_PROF"] = "Profesiones"
    L["CAT_COMBAT"] = "Combate"
    L["CAT_TRADE"] = "Comercio"
    L["CAT_STATUS"] = "Estado"
    L["CAT_GROUPS"] = "Grupos"
    L["CAT_GUILD"] = "Hermandad"
    L["CAT_ZONES"] = "Zonas (Mundo)"
    L["CAT_SETS"] = "Sets de Objetos"

-- ==========================================
-- DEUTSCH (deDE)
-- ==========================================
elseif locale == "deDE" then
    L["UI_TITLE"] = "WoW Translator Konfiguration"
    L["UI_ENABLE_TEXT"] = " Echtzeit-Übersetzung aktivieren"
    L["UI_COLOR_LABEL"] = "Farbe der Übersetzung:"
    L["UI_COLOR_BTN"] = "Farbe wählen"
    L["UI_LANG_LABEL"] = "Zu übersetzende Sprache:"
    L["CHAT_WELCOME"] = "Aktiviert. Tippe /wt für Optionen."
    L["SLASH_ON"] = "Übersetzungen: |cff00ff00AKTIVIERT|r"
    L["SLASH_OFF"] = "Übersetzungen: |cffff0000DEAKTIVIERT|r"
    L["SLASH_TEST_ORIGINAL"] = "Original: "
    L["SLASH_TEST_RESULT"] = "Ergebnis: "
    L["SLASH_TEST_ERROR"] = "Übersetzungen deaktiviert"
    L["HELP_HEADER"] = "--- WoW Translator Hilfe ---"
    L["HELP_CONFIG_MSG"] = "/wt config - Öffnet das Optionsmenü."
    L["HELP_ONOFF_MSG"] = "/wt on|off - Übersetzungen ein-/ausschalten."
    L["HELP_TEST_MSG"] = "/wt test - Führt einen Übersetzungstest durch."
    L["CAT_HEADER"] = "Zu übersetzende Kategorien:"
    L["CAT_MAZZ"] = "Dungeons & Schlachtzüge"
    L["CAT_SOCIAL"] = "Soziales & Slang"
    L["CAT_CLASSES"] = "Klassen"
    L["CAT_ROLES"] = "Rollen"
    L["CAT_STATS"] = "Statistiken"
    L["CAT_PROF"] = "Berufe"
    L["CAT_COMBAT"] = "Kampf"
    L["CAT_TRADE"] = "Handel"
    L["CAT_STATUS"] = "Status"
    L["CAT_GROUPS"] = "Gruppen"
    L["CAT_GUILD"] = "Gilde"
    L["CAT_ZONES"] = "Zonen"
    L["CAT_SETS"] = "Gegenstandsets"

-- ==========================================
-- FRANÇAIS (frFR)
-- ==========================================
elseif locale == "frFR" then
    L["UI_TITLE"] = "Configuration de WoW Translator"
    L["UI_ENABLE_TEXT"] = " Activer la traduction en temps réel"
    L["UI_COLOR_LABEL"] = "Couleur de traduction:"
    L["UI_COLOR_BTN"] = "Choisir une couleur"
    L["UI_LANG_LABEL"] = "Langue à traduire:"
    L["CHAT_WELCOME"] = "Actif. Tapez /wt pour configurer."
    L["SLASH_ON"] = "Traductions: |cff00ff00ACTIVÉES|r"
    L["SLASH_OFF"] = "Traductions: |cffff0000DÉSACTIVÉES|r"
    L["SLASH_TEST_ORIGINAL"] = "Original: "
    L["SLASH_TEST_RESULT"] = "Résultat: "
    L["SLASH_TEST_ERROR"] = "Traductions désactivées"
    L["HELP_HEADER"] = "--- Aide WoW Translator ---"
    L["HELP_CONFIG_MSG"] = "/wt config - Ouvre le panneau d'options."
    L["HELP_ONOFF_MSG"] = "/wt on|off - Active ou désactive les traductions."
    L["HELP_TEST_MSG"] = "/wt test - Effectue un test de traduction."
    L["CAT_HEADER"] = "Catégories à traduire:"
    L["CAT_MAZZ"] = "Donjons et Raids"
    L["CAT_SOCIAL"] = "Social et Argot"
    L["CAT_CLASSES"] = "Classes"
    L["CAT_ROLES"] = "Rôles"
    L["CAT_STATS"] = "Statistiques"
    L["CAT_PROF"] = "Métiers"
    L["CAT_COMBAT"] = "Combat"
    L["CAT_TRADE"] = "Commerce"
    L["CAT_STATUS"] = "Statut"
    L["CAT_GROUPS"] = "Groupes"
    L["CAT_GUILD"] = "Guilde"
    L["CAT_ZONES"] = "Zones (Monde)"
    L["CAT_SETS"] = "Ensembles d'objets"

-- ==========================================
-- ITALIANO (itIT)
-- ==========================================
elseif locale == "itIT" then
    L["UI_TITLE"] = "Configurazione WoW Translator"
    L["UI_ENABLE_TEXT"] = " Abilita traduzione in tempo reale"
    L["UI_COLOR_LABEL"] = "Colore della traduzione:"
    L["UI_COLOR_BTN"] = "Scegli colore"
    L["UI_LANG_LABEL"] = "Lingua da tradurre:"
    L["CHAT_WELCOME"] = "Attivo. Digita /wt per configurare."
    L["SLASH_ON"] = "Traduzioni: |cff00ff00ATTIVATE|r"
    L["SLASH_OFF"] = "Traduzioni: |cffff0000DISATTIVATE|r"
    L["SLASH_TEST_ORIGINAL"] = "Originale: "
    L["SLASH_TEST_RESULT"] = "Risultato: "
    L["SLASH_TEST_ERROR"] = "Traduzioni disattivate"
    L["HELP_HEADER"] = "--- Aiuto WoW Translator ---"
    L["HELP_CONFIG_MSG"] = "/wt config - Apre il pannello delle opzioni."
    L["HELP_ONOFF_MSG"] = "/wt on|off - Attiva o disattiva le traduzioni."
    L["HELP_TEST_MSG"] = "/wt test - Esegue un test di traduzione."
    L["CAT_HEADER"] = "Categorie da tradurre:"
    L["CAT_MAZZ"] = "Spedizioni e Incursioni"
    L["CAT_SOCIAL"] = "Social e Gergo"
    L["CAT_CLASSES"] = "Classi"
    L["CAT_ROLES"] = "Ruoli"
    L["CAT_STATS"] = "Statistiche"
    L["CAT_PROF"] = "Professioni"
    L["CAT_COMBAT"] = "Combattimento"
    L["CAT_TRADE"] = "Commercio"
    L["CAT_STATUS"] = "Stato"
    L["CAT_GROUPS"] = "Gruppi"
    L["CAT_GUILD"] = "Gilda"
    L["CAT_ZONES"] = "Zone (Mondo)"
    L["CAT_SETS"] = "Set di Equipaggiamento"

-- ==========================================
-- PORTUGUÊS (ptBR)
-- ==========================================
elseif locale == "ptBR" then
    L["UI_TITLE"] = "Configuração do WoW Translator"
    L["UI_ENABLE_TEXT"] = " Ativar tradução em tempo real"
    L["UI_COLOR_LABEL"] = "Cor da tradução:"
    L["UI_COLOR_BTN"] = "Escolher cor"
    L["UI_LANG_LABEL"] = "Idioma a traduzir:"
    L["CHAT_WELCOME"] = "Ativo. Digite /wt para configurar."
    L["SLASH_ON"] = "Traduções: |cff00ff00ATIVADAS|r"
    L["SLASH_OFF"] = "Traduções: |cffff0000DESATIVADAS|r"
    L["SLASH_TEST_ORIGINAL"] = "Original: "
    L["SLASH_TEST_RESULT"] = "Resultado: "
    L["SLASH_TEST_ERROR"] = "Traduções desativadas"
    L["HELP_HEADER"] = "--- Ajuda do WoW Translator ---"
    L["HELP_CONFIG_MSG"] = "/wt config - Abre o painel de opções."
    L["HELP_ONOFF_MSG"] = "/wt on|off - Ativa ou desativa as traduções."
    L["HELP_TEST_MSG"] = "/wt test - Realiza um teste de tradução."
    L["CAT_HEADER"] = "Categorias para traduzir:"
    L["CAT_MAZZ"] = "Masmorras e Raides"
    L["CAT_SOCIAL"] = "Social e Gírias"
    L["CAT_CLASSES"] = "Classes"
    L["CAT_ROLES"] = "Funções"
    L["CAT_STATS"] = "Estatísticas"
    L["CAT_PROF"] = "Profissões"
    L["CAT_COMBAT"] = "Combate"
    L["CAT_TRADE"] = "Comércio"
    L["CAT_STATUS"] = "Estado"
    L["CAT_GROUPS"] = "Grupos"
    L["CAT_GUILD"] = "Guilda"
    L["CAT_ZONES"] = "Zonas (Mundo)"
    L["CAT_SETS"] = "Conjuntos de Itens"

-- ==========================================
-- RUSSIAN (ruRU)
-- ==========================================
elseif locale == "ruRU" then
    L["UI_TITLE"] = "Настройка WoW Translator"
    L["UI_ENABLE_TEXT"] = " Включить перевод в реальном времени"
    L["UI_COLOR_LABEL"] = "Цвет перевода:"
    L["UI_COLOR_BTN"] = "Выбрать цвет"
    L["UI_LANG_LABEL"] = "Язык для перевода:"
    L["CHAT_WELCOME"] = "Активен. Введите /wt для настройки."
    L["SLASH_ON"] = "Перевод: |cff00ff00ВКЛЮЧЕН|r"
    L["SLASH_OFF"] = "Перевод: |cffff0000ВЫКЛЮЧЕН|r"
    L["SLASH_TEST_ORIGINAL"] = "Оригинал: "
    L["SLASH_TEST_RESULT"] = "Результат: "
    L["SLASH_TEST_ERROR"] = "Перевод выключен"
    L["HELP_HEADER"] = "--- Помощь WoW Translator ---"
    L["HELP_CONFIG_MSG"] = "/wt config - Открыть панель настроек."
    L["HELP_ONOFF_MSG"] = "/wt on|off - Включить или выключить перевод."
    L["HELP_TEST_MSG"] = "/wt test - Выполнить проверку перевода."
    L["CAT_HEADER"] = "Категории для перевода:"
    L["CAT_MAZZ"] = "Подземелья и Рейды"
    L["CAT_SOCIAL"] = "Общение и Сленг"
    L["CAT_CLASSES"] = "Классы"
    L["CAT_ROLES"] = "Роли"
    L["CAT_STATS"] = "Характеристики"
    L["CAT_PROF"] = "Профессии"
    L["CAT_COMBAT"] = "Бой"
    L["CAT_TRADE"] = "Торговля"
    L["CAT_STATUS"] = "Статус"
    L["CAT_GROUPS"] = "Группы"
    L["CAT_GUILD"] = "Гильдия"
    L["CAT_ZONES"] = "Зоны (Мир)"
    L["CAT_SETS"] = "Комплекты вещей"

-- ==========================================
-- KOREAN (koKR)
-- ==========================================
elseif locale == "koKR" then
    L["UI_TITLE"] = "WoW Translator 설정"
    L["UI_ENABLE_TEXT"] = " 실시간 번역 활성화"
    L["UI_COLOR_LABEL"] = "번역 색상:"
    L["UI_COLOR_BTN"] = "색상 선택"
    L["UI_LANG_LABEL"] = "번역할 언어:"
    L["CHAT_WELCOME"] = "활성화됨. 설정을 위해 /wt를 입력하세요."
    L["SLASH_ON"] = "번역: |cff00ff00활성화|r"
    L["SLASH_OFF"] = "번역: |cffff0000비활성화|r"
    L["SLASH_TEST_ORIGINAL"] = "원본: "
    L["SLASH_TEST_RESULT"] = "결과: "
    L["SLASH_TEST_ERROR"] = "번역 비활성화됨"
    L["HELP_HEADER"] = "--- WoW Translator 도움말 ---"
    L["HELP_CONFIG_MSG"] = "/wt config - 옵션 패널을 엽니다."
    L["HELP_ONOFF_MSG"] = "/wt on|off - 번역을 켜거나 끕니다."
    L["HELP_TEST_MSG"] = "/wt test - 번역 테스트를 수행합니다."
    L["CAT_HEADER"] = "번역 카테고리:"
    L["CAT_MAZZ"] = "던전 및 레이드"
    L["CAT_SOCIAL"] = "소셜 및 약어"
    L["CAT_CLASSES"] = "직업"
    L["CAT_ROLES"] = "역할"
    L["CAT_STATS"] = "능력치"
    L["CAT_PROF"] = "전문 기술"
    L["CAT_COMBAT"] = "전투"
    L["CAT_TRADE"] = "거래"
    L["CAT_STATUS"] = "상태"
    L["CAT_GROUPS"] = "파티"
    L["CAT_GUILD"] = "길드"
    L["CAT_ZONES"] = "지역 (월드)"
    L["CAT_SETS"] = "아이템 세트"

-- ==========================================
-- CHINESE (zhCN)
-- ==========================================
elseif locale == "zhCN" then
    L["UI_TITLE"] = "WoW Translator 设置"
    L["UI_ENABLE_TEXT"] = " 开启实时翻译"
    L["UI_COLOR_LABEL"] = "翻译颜色:"
    L["UI_COLOR_BTN"] = "选择颜色"
    L["UI_LANG_LABEL"] = "要翻译的语言:"
    L["CHAT_WELCOME"] = "已激活。输入 /wt 进行设置。"
    L["SLASH_ON"] = "翻译: |cff00ff00已开启|r"
    L["SLASH_OFF"] = "翻译: |cffff0000已关闭|r"
    L["SLASH_TEST_ORIGINAL"] = "原文: "
    L["SLASH_TEST_RESULT"] = "结果: "
    L["SLASH_TEST_ERROR"] = "翻译已关闭"
    L["HELP_HEADER"] = "--- WoW Translator 帮助 ---"
    L["HELP_CONFIG_MSG"] = "/wt config - 打开设置面板。"
    L["HELP_ONOFF_MSG"] = "/wt on|off - 开启或关闭翻译。"
    L["HELP_TEST_MSG"] = "/wt test - 执行翻译测试。"
    L["CAT_HEADER"] = "翻译类别:"
    L["CAT_MAZZ"] = "地下城与团队副本"
    L["CAT_SOCIAL"] = "社交与术语"
    L["CAT_CLASSES"] = "职业"
    L["CAT_ROLES"] = "职责"
    L["CAT_STATS"] = "属性"
    L["CAT_PROF"] = "专业"
    L["CAT_COMBAT"] = "战斗"
    L["CAT_TRADE"] = "交易"
    L["CAT_STATUS"] = "状态"
    L["CAT_GROUPS"] = "队伍"
    L["CAT_GUILD"] = "公会"
    L["CAT_ZONES"] = "区域 (世界)"
    L["CAT_SETS"] = "套装"

-- ==========================================
-- CHINESE TRADITIONAL (zhTW)
-- ==========================================
elseif locale == "zhTW" then
    L["UI_TITLE"] = "WoW Translator 設置"
    L["UI_ENABLE_TEXT"] = " 開啟即時翻譯"
    L["UI_COLOR_LABEL"] = "翻譯顏色:"
    L["UI_COLOR_BTN"] = "選擇顏色"
    L["UI_LANG_LABEL"] = "要翻譯的語言:"
    L["CHAT_WELCOME"] = "已激活。輸入 /wt 進行設置。"
    L["SLASH_ON"] = "翻譯: |cff00ff00已開啟|r"
    L["SLASH_OFF"] = "翻譯: |cffff0000已關閉|r"
    L["SLASH_TEST_ORIGINAL"] = "原文: "
    L["SLASH_TEST_RESULT"] = "結果: "
    L["SLASH_TEST_ERROR"] = "翻譯已關閉"
    L["HELP_HEADER"] = "--- WoW Translator 幫助 ---"
    L["HELP_CONFIG_MSG"] = "/wt config - 打開設置面板。"
    L["HELP_ONOFF_MSG"] = "/wt on|off - 開啟或關閉翻譯。"
    L["HELP_TEST_MSG"] = "/wt test - 執行翻譯測試。"
    L["CAT_HEADER"] = "翻譯類別:"
    L["CAT_MAZZ"] = "地下城與團隊副本"
    L["CAT_SOCIAL"] = "社交與術語"
    L["CAT_CLASSES"] = "職業"
    L["CAT_ROLES"] = "職責"
    L["CAT_STATS"] = "屬性"
    L["CAT_PROF"] = "專業"
    L["CAT_COMBAT"] = "戰鬥"
    L["CAT_TRADE"] = "交易"
    L["CAT_STATUS"] = "狀態"
    L["CAT_GROUPS"] = "隊伍"
    L["CAT_GUILD"] = "公會"
    L["CAT_ZONES"] = "區域 (世界)"
    L["CAT_SETS"] = "套裝"
end

addonTable.L = L