-- ══════════════════════════════════════════════════════════════
-- MODUL: Locale - Sprachdateien / Language Files
-- Supports: German (deDE), English (enUS), Russian (ruRU)
-- ══════════════════════════════════════════════════════════════

local addonName, addon = ...
local GDL = _G["GuildDeathLog"]
local Locale = {}

local L = {}
Locale.L = L

function Locale:Initialize()
    local clientLocale = GetLocale()
    
    if clientLocale == "deDE" then
        -- ═══ GERMAN / DEUTSCH ═══
        
        -- Classes
        L.CLASSES = {[1]="Krieger",[2]="Paladin",[3]="Jaeger",[4]="Schurke",[5]="Priester",[7]="Schamane",[8]="Magier",[9]="Hexenmeister",[11]="Druide"}
        
        -- Core
        L.ADDON_TITLE = "Das Buch der Gefallenen"
        L.ADDON_SHORT = "Buch"
        L.NO_GUILD = "Keine Gilde"
        L.NO_GUILD_INFO = "Du bist in keiner Gilde.\nTritt einer Gilde bei."
        L.UNKNOWN = "Unbekannt"
        L.LEVEL = "Level"
        L.OK = "OK"
        L.CANCEL = "Abbrechen"
        L.CLOSE = "Schliessen"
        L.SAVE = "Speichern"
        L.DELETE = "Loeschen"
        L.EDIT = "Bearbeiten"
        L.BACK = "Zurueck"
        L.VERSION = "Version"
        
        -- Statistics
        L.GUILD_DEATHS = "Gefallene Gildenmitglieder"
        L.TOTAL_DEATHS = "%d Gefallene"
        L.AVG_LEVEL = "Avg Level: %.1f"
        L.TODAY = "Heute: %d"
        L.THIS_WEEK = "Woche: %d"
        L.FALLEN = "Gefallene"
        L.FALLEN_TODAY = "Heute"
        L.FALLEN_WEEK = "Diese Woche"
        L.NO_LOSSES = "Keine Verluste!\nDie Gilde steht stark."
        
        -- Buttons (UI)
        L.BTN_REFRESH = "Aktualisieren"
        L.BTN_SETTINGS = "Einstellungen"
        L.BTN_SYNC = "Sync"
        L.BTN_EXPORT = "Export"
        L.BTN_DEBUG = "Debug"
        L.BTN_HALL_OF_FAME = "Ruhmeshalle"
        L.BTN_STATISTICS = "Statistiken"
        L.BTN_MILESTONES = "Meilensteine"
        L.BTN_PROFESSIONS = "Berufe"
        L.BTN_GUILD_MAP = "Gilden-Karte"
        L.BTN_TITLES = "Titel"
        L.BTN_MEMORIAL = "Gedenkhalle"
        L.BTN_GUILD_STATS = "Gilden-Stats"
        L.BTN_RULES = "Regeln"
        L.BTN_CALENDAR = "Kalender"
        L.BTN_LEADER = "Leitung"
        L.BTN_TRACKER = "Tracker"
        L.BTN_KILLS = "Kills"
        L.BTN_BOOK = "Buch"
        
        -- Guild Rules
        L.RULES_TITLE = "Gildenregeln"
        L.RULES_CAN_EDIT = "Du kannst die Regeln bearbeiten"
        L.RULES_CANNOT_EDIT = "Nur Offiziere koennen Regeln bearbeiten"
        L.RULES_UPDATED = "Gildenregeln wurden aktualisiert! Bitte nachlesen."
        L.RULES_SAVED = "Gildenregeln gespeichert und verteilt!"
        L.RULES_REQUESTING = "Regeln werden von Gildenmitgliedern angefragt..."
        L.RULES_ONLY_OFFICERS = "Nur Offiziere koennen die Regeln bearbeiten!"
        L.RULES_CHAT_UPDATED = "[Gildenregeln] Aktualisiert, bitte nachlesen! (/gdl rules)"
        
        -- Settings
        L.SETTING_ANNOUNCE = "Gildenchat-Ankuendigung"
        L.SETTING_SOUND = "Sound abspielen"
        L.SETTING_OVERLAY = "Popup anzeigen"
        L.SETTING_MAP_MARKERS = "Karten-Marker"
        L.SETTING_DEBUG = "Debug-Ausgabe"
        L.SETTING_BLIZZARD_CHANNEL = "Blizzard HC-Channel"
        L.SETTING_ADDON_CHANNEL = "Addon-Sync"
        L.SETTING_GUILD_TRACKER = "Gilden-Tracker"
        
        -- Sync & Status
        L.LIVE = "LIVE"
        L.SYNCED = "SYNC"
        L.SYNC_REQUESTED = "Sync angefordert..."
        L.SYNC_RECEIVED = "Sync: %s (Lvl %d)"
        L.GUILD_CHANGED = "Gilde gewechselt zu: %s"
        L.GUILD_LEFT = "Du hast die Gilde verlassen."
        
        -- Deaths
        L.DEATH_RECEIVED = "%s ist gefallen!"
        L.MAP_DIED = "Gestorben: %s"
        L.KILLED_BY = "Getoetet von"
        L.LAST_WORDS = "Letzte Worte"
        L.ZONE = "Zone"
        L.DATE = "Datum"
        L.TIME = "Zeit"
        
        -- Debug
        L.DEBUG_TITLE = "Debug & Sync Info"
        L.DEBUG_SYNC_STATUS = "Sync Status"
        L.DEBUG_USERS = "Addon-User: %d"
        L.DEBUG_LAST_SYNC = "Letzter Sync: %s"
        L.DEBUG_DEATHLOG = "Deathlog Status"
        L.DEBUG_FOUND = "Gefunden: %s"
        L.DEBUG_ENTRIES = "Eintraege: %d"
        L.DEBUG_GUILD_DEATHS = "Gildentode: %d"
        L.DEBUG_LOG = "Aktivitaets-Log"
        L.DEBUG_CLEAR = "Leeren"
        L.DEBUG_NEVER = "Nie"
        
        -- Hall of Fame
        L.HOF_TITLE = "Ruhmeshalle"
        L.HOF_SUBTITLE = "Die Unsterblichen"
        L.HOF_EMPTY = "Noch keine Level 60 Ueberlebenden"
        L.HOF_REACHED = "erreichte Level 60"
        
        -- Memorial
        L.MEMORIAL_TITLE = "Gedenkhalle"
        L.MEMORIAL_SUBTITLE = "Wir gedenken der Gefallenen"
        L.MEMORIAL_EMPTY = "Keine Gefallenen zum Gedenken"
        L.MEMORIAL_RIP = "Ruhe in Frieden"
        
        -- Milestones
        L.MILESTONES_TITLE = "Meilensteine"
        L.MILESTONES_SUBTITLE = "Ueberlebens-Erfolge"
        L.MILESTONE_UNLOCKED = "Meilenstein erreicht!"
        L.MILESTONE_LEVEL = "Level %d erreicht"
        L.MILESTONE_BOSS = "%s besiegt"
        L.MILESTONE_PROFESSION = "%s Skill %d"
        
        -- Professions
        L.PROFESSIONS_TITLE = "Gilden-Berufe"
        L.PROFESSIONS_SUBTITLE = "Wer kann was?"
        L.PROFESSIONS_EMPTY = "Keine Berufsdaten verfuegbar"
        L.PROFESSIONS_SEARCH = "Suchen..."
        
        -- Titles
        L.TITLES_TITLE = "Titel"
        L.TITLES_CURRENT = "Aktueller Titel:"
        L.TITLES_UNLOCKED = "Titel freigeschaltet"
        L.TITLES_CLICK_SELECT = "Klicken zum Auswaehlen"
        L.TITLES_ACTIVE = "AKTIV"
        L.TITLES_REQUIRED = "Benoetigt:"
        L.TITLES_PRIORITY = "Prioritaet:"
        
        -- Guild Stats
        L.GSTATS_TITLE = "Gilden-Statistiken"
        L.GSTATS_MEMBERS = "Mitglieder"
        L.GSTATS_ONLINE = "Online"
        L.GSTATS_AVG_LEVEL = "Durchschnittslevel"
        L.GSTATS_DEATHS_TODAY = "Tode heute"
        L.GSTATS_DEATHS_WEEK = "Tode diese Woche"
        L.GSTATS_DEATHS_TOTAL = "Tode gesamt"
        
        -- Export
        L.EXPORT_TITLE = "Export"
        L.EXPORT_DISCORD = "Discord Format"
        L.EXPORT_TEXT = "Text Format"
        L.EXPORT_CSV = "CSV Format"
        L.EXPORT_STATS = "Statistiken"
        L.EXPORT_COPY = "Text markieren und Strg+C"
        
        -- Chronicle (main list)
        L.CHRONICLE_HEADER = "- Chronik der Gefallenen -"
        L.CHRONICLE_EMPTY = "Noch keine Gefallenen verzeichnet"
        
        -- Quotes
        L.BOOK_QUOTES = {
            "Ihre Namen sind in Stein gemeisselt.",
            "Moegen ihre Seelen Frieden finden.",
            "In Ehren gefallen.",
            "Vergessen werden sie niemals.",
            "Helden sterben nicht, sie leben in unseren Herzen weiter.",
            "Kein Tod ist umsonst, wenn man sich erinnert.",
            "Das Licht verlosch, doch die Erinnerung brennt ewig.",
            "Sie gaben alles fuer Azeroth.",
            "Jeder Name erzaehlt eine Geschichte.",
            "Der Tod ist nicht das Ende - er ist ein neues Kapitel.",
            "Wer im Herzen seiner Kameraden lebt, ist nicht wirklich tot.",
            "Die Tapfersten fallen zuerst.",
            "Azeroth vergisst seine Verteidiger nicht.",
            "Zwischen den Zeilen dieses Buches weint eine Gilde.",
            "Moege das Licht euch auf eurer letzten Reise begleiten.",
            "Ein Held stirbt nur einmal - ein Feigling tausend Tode.",
            "Die Dunkelheit nahm sie, doch ihr Mut bleibt.",
            "Geschrieben mit Tinte und Traenen.",
            "Fuer die Gilde. Fuer die Ehre. Fuer immer.",
            "Nicht alle Helden tragen Ruestung - manche tragen nur Mut.",
        }
        
        -- Death Messages (simple versions for chat)
        L.DEATH_MESSAGES = {
            "%s (Lvl %d %s) ist gefallen. R.I.P.",
            "Die Gilde trauert um %s - Level %d %s",
        }
        
        -- DangerZone (Supporter Feature)
        L.DZ_TITLE = "GEFAHRENZONE"
        L.DZ_WARNING = "%d Gefallene in dieser Zone!"
        L.DZ_RECENT = "Zuletzt gefallen:"
        L.DZ_SUPPORTER_ONLY = "Gefahrenzonen-Warnung ist ein Supporter-Feature."
        L.DZ_ENABLED = "Gefahrenzonen-Warnung aktiviert"
        L.DZ_DISABLED = "Gefahrenzonen-Warnung deaktiviert"
        
    elseif clientLocale == "ruRU" then
        -- ═══ RUSSIAN / РУССКИЙ ═══
        
        -- Classes
        L.CLASSES = {[1]="Воин",[2]="Паладин",[3]="Охотник",[4]="Разбойник",[5]="Жрец",[7]="Шаман",[8]="Маг",[9]="Чернокнижник",[11]="Друид"}
        
        -- Core
        L.ADDON_TITLE = "Книга Павших"
        L.ADDON_SHORT = "Книга"
        L.NO_GUILD = "Нет гильдии"
        L.NO_GUILD_INFO = "Вы не в гильдии.\nВступите в гильдию."
        L.UNKNOWN = "Неизвестно"
        L.LEVEL = "Уровень"
        L.OK = "ОК"
        L.CANCEL = "Отмена"
        L.CLOSE = "Закрыть"
        L.SAVE = "Сохранить"
        L.DELETE = "Удалить"
        L.EDIT = "Редактировать"
        L.BACK = "Назад"
        L.VERSION = "Версия"
        
        -- Statistics
        L.GUILD_DEATHS = "Павшие члены гильдии"
        L.TOTAL_DEATHS = "%d Павших"
        L.AVG_LEVEL = "Ср. уровень: %.1f"
        L.TODAY = "Сегодня: %d"
        L.THIS_WEEK = "Неделя: %d"
        L.FALLEN = "Павшие"
        L.FALLEN_TODAY = "Сегодня"
        L.FALLEN_WEEK = "На этой неделе"
        L.NO_LOSSES = "Нет потерь!\nГильдия сильна."
        
        -- Buttons (UI)
        L.BTN_REFRESH = "Обновить"
        L.BTN_SETTINGS = "Настройки"
        L.BTN_SYNC = "Синхр."
        L.BTN_EXPORT = "Экспорт"
        L.BTN_DEBUG = "Отладка"
        L.BTN_HALL_OF_FAME = "Зал славы"
        L.BTN_STATISTICS = "Статистика"
        L.BTN_MILESTONES = "Достижения"
        L.BTN_PROFESSIONS = "Профессии"
        L.BTN_GUILD_MAP = "Карта гильдии"
        L.BTN_TITLES = "Титулы"
        L.BTN_MEMORIAL = "Мемориал"
        L.BTN_GUILD_STATS = "Статистика гильдии"
        L.BTN_RULES = "Правила"
        L.BTN_CALENDAR = "Календарь"
        L.BTN_LEADER = "Руководство"
        L.BTN_BOOK = "Книга"
        
        -- Guild Rules
        L.RULES_TITLE = "Правила гильдии"
        L.RULES_CAN_EDIT = "Вы можете редактировать правила"
        L.RULES_CANNOT_EDIT = "Только офицеры могут редактировать правила"
        L.RULES_UPDATED = "Правила гильдии обновлены! Пожалуйста, прочитайте."
        L.RULES_SAVED = "Правила гильдии сохранены и распространены!"
        L.RULES_REQUESTING = "Запрос правил от членов гильдии..."
        L.RULES_ONLY_OFFICERS = "Только офицеры могут редактировать правила!"
        L.RULES_CHAT_UPDATED = "[Правила гильдии] Обновлены, пожалуйста прочитайте! (/gdl rules)"
        
        -- Settings
        L.SETTING_ANNOUNCE = "Объявление в чате гильдии"
        L.SETTING_SOUND = "Воспроизводить звук"
        L.SETTING_OVERLAY = "Показывать всплывающее окно"
        L.SETTING_MAP_MARKERS = "Маркеры на карте"
        L.SETTING_DEBUG = "Отладочный вывод"
        L.SETTING_BLIZZARD_CHANNEL = "Канал Blizzard HC"
        L.SETTING_ADDON_CHANNEL = "Синхронизация аддона"
        L.SETTING_GUILD_TRACKER = "Трекер гильдии"
        
        -- Sync & Status
        L.LIVE = "LIVE"
        L.SYNCED = "СИНХР"
        L.SYNC_REQUESTED = "Синхронизация запрошена..."
        L.SYNC_RECEIVED = "Синхр: %s (Ур %d)"
        L.GUILD_CHANGED = "Гильдия изменена на: %s"
        L.GUILD_LEFT = "Вы покинули гильдию."
        
        -- Deaths
        L.DEATH_RECEIVED = "%s пал!"
        L.MAP_DIED = "Погиб: %s"
        L.KILLED_BY = "Убит"
        L.LAST_WORDS = "Последние слова"
        L.ZONE = "Зона"
        L.DATE = "Дата"
        L.TIME = "Время"
        
        -- Debug
        L.DEBUG_TITLE = "Отладка и синхронизация"
        L.DEBUG_SYNC_STATUS = "Статус синхронизации"
        L.DEBUG_USERS = "Пользователей аддона: %d"
        L.DEBUG_LAST_SYNC = "Последняя синхр.: %s"
        L.DEBUG_DEATHLOG = "Статус Deathlog"
        L.DEBUG_FOUND = "Найдено: %s"
        L.DEBUG_ENTRIES = "Записей: %d"
        L.DEBUG_GUILD_DEATHS = "Смертей в гильдии: %d"
        L.DEBUG_LOG = "Журнал активности"
        L.DEBUG_CLEAR = "Очистить"
        L.DEBUG_NEVER = "Никогда"
        
        -- Hall of Fame
        L.HOF_TITLE = "Зал славы"
        L.HOF_SUBTITLE = "Бессмертные"
        L.HOF_EMPTY = "Пока нет выживших 60 уровня"
        L.HOF_REACHED = "достиг 60 уровня"
        
        -- Memorial
        L.MEMORIAL_TITLE = "Мемориал"
        L.MEMORIAL_SUBTITLE = "Мы помним павших"
        L.MEMORIAL_EMPTY = "Нет павших для поминовения"
        L.MEMORIAL_RIP = "Покойся с миром"
        
        -- Milestones
        L.MILESTONES_TITLE = "Достижения"
        L.MILESTONES_SUBTITLE = "Успехи выживания"
        L.MILESTONE_UNLOCKED = "Достижение разблокировано!"
        L.MILESTONE_LEVEL = "Достигнут %d уровень"
        L.MILESTONE_BOSS = "%s повержен"
        L.MILESTONE_PROFESSION = "%s Навык %d"
        
        -- Professions
        L.PROFESSIONS_TITLE = "Профессии гильдии"
        L.PROFESSIONS_SUBTITLE = "Кто что умеет?"
        L.PROFESSIONS_EMPTY = "Нет данных о профессиях"
        L.PROFESSIONS_SEARCH = "Поиск..."
        
        -- Titles
        L.TITLES_TITLE = "Титулы"
        L.TITLES_CURRENT = "Текущий титул:"
        L.TITLES_UNLOCKED = "Титул разблокирован"
        L.TITLES_CLICK_SELECT = "Нажмите для выбора"
        L.TITLES_ACTIVE = "АКТИВЕН"
        L.TITLES_REQUIRED = "Требуется:"
        L.TITLES_PRIORITY = "Приоритет:"
        
        -- Guild Stats
        L.GSTATS_TITLE = "Статистика гильдии"
        L.GSTATS_MEMBERS = "Участники"
        L.GSTATS_ONLINE = "Онлайн"
        L.GSTATS_AVG_LEVEL = "Средний уровень"
        L.GSTATS_DEATHS_TODAY = "Смертей сегодня"
        L.GSTATS_DEATHS_WEEK = "Смертей на этой неделе"
        L.GSTATS_DEATHS_TOTAL = "Всего смертей"
        
        -- Export
        L.EXPORT_TITLE = "Экспорт"
        L.EXPORT_DISCORD = "Формат Discord"
        L.EXPORT_TEXT = "Текстовый формат"
        L.EXPORT_CSV = "Формат CSV"
        L.EXPORT_STATS = "Статистика"
        L.EXPORT_COPY = "Выделите текст и Ctrl+C"
        
        -- Chronicle (main list)
        L.CHRONICLE_HEADER = "- Хроника павших -"
        L.CHRONICLE_EMPTY = "Пока нет записей о павших"
        
        -- Quotes
        L.BOOK_QUOTES = {
            "Их имена высечены в камне.",
            "Пусть их души обретут покой.",
            "Пали с честью.",
            "Их никогда не забудут.",
            "Герои не умирают, они живут в наших сердцах.",
        }
        
        -- Death Messages (simple versions for chat)
        L.DEATH_MESSAGES = {
            "%s (Ур %d %s) пал. Покойся с миром.",
            "Гильдия скорбит о %s - Уровень %d %s",
        }
        
        -- DangerZone (Supporter Feature)
        L.DZ_TITLE = "ОПАСНАЯ ЗОНА"
        L.DZ_WARNING = "%d павших в этой зоне!"
        L.DZ_RECENT = "Последние павшие:"
        L.DZ_SUPPORTER_ONLY = "Предупреждение об опасных зонах — функция для Supporter."
        L.DZ_ENABLED = "Предупреждение об опасных зонах включено"
        L.DZ_DISABLED = "Предупреждение об опасных зонах выключено"
        
    else
        -- ═══ ENGLISH (DEFAULT) ═══
        
        -- Classes
        L.CLASSES = {[1]="Warrior",[2]="Paladin",[3]="Hunter",[4]="Rogue",[5]="Priest",[7]="Shaman",[8]="Mage",[9]="Warlock",[11]="Druid"}
        
        -- Core
        L.ADDON_TITLE = "The Book of the Fallen"
        L.ADDON_SHORT = "Book"
        L.NO_GUILD = "No Guild"
        L.NO_GUILD_INFO = "You are not in a guild.\nJoin a guild to track deaths."
        L.UNKNOWN = "Unknown"
        L.LEVEL = "Level"
        L.OK = "OK"
        L.CANCEL = "Cancel"
        L.CLOSE = "Close"
        L.SAVE = "Save"
        L.DELETE = "Delete"
        L.EDIT = "Edit"
        L.BACK = "Back"
        L.VERSION = "Version"
        
        -- Statistics
        L.GUILD_DEATHS = "Fallen Guild Members"
        L.TOTAL_DEATHS = "%d Fallen"
        L.AVG_LEVEL = "Avg Level: %.1f"
        L.TODAY = "Today: %d"
        L.THIS_WEEK = "Week: %d"
        L.FALLEN = "Fallen"
        L.FALLEN_TODAY = "Today"
        L.FALLEN_WEEK = "This Week"
        L.NO_LOSSES = "No losses!\nThe guild stands strong."
        
        -- Buttons (UI)
        L.BTN_REFRESH = "Refresh"
        L.BTN_SETTINGS = "Settings"
        L.BTN_SYNC = "Sync"
        L.BTN_EXPORT = "Export"
        L.BTN_DEBUG = "Debug"
        L.BTN_HALL_OF_FAME = "Hall of Fame"
        L.BTN_STATISTICS = "Statistics"
        L.BTN_MILESTONES = "Milestones"
        L.BTN_PROFESSIONS = "Professions"
        L.BTN_GUILD_MAP = "Guild Map"
        L.BTN_TITLES = "Titles"
        L.BTN_MEMORIAL = "Memorial"
        L.BTN_GUILD_STATS = "Guild Stats"
        L.BTN_RULES = "Rules"
        L.BTN_CALENDAR = "Calendar"
        L.BTN_LEADER = "Leadership"
        L.BTN_BOOK = "Book"
        
        -- Guild Rules
        L.RULES_TITLE = "Guild Rules"
        L.RULES_CAN_EDIT = "You can edit the rules"
        L.RULES_CANNOT_EDIT = "Only officers can edit rules"
        L.RULES_UPDATED = "Guild rules have been updated! Please read."
        L.RULES_SAVED = "Guild rules saved and distributed!"
        L.RULES_REQUESTING = "Requesting rules from guild members..."
        L.RULES_ONLY_OFFICERS = "Only officers can edit the rules!"
        L.RULES_CHAT_UPDATED = "[Guild Rules] Updated, please read! (/gdl rules)"
        
        -- Settings
        L.SETTING_ANNOUNCE = "Guild chat announcement"
        L.SETTING_SOUND = "Play sound"
        L.SETTING_OVERLAY = "Show popup"
        L.SETTING_MAP_MARKERS = "Map markers"
        L.SETTING_DEBUG = "Debug output"
        L.SETTING_BLIZZARD_CHANNEL = "Blizzard HC channel"
        L.SETTING_ADDON_CHANNEL = "Addon sync"
        L.SETTING_GUILD_TRACKER = "Guild tracker"
        
        -- Sync & Status
        L.LIVE = "LIVE"
        L.SYNCED = "SYNC"
        L.SYNC_REQUESTED = "Sync requested..."
        L.SYNC_RECEIVED = "Sync: %s (Lvl %d)"
        L.GUILD_CHANGED = "Guild changed to: %s"
        L.GUILD_LEFT = "You have left the guild."
        
        -- Deaths
        L.DEATH_RECEIVED = "%s has fallen!"
        L.MAP_DIED = "Died: %s"
        L.KILLED_BY = "Killed by"
        L.LAST_WORDS = "Last Words"
        L.ZONE = "Zone"
        L.DATE = "Date"
        L.TIME = "Time"
        
        -- Debug
        L.DEBUG_TITLE = "Debug & Sync Info"
        L.DEBUG_SYNC_STATUS = "Sync Status"
        L.DEBUG_USERS = "Addon users: %d"
        L.DEBUG_LAST_SYNC = "Last sync: %s"
        L.DEBUG_DEATHLOG = "Deathlog Status"
        L.DEBUG_FOUND = "Found: %s"
        L.DEBUG_ENTRIES = "Entries: %d"
        L.DEBUG_GUILD_DEATHS = "Guild deaths: %d"
        L.DEBUG_LOG = "Activity Log"
        L.DEBUG_CLEAR = "Clear"
        L.DEBUG_NEVER = "Never"
        
        -- Hall of Fame
        L.HOF_TITLE = "Hall of Fame"
        L.HOF_SUBTITLE = "The Immortals"
        L.HOF_EMPTY = "No Level 60 survivors yet"
        L.HOF_REACHED = "reached Level 60"
        
        -- Memorial
        L.MEMORIAL_TITLE = "Memorial Hall"
        L.MEMORIAL_SUBTITLE = "We remember the fallen"
        L.MEMORIAL_EMPTY = "No fallen to remember"
        L.MEMORIAL_RIP = "Rest in Peace"
        
        -- Milestones
        L.MILESTONES_TITLE = "Milestones"
        L.MILESTONES_SUBTITLE = "Survival Achievements"
        L.MILESTONE_UNLOCKED = "Milestone achieved!"
        L.MILESTONE_LEVEL = "Reached Level %d"
        L.MILESTONE_BOSS = "Defeated %s"
        L.MILESTONE_PROFESSION = "%s Skill %d"
        
        -- Professions
        L.PROFESSIONS_TITLE = "Guild Professions"
        L.PROFESSIONS_SUBTITLE = "Who can do what?"
        L.PROFESSIONS_EMPTY = "No profession data available"
        L.PROFESSIONS_SEARCH = "Search..."
        
        -- Titles
        L.TITLES_TITLE = "Titles"
        L.TITLES_CURRENT = "Current Title:"
        L.TITLES_UNLOCKED = "titles unlocked"
        L.TITLES_CLICK_SELECT = "Click to select"
        L.TITLES_ACTIVE = "ACTIVE"
        L.TITLES_REQUIRED = "Requires:"
        L.TITLES_PRIORITY = "Priority:"
        
        -- Guild Stats
        L.GSTATS_TITLE = "Guild Statistics"
        L.GSTATS_MEMBERS = "Members"
        L.GSTATS_ONLINE = "Online"
        L.GSTATS_AVG_LEVEL = "Average Level"
        L.GSTATS_DEATHS_TODAY = "Deaths today"
        L.GSTATS_DEATHS_WEEK = "Deaths this week"
        L.GSTATS_DEATHS_TOTAL = "Total deaths"
        
        -- Export
        L.EXPORT_TITLE = "Export"
        L.EXPORT_DISCORD = "Discord Format"
        L.EXPORT_TEXT = "Text Format"
        L.EXPORT_CSV = "CSV Format"
        L.EXPORT_STATS = "Statistics"
        L.EXPORT_COPY = "Select text and Ctrl+C"
        
        -- Chronicle (main list)
        L.CHRONICLE_HEADER = "- Chronicle of the Fallen -"
        L.CHRONICLE_EMPTY = "No fallen recorded yet"
        
        -- Quotes
        L.BOOK_QUOTES = {
            "Their names are carved in stone.",
            "May their souls find peace.",
            "Fallen with honor.",
            "They will never be forgotten.",
            "Heroes don't die, they live on in our hearts.",
            "No death is in vain when someone remembers.",
            "The light faded, but the memory burns eternal.",
            "They gave everything for Azeroth.",
            "Every name tells a story.",
            "Death is not the end - it is a new chapter.",
            "Those who live in the hearts of comrades never truly die.",
            "The bravest fall first.",
            "Azeroth does not forget its defenders.",
            "Between these pages, a guild weeps.",
            "May the Light guide you on your final journey.",
            "A hero dies but once - a coward dies a thousand deaths.",
            "The darkness took them, but their courage remains.",
            "Written in ink and tears.",
            "For the guild. For honor. Forever.",
            "Not all heroes wear armor - some wear only courage.",
        }
        
        -- Death Messages (simple versions for chat)
        L.DEATH_MESSAGES = {
            "%s (Lvl %d %s) has fallen. R.I.P.",
            "The guild mourns %s - Level %d %s",
        }
        
        -- DangerZone (Supporter Feature)
        L.DZ_TITLE = "DANGER ZONE"
        L.DZ_WARNING = "%d fallen in this zone!"
        L.DZ_RECENT = "Recently fallen:"
        L.DZ_SUPPORTER_ONLY = "Danger Zone Alerts is a Supporter feature."
        L.DZ_ENABLED = "Danger Zone Alerts enabled"
        L.DZ_DISABLED = "Danger Zone Alerts disabled"
        
    end
end

function GDL:L(key)
    return L[key] or key
end

function GDL:GetClassName(classId)
    return L.CLASSES and L.CLASSES[classId] or L.UNKNOWN or "Unknown"
end

-- Register
GDL:RegisterModule("Locale", Locale)
