-- rChat: localization
-- All Blizzard-supported WoW locales

local A, L = ...

L.Locale = {}

-- Detect game locale
local locale = GetLocale()

-----------------------------
-- English (default)  enUS / enGB
-----------------------------
L.Locale.enUS = {
    -- Addon info
    ["ADDON_NAME"]    = "rChat",
    ["ADDON_LOADED"]  = "rChat loaded successfully!",

    -- GUI
    ["GUI_TITLE"]          = "rChat Settings",
    ["GUI_RELOAD_WARNING"] = "Some settings require a UI reload to take effect.",
    ["GUI_RELOAD_BUTTON"]  = "Reload UI",
    ["GUI_RELOAD_POPUP"]   = "Settings changed. Reload UI now?",
    ["GUI_YES"]            = "Yes",
    ["GUI_NO"]             = "No",

    -- General tab
    ["TAB_GENERAL"]  = "General",
    ["TAB_CHICCHAI"] = "Chicchai",
    ["TAB_CHAT"]     = "Chat",

    ["GENERAL_SLASHCMDS"]   = "Slash Commands",
    ["GENERAL_RESET_NOTE"]  = "Reset all settings to defaults (requires UI reload).",
    ["GENERAL_RESET_BTN"]   = "Reset to Defaults",
    ["GENERAL_ABOUT_SUB"]   = "Modern · Minimal · WoW 12.0+",
    ["GENERAL_OPEN_BTN"]    = "Open rChat Settings",
    ["GENERAL_ADDON_DESC"]  = "A modern chat enhancement addon for WoW 12.0+",

    -- Section headers
    ["SECTION_TIMING_ANIM"] = "Timing & Animation",
    ["SECTION_BEHAVIOR"]    = "Behavior",
    ["SECTION_TIMING_POS"]  = "Timing & Position",
    ["SECTION_MINIMAP"]     = "Minimap",

    -- Chicchai section
    ["CHICCHAI_HEADER"]           = "Chicchai (Auto-Minimize Chat)",
    ["CHICCHAI_ENABLE"]           = "Enable Chicchai Mode",
    ["CHICCHAI_ENABLE_DESC"]      = "Automatically minimize chat windows after inactivity",
    ["CHICCHAI_EDITMODE_NOTE"]    = "Tip: Use Edit Mode (ESC > Edit Mode) to set chat size and position.",
    ["CHICCHAI_ANIM_TIME"]        = "Animation Time",
    ["CHICCHAI_ANIM_TIME_DESC"]   = "Duration of minimize/maximize animation (in seconds)",
    ["CHICCHAI_MIN_TIME"]         = "Minimize After",
    ["CHICCHAI_MIN_TIME_DESC"]    = "Automatically minimize after X seconds of inactivity",
    ["CHICCHAI_MIN_LINES"]        = "Minimized Lines",
    ["CHICCHAI_MIN_LINES_DESC"]   = "Number of chat lines visible when minimized",
    ["CHICCHAI_MOUSE_OVER"]       = "Maximize on Mouse Over",
    ["CHICCHAI_MOUSE_OVER_DESC"]  = "Automatically maximize when hovering over chat",
    ["CHICCHAI_COMBAT_LOCK"]      = "Lock in Combat",
    ["CHICCHAI_COMBAT_LOCK_DESC"] = "Prevent maximizing during combat",
    ["CHICCHAI_COMBAT_LOG"]       = "Always Show Combat Log",
    ["CHICCHAI_COMBAT_LOG_DESC"]  = "Keep combat log frame always maximized",

    -- Chat settings
    ["CHAT_HEADER"]                  = "Chat Settings",
    ["CHAT_ALWAYS_SHOW_TABS"]        = "Always Show Tabs",
    ["CHAT_ALWAYS_SHOW_TABS_DESC"]   = "Chat tabs (General, Combat Log) stay visible and don't fade out",
    ["CHAT_SHOW_TIMESTAMP"]          = "Show Timestamp",
    ["CHAT_SHOW_TIMESTAMP_DESC"]     = "Display timestamps (Hour:Minute) before each chat message",
    ["CHAT_SHOW_PLAYER_LEVEL"]       = "Show Player Level",
    ["CHAT_SHOW_PLAYER_LEVEL_DESC"]  = "Display player level to the left of the player name",
    ["CHAT_EDITBOX_POSITION"]        = "Editbox Position",
    ["CHAT_EDITBOX_POSITION_DESC"]   = "Position of the input box (Top or Bottom)",
    ["CHAT_EDITBOX_TOP"]             = "Top",
    ["CHAT_EDITBOX_BOTTOM"]          = "Bottom",
    ["CHAT_ENABLE_URL_COPY"]         = "URL Copy Function",
    ["CHAT_ENABLE_URL_COPY_DESC"]    = "Clicking a link opens a copy window",
    ["CHAT_ENABLE_COPY_BUTTON"]      = "Show Chat Copy Button",
    ["CHAT_ENABLE_COPY_BUTTON_DESC"] = "Shows a button at the bottom left to copy the entire chat",
    ["CHAT_FADE_TIME"]               = "Chat Fade Time",
    ["CHAT_FADE_TIME_DESC"]          = "Time in seconds until chat messages fade out (default: 20)",
    ["CHAT_COPY_WINDOW_TITLE"]       = "Copy Chat",
    ["CHAT_COPY_INSTRUCTION"]        = "Press CTRL+A to select all and CTRL+C to copy",
    ["CHAT_COPY_BUTTON_TOOLTIP"]     = "Copy chat history",
    ["CHAT_COPY_ALL_BUTTON"]         = "Copy All",
    ["CHAT_COPIED_SUCCESS"]          = "Chat copied to clipboard!",

    -- Commands
    ["CMD_HELP"]    = "Available commands:",
    ["CMD_CONFIG"]  = "/rchat config - Open settings window",
    ["CMD_TOGGLE"]  = "/rchat toggle - Toggle Chicchai mode",
    ["CMD_MINIMAP"] = "Toggle minimap icon",
    ["CMD_RESET"]   = "/rchat reset - Reset to default settings",

    -- Chicchai toggle print
    ["CHICCHAI_ENABLED"]  = "enabled",
    ["CHICCHAI_DISABLED"] = "disabled",

    -- Minimap
    ["MINIMAP_ICON_SHOW"]      = "Show Minimap Icon",
    ["MINIMAP_ICON_SHOW_DESC"] = "Show or hide the minimap icon for quick access to settings",
    ["MINIMAP_TOOLTIP"]        = "rChat\n|cff33ff99Left-click:|r Open settings\n|cff33ff99Right-click:|r Toggle Chicchai",

    -- Reload Dialog
    ["RELOAD_REQUIRED_TITLE"] = "Reload Required",
    ["RELOAD_REQUIRED_INFO"]  = "This change requires a UI reload to take effect.",
    ["MINIMAP_RELOAD_INFO"]   = "Changing the minimap icon visibility requires a UI reload.\nPress Reload to apply, or Cancel to revert.",
}

-----------------------------
-- German  deDE
-----------------------------
L.Locale.deDE = {
    ["ADDON_NAME"]    = "rChat",
    ["ADDON_LOADED"]  = "rChat erfolgreich geladen!",

    ["GUI_TITLE"]          = "rChat Einstellungen",
    ["GUI_RELOAD_WARNING"] = "Einige Einstellungen erfordern ein UI-Neuladen.",
    ["GUI_RELOAD_BUTTON"]  = "UI neu laden",
    ["GUI_RELOAD_POPUP"]   = "Einstellungen geändert. UI jetzt neu laden?",
    ["GUI_YES"]            = "Ja",
    ["GUI_NO"]             = "Nein",

    ["TAB_GENERAL"]  = "Allgemein",
    ["TAB_CHICCHAI"] = "Chicchai",
    ["TAB_CHAT"]     = "Chat",

    ["GENERAL_SLASHCMDS"]   = "Slash-Befehle",
    ["GENERAL_RESET_NOTE"]  = "Alle Einstellungen auf Standardwerte zurücksetzen (erfordert UI-Reload).",
    ["GENERAL_RESET_BTN"]   = "Auf Standard zurücksetzen",
    ["GENERAL_ABOUT_SUB"]   = "Modern · Minimal · WoW 12.0+",
    ["GENERAL_OPEN_BTN"]    = "rChat Einstellungen öffnen",
    ["GENERAL_ADDON_DESC"]  = "Ein modernes Chat-Enhancement-Addon für WoW 12.0+",

    ["SECTION_TIMING_ANIM"] = "Timing & Animation",
    ["SECTION_BEHAVIOR"]    = "Verhalten",
    ["SECTION_TIMING_POS"]  = "Timing & Position",
    ["SECTION_MINIMAP"]     = "Minimap",

    ["CHICCHAI_HEADER"]           = "Chicchai (Chat automatisch minimieren)",
    ["CHICCHAI_ENABLE"]           = "Chicchai-Modus aktivieren",
    ["CHICCHAI_ENABLE_DESC"]      = "Chat-Fenster nach Inaktivität automatisch minimieren",
    ["CHICCHAI_EDITMODE_NOTE"]    = "Tipp: Benutze Edit Mode (ESC > Edit Mode) um Chat-Größe und Position einzustellen.",
    ["CHICCHAI_ANIM_TIME"]        = "Animationszeit",
    ["CHICCHAI_ANIM_TIME_DESC"]   = "Dauer der Minimieren/Maximieren-Animation (in Sekunden)",
    ["CHICCHAI_MIN_TIME"]         = "Minimieren nach",
    ["CHICCHAI_MIN_TIME_DESC"]    = "Automatisch minimieren nach X Sekunden Inaktivität",
    ["CHICCHAI_MIN_LINES"]        = "Minimierte Zeilen",
    ["CHICCHAI_MIN_LINES_DESC"]   = "Anzahl sichtbarer Chat-Zeilen wenn minimiert",
    ["CHICCHAI_MOUSE_OVER"]       = "Bei Maus-Over maximieren",
    ["CHICCHAI_MOUSE_OVER_DESC"]  = "Automatisch maximieren wenn Maus über dem Chat ist",
    ["CHICCHAI_COMBAT_LOCK"]      = "Im Kampf sperren",
    ["CHICCHAI_COMBAT_LOCK_DESC"] = "Maximieren während des Kampfes verhindern",
    ["CHICCHAI_COMBAT_LOG"]       = "Kampflog immer anzeigen",
    ["CHICCHAI_COMBAT_LOG_DESC"]  = "Kampflog-Fenster immer maximiert halten",

    ["CHAT_HEADER"]                  = "Chat-Einstellungen",
    ["CHAT_ALWAYS_SHOW_TABS"]        = "Tabs immer sichtbar",
    ["CHAT_ALWAYS_SHOW_TABS_DESC"]   = "Chat-Tabs (Allgemein, Kampflog) bleiben dauerhaft sichtbar und verblassen nicht",
    ["CHAT_SHOW_TIMESTAMP"]          = "Zeitstempel anzeigen",
    ["CHAT_SHOW_TIMESTAMP_DESC"]     = "Zeigt Zeitstempel (Stunde:Minute) vor jeder Chat-Nachricht an",
    ["CHAT_SHOW_PLAYER_LEVEL"]       = "Spielerlevel anzeigen",
    ["CHAT_SHOW_PLAYER_LEVEL_DESC"]  = "Zeigt das Level des Spielers links neben dem Namen an",
    ["CHAT_EDITBOX_POSITION"]        = "Editbox Position",
    ["CHAT_EDITBOX_POSITION_DESC"]   = "Position der Eingabebox (Oben oder Unten)",
    ["CHAT_EDITBOX_TOP"]             = "Oben",
    ["CHAT_EDITBOX_BOTTOM"]          = "Unten",
    ["CHAT_ENABLE_URL_COPY"]         = "URL-Kopierfunktion",
    ["CHAT_ENABLE_URL_COPY_DESC"]    = "Klick auf einen Link öffnet ein Kopierfenster",
    ["CHAT_ENABLE_COPY_BUTTON"]      = "Chat-Kopierbutton anzeigen",
    ["CHAT_ENABLE_COPY_BUTTON_DESC"] = "Zeigt einen Button unten links zum Kopieren des gesamten Chats",
    ["CHAT_FADE_TIME"]               = "Chat-Ausblendverzögerung",
    ["CHAT_FADE_TIME_DESC"]          = "Zeit in Sekunden bis Chat-Nachrichten verblassen (Standard: 20)",
    ["CHAT_COPY_WINDOW_TITLE"]       = "Chat kopieren",
    ["CHAT_COPY_INSTRUCTION"]        = "Drücke STRG+A zum Markieren und STRG+C zum Kopieren",
    ["CHAT_COPY_BUTTON_TOOLTIP"]     = "Chat-Verlauf kopieren",
    ["CHAT_COPY_ALL_BUTTON"]         = "Alles kopieren",
    ["CHAT_COPIED_SUCCESS"]          = "Chat in Zwischenablage kopiert!",

    ["CMD_HELP"]    = "Verfügbare Befehle:",
    ["CMD_CONFIG"]  = "/rchat config - Öffnet das Einstellungsfenster",
    ["CMD_TOGGLE"]  = "/rchat toggle - Chicchai-Modus an/aus",
    ["CMD_MINIMAP"] = "Minimap-Symbol an/aus",
    ["CMD_RESET"]   = "/rchat reset - Auf Standardeinstellungen zurücksetzen",

    ["CHICCHAI_ENABLED"]  = "aktiviert",
    ["CHICCHAI_DISABLED"] = "deaktiviert",

    ["MINIMAP_ICON_SHOW"]      = "Minimap-Symbol anzeigen",
    ["MINIMAP_ICON_SHOW_DESC"] = "Minimap-Symbol für schnellen Zugriff auf Einstellungen anzeigen oder ausblenden",
    ["MINIMAP_TOOLTIP"]        = "rChat\n|cff33ff99Linksklick:|r Einstellungen öffnen\n|cff33ff99Rechtsklick:|r Chicchai an/aus",

    -- Reload-Dialog
    ["RELOAD_REQUIRED_TITLE"] = "Neustart erforderlich",
    ["RELOAD_REQUIRED_INFO"]  = "Diese Änderung erfordert ein UI-Neuladen.",
    ["MINIMAP_RELOAD_INFO"]   = "Das Ändern der Minimap-Symbol-Sichtbarkeit erfordert ein UI-Neuladen.\nKlicke Neu laden um zu bestätigen oder Abbrechen um rückgängig zu machen.",
}

-----------------------------
-- French  frFR
-----------------------------
L.Locale.frFR = {
    ["ADDON_NAME"]    = "rChat",
    ["ADDON_LOADED"]  = "rChat chargé avec succès !",

    ["GUI_TITLE"]          = "Paramètres rChat",
    ["GUI_RELOAD_WARNING"] = "Certains paramètres nécessitent un rechargement de l'interface.",
    ["GUI_RELOAD_BUTTON"]  = "Recharger l'interface",
    ["GUI_RELOAD_POPUP"]   = "Paramètres modifiés. Recharger l'interface maintenant ?",
    ["GUI_YES"]            = "Oui",
    ["GUI_NO"]             = "Non",

    ["TAB_GENERAL"]  = "Général",
    ["TAB_CHICCHAI"] = "Chicchai",
    ["TAB_CHAT"]     = "Chat",

    ["GENERAL_SLASHCMDS"]   = "Commandes Slash",
    ["GENERAL_RESET_NOTE"]  = "Réinitialiser tous les paramètres par défaut (rechargement requis).",
    ["GENERAL_RESET_BTN"]   = "Réinitialiser",
    ["GENERAL_ABOUT_SUB"]   = "Moderne · Minimal · WoW 12.0+",
    ["GENERAL_OPEN_BTN"]    = "Ouvrir les paramètres rChat",
    ["GENERAL_ADDON_DESC"]  = "Une extension de chat moderne pour WoW 12.0+",

    ["SECTION_TIMING_ANIM"] = "Timing & Animation",
    ["SECTION_BEHAVIOR"]    = "Comportement",
    ["SECTION_TIMING_POS"]  = "Timing & Position",
    ["SECTION_MINIMAP"]     = "Minicarte",

    ["CHICCHAI_HEADER"]           = "Chicchai (Réduction automatique du chat)",
    ["CHICCHAI_ENABLE"]           = "Activer le mode Chicchai",
    ["CHICCHAI_ENABLE_DESC"]      = "Réduire automatiquement les fenêtres de chat après inactivité",
    ["CHICCHAI_EDITMODE_NOTE"]    = "Astuce : utilisez le mode Édition (ÉCHAP > Mode Édition) pour régler la taille et la position du chat.",
    ["CHICCHAI_ANIM_TIME"]        = "Durée de l'animation",
    ["CHICCHAI_ANIM_TIME_DESC"]   = "Durée de l'animation de réduction/agrandissement (en secondes)",
    ["CHICCHAI_MIN_TIME"]         = "Réduire après",
    ["CHICCHAI_MIN_TIME_DESC"]    = "Réduire automatiquement après X secondes d'inactivité",
    ["CHICCHAI_MIN_LINES"]        = "Lignes réduites",
    ["CHICCHAI_MIN_LINES_DESC"]   = "Nombre de lignes visibles lorsque le chat est réduit",
    ["CHICCHAI_MOUSE_OVER"]       = "Agrandir au survol",
    ["CHICCHAI_MOUSE_OVER_DESC"]  = "Agrandir automatiquement en survolant le chat",
    ["CHICCHAI_COMBAT_LOCK"]      = "Verrouiller en combat",
    ["CHICCHAI_COMBAT_LOCK_DESC"] = "Empêcher l'agrandissement pendant le combat",
    ["CHICCHAI_COMBAT_LOG"]       = "Toujours afficher le journal de combat",
    ["CHICCHAI_COMBAT_LOG_DESC"]  = "Garder la fenêtre du journal de combat toujours agrandie",

    ["CHAT_HEADER"]                  = "Paramètres du chat",
    ["CHAT_ALWAYS_SHOW_TABS"]        = "Toujours afficher les onglets",
    ["CHAT_ALWAYS_SHOW_TABS_DESC"]   = "Les onglets (Général, Journal de combat) restent visibles",
    ["CHAT_SHOW_TIMESTAMP"]          = "Afficher l'horodatage",
    ["CHAT_SHOW_TIMESTAMP_DESC"]     = "Afficher l'heure (Heure:Minute) avant chaque message",
    ["CHAT_SHOW_PLAYER_LEVEL"]       = "Afficher le niveau du joueur",
    ["CHAT_SHOW_PLAYER_LEVEL_DESC"]  = "Afficher le niveau du joueur à gauche de son nom",
    ["CHAT_EDITBOX_POSITION"]        = "Position de la zone de saisie",
    ["CHAT_EDITBOX_POSITION_DESC"]   = "Position de la zone de saisie (Haut ou Bas)",
    ["CHAT_EDITBOX_TOP"]             = "Haut",
    ["CHAT_EDITBOX_BOTTOM"]          = "Bas",
    ["CHAT_ENABLE_URL_COPY"]         = "Copie d'URL",
    ["CHAT_ENABLE_URL_COPY_DESC"]    = "Cliquer sur un lien ouvre une fenêtre de copie",
    ["CHAT_ENABLE_COPY_BUTTON"]      = "Afficher le bouton de copie du chat",
    ["CHAT_ENABLE_COPY_BUTTON_DESC"] = "Affiche un bouton en bas à gauche pour copier tout le chat",
    ["CHAT_FADE_TIME"]               = "Délai d'estompage",
    ["CHAT_FADE_TIME_DESC"]          = "Temps en secondes avant que les messages s'estompent (défaut : 20)",
    ["CHAT_COPY_WINDOW_TITLE"]       = "Copier le chat",
    ["CHAT_COPY_INSTRUCTION"]        = "Appuyez sur CTRL+A pour tout sélectionner et CTRL+C pour copier",
    ["CHAT_COPY_BUTTON_TOOLTIP"]     = "Copier l'historique du chat",
    ["CHAT_COPY_ALL_BUTTON"]         = "Tout copier",
    ["CHAT_COPIED_SUCCESS"]          = "Chat copié dans le presse-papiers !",

    ["CMD_HELP"]   = "Commandes disponibles :",
    ["CMD_CONFIG"] = "/rchat config - Ouvrir les paramètres",
    ["CMD_TOGGLE"] = "/rchat toggle - Basculer le mode Chicchai",
    ["CMD_RESET"]  = "/rchat reset - Réinitialiser les paramètres",

    ["CHICCHAI_ENABLED"]  = "activé",
    ["CHICCHAI_DISABLED"] = "désactivé",

    ["MINIMAP_ICON_SHOW"]      = "Afficher l'icône de la minicarte",
    ["MINIMAP_ICON_SHOW_DESC"] = "Afficher ou masquer l'icône de la minicarte pour un accès rapide",
    ["MINIMAP_TOOLTIP"]        = "rChat\n|cff33ff99Clic gauche :|r Ouvrir les paramètres\n|cff33ff99Clic droit :|r Basculer Chicchai",
}

-----------------------------
-- Spanish (Spain)  esES
-----------------------------
L.Locale.esES = {
    ["ADDON_NAME"]    = "rChat",
    ["ADDON_LOADED"]  = "¡rChat cargado correctamente!",

    ["GUI_TITLE"]          = "Ajustes de rChat",
    ["GUI_RELOAD_WARNING"] = "Algunos ajustes requieren recargar la interfaz.",
    ["GUI_RELOAD_BUTTON"]  = "Recargar interfaz",
    ["GUI_RELOAD_POPUP"]   = "Ajustes modificados. ¿Recargar la interfaz ahora?",
    ["GUI_YES"]            = "Sí",
    ["GUI_NO"]             = "No",

    ["TAB_GENERAL"]  = "General",
    ["TAB_CHICCHAI"] = "Chicchai",
    ["TAB_CHAT"]     = "Chat",

    ["GENERAL_SLASHCMDS"]   = "Comandos Slash",
    ["GENERAL_RESET_NOTE"]  = "Restablecer todos los ajustes (requiere recarga).",
    ["GENERAL_RESET_BTN"]   = "Restablecer",
    ["GENERAL_ABOUT_SUB"]   = "Moderno · Mínimo · WoW 12.0+",
    ["GENERAL_OPEN_BTN"]    = "Abrir ajustes de rChat",
    ["GENERAL_ADDON_DESC"]  = "Una extensión de chat moderna para WoW 12.0+",

    ["SECTION_TIMING_ANIM"] = "Tiempo y Animación",
    ["SECTION_BEHAVIOR"]    = "Comportamiento",
    ["SECTION_TIMING_POS"]  = "Tiempo y Posición",
    ["SECTION_MINIMAP"]     = "Minimapa",

    ["CHICCHAI_HEADER"]           = "Chicchai (Minimizar chat automáticamente)",
    ["CHICCHAI_ENABLE"]           = "Activar modo Chicchai",
    ["CHICCHAI_ENABLE_DESC"]      = "Minimizar ventanas de chat automáticamente tras inactividad",
    ["CHICCHAI_EDITMODE_NOTE"]    = "Consejo: usa el Modo Edición (ESC > Modo Edición) para ajustar tamaño y posición del chat.",
    ["CHICCHAI_ANIM_TIME"]        = "Duración de la animación",
    ["CHICCHAI_ANIM_TIME_DESC"]   = "Duración de la animación de minimizar/maximizar (en segundos)",
    ["CHICCHAI_MIN_TIME"]         = "Minimizar después de",
    ["CHICCHAI_MIN_TIME_DESC"]    = "Minimizar automáticamente tras X segundos de inactividad",
    ["CHICCHAI_MIN_LINES"]        = "Líneas minimizadas",
    ["CHICCHAI_MIN_LINES_DESC"]   = "Número de líneas visibles cuando está minimizado",
    ["CHICCHAI_MOUSE_OVER"]       = "Maximizar al pasar el ratón",
    ["CHICCHAI_MOUSE_OVER_DESC"]  = "Maximizar automáticamente al pasar el ratón sobre el chat",
    ["CHICCHAI_COMBAT_LOCK"]      = "Bloquear en combate",
    ["CHICCHAI_COMBAT_LOCK_DESC"] = "Impedir maximizar durante el combate",
    ["CHICCHAI_COMBAT_LOG"]       = "Mostrar siempre el registro de combate",
    ["CHICCHAI_COMBAT_LOG_DESC"]  = "Mantener la ventana del registro de combate siempre maximizada",

    ["CHAT_HEADER"]                  = "Ajustes del chat",
    ["CHAT_ALWAYS_SHOW_TABS"]        = "Mostrar pestañas siempre",
    ["CHAT_ALWAYS_SHOW_TABS_DESC"]   = "Las pestañas (General, Registro de combate) permanecen visibles",
    ["CHAT_SHOW_TIMESTAMP"]          = "Mostrar marca de tiempo",
    ["CHAT_SHOW_TIMESTAMP_DESC"]     = "Mostrar la hora (Hora:Minuto) antes de cada mensaje",
    ["CHAT_SHOW_PLAYER_LEVEL"]       = "Mostrar nivel del jugador",
    ["CHAT_SHOW_PLAYER_LEVEL_DESC"]  = "Mostrar el nivel del jugador a la izquierda de su nombre",
    ["CHAT_EDITBOX_POSITION"]        = "Posición del cuadro de texto",
    ["CHAT_EDITBOX_POSITION_DESC"]   = "Posición del cuadro de entrada (Arriba o Abajo)",
    ["CHAT_EDITBOX_TOP"]             = "Arriba",
    ["CHAT_EDITBOX_BOTTOM"]          = "Abajo",
    ["CHAT_ENABLE_URL_COPY"]         = "Función de copiar URL",
    ["CHAT_ENABLE_URL_COPY_DESC"]    = "Hacer clic en un enlace abre una ventana de copiado",
    ["CHAT_ENABLE_COPY_BUTTON"]      = "Mostrar botón de copia del chat",
    ["CHAT_ENABLE_COPY_BUTTON_DESC"] = "Muestra un botón abajo a la izquierda para copiar el chat",
    ["CHAT_FADE_TIME"]               = "Tiempo de desvanecimiento",
    ["CHAT_FADE_TIME_DESC"]          = "Segundos hasta que los mensajes se desvanecen (predeterminado: 20)",
    ["CHAT_COPY_WINDOW_TITLE"]       = "Copiar chat",
    ["CHAT_COPY_INSTRUCTION"]        = "Pulsa CTRL+A para seleccionar todo y CTRL+C para copiar",
    ["CHAT_COPY_BUTTON_TOOLTIP"]     = "Copiar historial del chat",
    ["CHAT_COPY_ALL_BUTTON"]         = "Copiar todo",
    ["CHAT_COPIED_SUCCESS"]          = "¡Chat copiado al portapapeles!",

    ["CMD_HELP"]   = "Comandos disponibles:",
    ["CMD_CONFIG"] = "/rchat config - Abrir ajustes",
    ["CMD_TOGGLE"] = "/rchat toggle - Alternar modo Chicchai",
    ["CMD_RESET"]  = "/rchat reset - Restablecer ajustes",

    ["CHICCHAI_ENABLED"]  = "activado",
    ["CHICCHAI_DISABLED"] = "desactivado",

    ["MINIMAP_ICON_SHOW"]      = "Mostrar icono del minimapa",
    ["MINIMAP_ICON_SHOW_DESC"] = "Mostrar u ocultar el icono del minimapa para acceso rápido",
    ["MINIMAP_TOOLTIP"]        = "rChat\n|cff33ff99Clic izquierdo:|r Abrir ajustes\n|cff33ff99Clic derecho:|r Alternar Chicchai",
}

-----------------------------
-- Spanish (Latin America)  esMX
-----------------------------
L.Locale.esMX = {
    ["ADDON_NAME"]    = "rChat",
    ["ADDON_LOADED"]  = "¡rChat cargado correctamente!",

    ["GUI_TITLE"]          = "Ajustes de rChat",
    ["GUI_RELOAD_WARNING"] = "Algunos ajustes requieren recargar la interfaz.",
    ["GUI_RELOAD_BUTTON"]  = "Recargar interfaz",
    ["GUI_RELOAD_POPUP"]   = "Ajustes modificados. ¿Recargar la interfaz ahora?",
    ["GUI_YES"]            = "Sí",
    ["GUI_NO"]             = "No",

    ["TAB_GENERAL"]  = "General",
    ["TAB_CHICCHAI"] = "Chicchai",
    ["TAB_CHAT"]     = "Chat",

    ["GENERAL_SLASHCMDS"]   = "Comandos Slash",
    ["GENERAL_RESET_NOTE"]  = "Restablecer todos los ajustes (requiere recarga).",
    ["GENERAL_RESET_BTN"]   = "Restablecer",
    ["GENERAL_ABOUT_SUB"]   = "Moderno · Mínimo · WoW 12.0+",
    ["GENERAL_OPEN_BTN"]    = "Abrir ajustes de rChat",
    ["GENERAL_ADDON_DESC"]  = "Una extensión de chat moderna para WoW 12.0+",

    ["SECTION_TIMING_ANIM"] = "Tiempo y Animación",
    ["SECTION_BEHAVIOR"]    = "Comportamiento",
    ["SECTION_TIMING_POS"]  = "Tiempo y Posición",
    ["SECTION_MINIMAP"]     = "Minimapa",

    ["CHICCHAI_HEADER"]           = "Chicchai (Minimizar chat automáticamente)",
    ["CHICCHAI_ENABLE"]           = "Activar modo Chicchai",
    ["CHICCHAI_ENABLE_DESC"]      = "Minimizar ventanas de chat automáticamente tras inactividad",
    ["CHICCHAI_EDITMODE_NOTE"]    = "Consejo: usa el Modo Edición (ESC > Modo Edición) para ajustar el tamaño y posición del chat.",
    ["CHICCHAI_ANIM_TIME"]        = "Duración de la animación",
    ["CHICCHAI_ANIM_TIME_DESC"]   = "Duración de la animación de minimizar/maximizar (en segundos)",
    ["CHICCHAI_MIN_TIME"]         = "Minimizar después de",
    ["CHICCHAI_MIN_TIME_DESC"]    = "Minimizar automáticamente tras X segundos de inactividad",
    ["CHICCHAI_MIN_LINES"]        = "Líneas minimizadas",
    ["CHICCHAI_MIN_LINES_DESC"]   = "Número de líneas visibles al estar minimizado",
    ["CHICCHAI_MOUSE_OVER"]       = "Maximizar al pasar el mouse",
    ["CHICCHAI_MOUSE_OVER_DESC"]  = "Maximizar automáticamente al pasar el mouse sobre el chat",
    ["CHICCHAI_COMBAT_LOCK"]      = "Bloquear en combate",
    ["CHICCHAI_COMBAT_LOCK_DESC"] = "Impedir maximizar durante el combate",
    ["CHICCHAI_COMBAT_LOG"]       = "Mostrar siempre el registro de combate",
    ["CHICCHAI_COMBAT_LOG_DESC"]  = "Mantener la ventana del registro de combate siempre maximizada",

    ["CHAT_HEADER"]                  = "Ajustes del chat",
    ["CHAT_ALWAYS_SHOW_TABS"]        = "Mostrar pestañas siempre",
    ["CHAT_ALWAYS_SHOW_TABS_DESC"]   = "Las pestañas permanecen visibles y no se desvanecen",
    ["CHAT_SHOW_TIMESTAMP"]          = "Mostrar marca de tiempo",
    ["CHAT_SHOW_TIMESTAMP_DESC"]     = "Mostrar hora (Hora:Minuto) antes de cada mensaje",
    ["CHAT_SHOW_PLAYER_LEVEL"]       = "Mostrar nivel del jugador",
    ["CHAT_SHOW_PLAYER_LEVEL_DESC"]  = "Mostrar el nivel del jugador a la izquierda de su nombre",
    ["CHAT_EDITBOX_POSITION"]        = "Posición del cuadro de texto",
    ["CHAT_EDITBOX_POSITION_DESC"]   = "Posición del cuadro de entrada (Arriba o Abajo)",
    ["CHAT_EDITBOX_TOP"]             = "Arriba",
    ["CHAT_EDITBOX_BOTTOM"]          = "Abajo",
    ["CHAT_ENABLE_URL_COPY"]         = "Función de copiar URL",
    ["CHAT_ENABLE_URL_COPY_DESC"]    = "Hacer clic en un enlace abre una ventana de copiado",
    ["CHAT_ENABLE_COPY_BUTTON"]      = "Mostrar botón de copia del chat",
    ["CHAT_ENABLE_COPY_BUTTON_DESC"] = "Muestra un botón abajo a la izquierda para copiar el chat completo",
    ["CHAT_FADE_TIME"]               = "Tiempo de desvanecimiento",
    ["CHAT_FADE_TIME_DESC"]          = "Segundos antes de que los mensajes se desvanezcan (predeterminado: 20)",
    ["CHAT_COPY_WINDOW_TITLE"]       = "Copiar chat",
    ["CHAT_COPY_INSTRUCTION"]        = "Presiona CTRL+A para seleccionar todo y CTRL+C para copiar",
    ["CHAT_COPY_BUTTON_TOOLTIP"]     = "Copiar historial del chat",
    ["CHAT_COPY_ALL_BUTTON"]         = "Copiar todo",
    ["CHAT_COPIED_SUCCESS"]          = "¡Chat copiado al portapapeles!",

    ["CMD_HELP"]   = "Comandos disponibles:",
    ["CMD_CONFIG"] = "/rchat config - Abrir ajustes",
    ["CMD_TOGGLE"] = "/rchat toggle - Alternar modo Chicchai",
    ["CMD_RESET"]  = "/rchat reset - Restablecer ajustes",

    ["CHICCHAI_ENABLED"]  = "activado",
    ["CHICCHAI_DISABLED"] = "desactivado",

    ["MINIMAP_ICON_SHOW"]      = "Mostrar ícono del minimapa",
    ["MINIMAP_ICON_SHOW_DESC"] = "Mostrar u ocultar el ícono del minimapa para acceso rápido",
    ["MINIMAP_TOOLTIP"]        = "rChat\n|cff33ff99Clic izquierdo:|r Abrir ajustes\n|cff33ff99Clic derecho:|r Alternar Chicchai",
}

-----------------------------
-- Portuguese (Brazil)  ptBR
-----------------------------
L.Locale.ptBR = {
    ["ADDON_NAME"]    = "rChat",
    ["ADDON_LOADED"]  = "rChat carregado com sucesso!",

    ["GUI_TITLE"]          = "Configurações do rChat",
    ["GUI_RELOAD_WARNING"] = "Algumas configurações exigem recarregar a interface.",
    ["GUI_RELOAD_BUTTON"]  = "Recarregar interface",
    ["GUI_RELOAD_POPUP"]   = "Configurações alteradas. Recarregar a interface agora?",
    ["GUI_YES"]            = "Sim",
    ["GUI_NO"]             = "Não",

    ["TAB_GENERAL"]  = "Geral",
    ["TAB_CHICCHAI"] = "Chicchai",
    ["TAB_CHAT"]     = "Chat",

    ["GENERAL_SLASHCMDS"]   = "Comandos Slash",
    ["GENERAL_RESET_NOTE"]  = "Redefinir todas as configurações (requer recarga).",
    ["GENERAL_RESET_BTN"]   = "Redefinir",
    ["GENERAL_ABOUT_SUB"]   = "Moderno · Mínimo · WoW 12.0+",
    ["GENERAL_OPEN_BTN"]    = "Abrir configurações do rChat",
    ["GENERAL_ADDON_DESC"]  = "Um addon moderno de chat para WoW 12.0+",

    ["SECTION_TIMING_ANIM"] = "Tempo e Animação",
    ["SECTION_BEHAVIOR"]    = "Comportamento",
    ["SECTION_TIMING_POS"]  = "Tempo e Posição",
    ["SECTION_MINIMAP"]     = "Minimapa",

    ["CHICCHAI_HEADER"]           = "Chicchai (Minimizar chat automaticamente)",
    ["CHICCHAI_ENABLE"]           = "Ativar modo Chicchai",
    ["CHICCHAI_ENABLE_DESC"]      = "Minimizar janelas de chat automaticamente após inatividade",
    ["CHICCHAI_EDITMODE_NOTE"]    = "Dica: use o Modo de Edição (ESC > Modo de Edição) para ajustar tamanho e posição do chat.",
    ["CHICCHAI_ANIM_TIME"]        = "Duração da animação",
    ["CHICCHAI_ANIM_TIME_DESC"]   = "Duração da animação de minimizar/maximizar (em segundos)",
    ["CHICCHAI_MIN_TIME"]         = "Minimizar após",
    ["CHICCHAI_MIN_TIME_DESC"]    = "Minimizar automaticamente após X segundos de inatividade",
    ["CHICCHAI_MIN_LINES"]        = "Linhas minimizadas",
    ["CHICCHAI_MIN_LINES_DESC"]   = "Número de linhas visíveis quando minimizado",
    ["CHICCHAI_MOUSE_OVER"]       = "Maximizar ao passar o mouse",
    ["CHICCHAI_MOUSE_OVER_DESC"]  = "Maximizar automaticamente ao passar o mouse sobre o chat",
    ["CHICCHAI_COMBAT_LOCK"]      = "Bloquear em combate",
    ["CHICCHAI_COMBAT_LOCK_DESC"] = "Impedir maximização durante o combate",
    ["CHICCHAI_COMBAT_LOG"]       = "Mostrar sempre o log de combate",
    ["CHICCHAI_COMBAT_LOG_DESC"]  = "Manter a janela do log de combate sempre maximizada",

    ["CHAT_HEADER"]                  = "Configurações do chat",
    ["CHAT_ALWAYS_SHOW_TABS"]        = "Mostrar guias sempre",
    ["CHAT_ALWAYS_SHOW_TABS_DESC"]   = "As guias permanecem visíveis e não desaparecem",
    ["CHAT_SHOW_TIMESTAMP"]          = "Mostrar data/hora",
    ["CHAT_SHOW_TIMESTAMP_DESC"]     = "Exibir hora (Hora:Minuto) antes de cada mensagem",
    ["CHAT_SHOW_PLAYER_LEVEL"]       = "Mostrar nível do jogador",
    ["CHAT_SHOW_PLAYER_LEVEL_DESC"]  = "Exibir o nível do jogador à esquerda do nome",
    ["CHAT_EDITBOX_POSITION"]        = "Posição da caixa de texto",
    ["CHAT_EDITBOX_POSITION_DESC"]   = "Posição da caixa de entrada (Cima ou Baixo)",
    ["CHAT_EDITBOX_TOP"]             = "Cima",
    ["CHAT_EDITBOX_BOTTOM"]          = "Baixo",
    ["CHAT_ENABLE_URL_COPY"]         = "Função de copiar URL",
    ["CHAT_ENABLE_URL_COPY_DESC"]    = "Clicar em um link abre uma janela de cópia",
    ["CHAT_ENABLE_COPY_BUTTON"]      = "Mostrar botão de cópia do chat",
    ["CHAT_ENABLE_COPY_BUTTON_DESC"] = "Exibe um botão no canto inferior esquerdo para copiar o chat",
    ["CHAT_FADE_TIME"]               = "Tempo para desvanecer",
    ["CHAT_FADE_TIME_DESC"]          = "Segundos até as mensagens desaparecerem (padrão: 20)",
    ["CHAT_COPY_WINDOW_TITLE"]       = "Copiar chat",
    ["CHAT_COPY_INSTRUCTION"]        = "Pressione CTRL+A para selecionar tudo e CTRL+C para copiar",
    ["CHAT_COPY_BUTTON_TOOLTIP"]     = "Copiar histórico do chat",
    ["CHAT_COPY_ALL_BUTTON"]         = "Copiar tudo",
    ["CHAT_COPIED_SUCCESS"]          = "Chat copiado para a área de transferência!",

    ["CMD_HELP"]   = "Comandos disponíveis:",
    ["CMD_CONFIG"] = "/rchat config - Abrir configurações",
    ["CMD_TOGGLE"] = "/rchat toggle - Alternar modo Chicchai",
    ["CMD_RESET"]  = "/rchat reset - Redefinir configurações",

    ["CHICCHAI_ENABLED"]  = "ativado",
    ["CHICCHAI_DISABLED"] = "desativado",

    ["MINIMAP_ICON_SHOW"]      = "Mostrar ícone do minimapa",
    ["MINIMAP_ICON_SHOW_DESC"] = "Mostrar ou ocultar o ícone do minimapa para acesso rápido",
    ["MINIMAP_TOOLTIP"]        = "rChat\n|cff33ff99Clique esquerdo:|r Abrir configurações\n|cff33ff99Clique direito:|r Alternar Chicchai",
}

-----------------------------
-- Russian  ruRU
-----------------------------
L.Locale.ruRU = {
    ["ADDON_NAME"]    = "rChat",
    ["ADDON_LOADED"]  = "rChat успешно загружен!",

    ["GUI_TITLE"]          = "Настройки rChat",
    ["GUI_RELOAD_WARNING"] = "Некоторые настройки требуют перезагрузки интерфейса.",
    ["GUI_RELOAD_BUTTON"]  = "Перезагрузить интерфейс",
    ["GUI_RELOAD_POPUP"]   = "Настройки изменены. Перезагрузить интерфейс сейчас?",
    ["GUI_YES"]            = "Да",
    ["GUI_NO"]             = "Нет",

    ["TAB_GENERAL"]  = "Общее",
    ["TAB_CHICCHAI"] = "Chicchai",
    ["TAB_CHAT"]     = "Чат",

    ["GENERAL_SLASHCMDS"]   = "Команды Slash",
    ["GENERAL_RESET_NOTE"]  = "Сбросить все настройки по умолчанию (требуется перезагрузка).",
    ["GENERAL_RESET_BTN"]   = "Сбросить",
    ["GENERAL_ABOUT_SUB"]   = "Современный · Минимальный · WoW 12.0+",
    ["GENERAL_OPEN_BTN"]    = "Открыть настройки rChat",
    ["GENERAL_ADDON_DESC"]  = "Современный аддон улучшения чата для WoW 12.0+",

    ["SECTION_TIMING_ANIM"] = "Время и Анимация",
    ["SECTION_BEHAVIOR"]    = "Поведение",
    ["SECTION_TIMING_POS"]  = "Время и Позиция",
    ["SECTION_MINIMAP"]     = "Миникарта",

    ["CHICCHAI_HEADER"]           = "Chicchai (Авто-сворачивание чата)",
    ["CHICCHAI_ENABLE"]           = "Включить режим Chicchai",
    ["CHICCHAI_ENABLE_DESC"]      = "Автоматически сворачивать окна чата после неактивности",
    ["CHICCHAI_EDITMODE_NOTE"]    = "Совет: используйте режим Редактирования (ESC > Режим редактирования) для настройки размера и позиции чата.",
    ["CHICCHAI_ANIM_TIME"]        = "Время анимации",
    ["CHICCHAI_ANIM_TIME_DESC"]   = "Продолжительность анимации сворачивания/разворачивания (в секундах)",
    ["CHICCHAI_MIN_TIME"]         = "Свернуть через",
    ["CHICCHAI_MIN_TIME_DESC"]    = "Автоматически свернуть через X секунд неактивности",
    ["CHICCHAI_MIN_LINES"]        = "Строк в свёрнутом виде",
    ["CHICCHAI_MIN_LINES_DESC"]   = "Количество видимых строк чата в свёрнутом состоянии",
    ["CHICCHAI_MOUSE_OVER"]       = "Разворачивать при наведении",
    ["CHICCHAI_MOUSE_OVER_DESC"]  = "Автоматически разворачивать при наведении курсора на чат",
    ["CHICCHAI_COMBAT_LOCK"]      = "Блокировать в бою",
    ["CHICCHAI_COMBAT_LOCK_DESC"] = "Запретить разворачивание во время боя",
    ["CHICCHAI_COMBAT_LOG"]       = "Всегда показывать журнал боя",
    ["CHICCHAI_COMBAT_LOG_DESC"]  = "Держать окно журнала боя всегда развёрнутым",

    ["CHAT_HEADER"]                  = "Настройки чата",
    ["CHAT_ALWAYS_SHOW_TABS"]        = "Всегда показывать вкладки",
    ["CHAT_ALWAYS_SHOW_TABS_DESC"]   = "Вкладки (Общий, Журнал боя) всегда видны и не исчезают",
    ["CHAT_SHOW_TIMESTAMP"]          = "Показывать время",
    ["CHAT_SHOW_TIMESTAMP_DESC"]     = "Отображать время (Час:Минута) перед каждым сообщением",
    ["CHAT_SHOW_PLAYER_LEVEL"]       = "Показывать уровень игрока",
    ["CHAT_SHOW_PLAYER_LEVEL_DESC"]  = "Отображать уровень игрока слева от имени",
    ["CHAT_EDITBOX_POSITION"]        = "Позиция поля ввода",
    ["CHAT_EDITBOX_POSITION_DESC"]   = "Позиция поля ввода (Вверху или Внизу)",
    ["CHAT_EDITBOX_TOP"]             = "Вверху",
    ["CHAT_EDITBOX_BOTTOM"]          = "Внизу",
    ["CHAT_ENABLE_URL_COPY"]         = "Копирование URL",
    ["CHAT_ENABLE_URL_COPY_DESC"]    = "Нажатие на ссылку открывает окно копирования",
    ["CHAT_ENABLE_COPY_BUTTON"]      = "Показать кнопку копирования чата",
    ["CHAT_ENABLE_COPY_BUTTON_DESC"] = "Показывает кнопку в левом нижнем углу для копирования чата",
    ["CHAT_FADE_TIME"]               = "Время угасания чата",
    ["CHAT_FADE_TIME_DESC"]          = "Секунды до угасания сообщений чата (по умолчанию: 20)",
    ["CHAT_COPY_WINDOW_TITLE"]       = "Копировать чат",
    ["CHAT_COPY_INSTRUCTION"]        = "Нажмите CTRL+A чтобы выделить всё и CTRL+C для копирования",
    ["CHAT_COPY_BUTTON_TOOLTIP"]     = "Копировать историю чата",
    ["CHAT_COPY_ALL_BUTTON"]         = "Копировать всё",
    ["CHAT_COPIED_SUCCESS"]          = "Чат скопирован в буфер обмена!",

    ["CMD_HELP"]   = "Доступные команды:",
    ["CMD_CONFIG"] = "/rchat config - Открыть настройки",
    ["CMD_TOGGLE"] = "/rchat toggle - Переключить режим Chicchai",
    ["CMD_RESET"]  = "/rchat reset - Сбросить настройки",

    ["CHICCHAI_ENABLED"]  = "включён",
    ["CHICCHAI_DISABLED"] = "отключён",

    ["MINIMAP_ICON_SHOW"]      = "Показать иконку миникарты",
    ["MINIMAP_ICON_SHOW_DESC"] = "Показать или скрыть иконку миникарты для быстрого доступа",
    ["MINIMAP_TOOLTIP"]        = "rChat\n|cff33ff99Левая кнопка:|r Открыть настройки\n|cff33ff99Правая кнопка:|r Переключить Chicchai",
}

-----------------------------
-- Simplified Chinese  zhCN
-----------------------------
L.Locale.zhCN = {
    ["ADDON_NAME"]    = "rChat",
    ["ADDON_LOADED"]  = "rChat 加载成功！",

    ["GUI_TITLE"]          = "rChat 设置",
    ["GUI_RELOAD_WARNING"] = "某些设置需要重新加载界面才能生效。",
    ["GUI_RELOAD_BUTTON"]  = "重新加载界面",
    ["GUI_RELOAD_POPUP"]   = "设置已更改。现在重新加载界面？",
    ["GUI_YES"]            = "是",
    ["GUI_NO"]             = "否",

    ["TAB_GENERAL"]  = "常规",
    ["TAB_CHICCHAI"] = "Chicchai",
    ["TAB_CHAT"]     = "聊天",

    ["GENERAL_SLASHCMDS"]   = "斜杠命令",
    ["GENERAL_RESET_NOTE"]  = "将所有设置重置为默认值（需要重载界面）。",
    ["GENERAL_RESET_BTN"]   = "重置为默认",
    ["GENERAL_ABOUT_SUB"]   = "现代 · 简洁 · WoW 12.0+",
    ["GENERAL_OPEN_BTN"]    = "打开 rChat 设置",
    ["GENERAL_ADDON_DESC"]  = "适用于 WoW 12.0+ 的现代聊天增强插件",

    ["SECTION_TIMING_ANIM"] = "时间与动画",
    ["SECTION_BEHAVIOR"]    = "行为",
    ["SECTION_TIMING_POS"]  = "时间与位置",
    ["SECTION_MINIMAP"]     = "小地图",

    ["CHICCHAI_HEADER"]           = "Chicchai（自动最小化聊天框）",
    ["CHICCHAI_ENABLE"]           = "启用 Chicchai 模式",
    ["CHICCHAI_ENABLE_DESC"]      = "在无操作后自动最小化聊天窗口",
    ["CHICCHAI_EDITMODE_NOTE"]    = "提示：使用编辑模式（ESC > 编辑模式）设置聊天框大小和位置。",
    ["CHICCHAI_ANIM_TIME"]        = "动画时长",
    ["CHICCHAI_ANIM_TIME_DESC"]   = "最小化/最大化动画的持续时间（秒）",
    ["CHICCHAI_MIN_TIME"]         = "最小化延迟",
    ["CHICCHAI_MIN_TIME_DESC"]    = "无操作 X 秒后自动最小化",
    ["CHICCHAI_MIN_LINES"]        = "最小化行数",
    ["CHICCHAI_MIN_LINES_DESC"]   = "最小化时可见的聊天行数",
    ["CHICCHAI_MOUSE_OVER"]       = "鼠标悬停时最大化",
    ["CHICCHAI_MOUSE_OVER_DESC"]  = "鼠标悬停在聊天框上时自动最大化",
    ["CHICCHAI_COMBAT_LOCK"]      = "战斗中锁定",
    ["CHICCHAI_COMBAT_LOCK_DESC"] = "战斗中禁止最大化",
    ["CHICCHAI_COMBAT_LOG"]       = "始终显示战斗日志",
    ["CHICCHAI_COMBAT_LOG_DESC"]  = "保持战斗日志窗口始终最大化",

    ["CHAT_HEADER"]                  = "聊天设置",
    ["CHAT_ALWAYS_SHOW_TABS"]        = "始终显示标签页",
    ["CHAT_ALWAYS_SHOW_TABS_DESC"]   = "聊天标签页始终可见，不会淡出",
    ["CHAT_SHOW_TIMESTAMP"]          = "显示时间戳",
    ["CHAT_SHOW_TIMESTAMP_DESC"]     = "在每条消息前显示时间（时:分）",
    ["CHAT_SHOW_PLAYER_LEVEL"]       = "显示玩家等级",
    ["CHAT_SHOW_PLAYER_LEVEL_DESC"]  = "在玩家名称左侧显示其等级",
    ["CHAT_EDITBOX_POSITION"]        = "输入框位置",
    ["CHAT_EDITBOX_POSITION_DESC"]   = "输入框的位置（上方或下方）",
    ["CHAT_EDITBOX_TOP"]             = "上方",
    ["CHAT_EDITBOX_BOTTOM"]          = "下方",
    ["CHAT_ENABLE_URL_COPY"]         = "URL 复制功能",
    ["CHAT_ENABLE_URL_COPY_DESC"]    = "点击链接会打开复制窗口",
    ["CHAT_ENABLE_COPY_BUTTON"]      = "显示聊天复制按钮",
    ["CHAT_ENABLE_COPY_BUTTON_DESC"] = "在左下角显示一个按钮以复制全部聊天",
    ["CHAT_FADE_TIME"]               = "聊天淡出时间",
    ["CHAT_FADE_TIME_DESC"]          = "聊天消息淡出的秒数（默认：20）",
    ["CHAT_COPY_WINDOW_TITLE"]       = "复制聊天",
    ["CHAT_COPY_INSTRUCTION"]        = "按 CTRL+A 全选，CTRL+C 复制",
    ["CHAT_COPY_BUTTON_TOOLTIP"]     = "复制聊天记录",
    ["CHAT_COPY_ALL_BUTTON"]         = "全部复制",
    ["CHAT_COPIED_SUCCESS"]          = "聊天已复制到剪贴板！",

    ["CMD_HELP"]   = "可用命令：",
    ["CMD_CONFIG"] = "/rchat config - 打开设置窗口",
    ["CMD_TOGGLE"] = "/rchat toggle - 切换 Chicchai 模式",
    ["CMD_RESET"]  = "/rchat reset - 重置为默认设置",

    ["CHICCHAI_ENABLED"]  = "已启用",
    ["CHICCHAI_DISABLED"] = "已禁用",

    ["MINIMAP_ICON_SHOW"]      = "显示小地图图标",
    ["MINIMAP_ICON_SHOW_DESC"] = "显示或隐藏小地图图标以快速访问设置",
    ["MINIMAP_TOOLTIP"]        = "rChat\n|cff33ff99左键：|r 打开设置\n|cff33ff99右键：|r 切换 Chicchai",
}

-----------------------------
-- Traditional Chinese  zhTW
-----------------------------
L.Locale.zhTW = {
    ["ADDON_NAME"]    = "rChat",
    ["ADDON_LOADED"]  = "rChat 載入成功！",

    ["GUI_TITLE"]          = "rChat 設定",
    ["GUI_RELOAD_WARNING"] = "某些設定需要重新載入介面才能生效。",
    ["GUI_RELOAD_BUTTON"]  = "重新載入介面",
    ["GUI_RELOAD_POPUP"]   = "設定已變更。立即重新載入介面？",
    ["GUI_YES"]            = "是",
    ["GUI_NO"]             = "否",

    ["TAB_GENERAL"]  = "一般",
    ["TAB_CHICCHAI"] = "Chicchai",
    ["TAB_CHAT"]     = "聊天",

    ["GENERAL_SLASHCMDS"]   = "斜線指令",
    ["GENERAL_RESET_NOTE"]  = "將所有設定重設為預設值（需要重新載入介面）。",
    ["GENERAL_RESET_BTN"]   = "重設為預設值",
    ["GENERAL_ABOUT_SUB"]   = "現代 · 簡潔 · WoW 12.0+",
    ["GENERAL_OPEN_BTN"]    = "開啟 rChat 設定",
    ["GENERAL_ADDON_DESC"]  = "適用於 WoW 12.0+ 的現代聊天增強插件",

    ["SECTION_TIMING_ANIM"] = "時間與動畫",
    ["SECTION_BEHAVIOR"]    = "行為",
    ["SECTION_TIMING_POS"]  = "時間與位置",
    ["SECTION_MINIMAP"]     = "小地圖",

    ["CHICCHAI_HEADER"]           = "Chicchai（自動最小化聊天框）",
    ["CHICCHAI_ENABLE"]           = "啟用 Chicchai 模式",
    ["CHICCHAI_ENABLE_DESC"]      = "在無操作後自動最小化聊天視窗",
    ["CHICCHAI_EDITMODE_NOTE"]    = "提示：使用編輯模式（ESC > 編輯模式）設定聊天框大小和位置。",
    ["CHICCHAI_ANIM_TIME"]        = "動畫時長",
    ["CHICCHAI_ANIM_TIME_DESC"]   = "最小化/最大化動畫的持續時間（秒）",
    ["CHICCHAI_MIN_TIME"]         = "最小化延遲",
    ["CHICCHAI_MIN_TIME_DESC"]    = "無操作 X 秒後自動最小化",
    ["CHICCHAI_MIN_LINES"]        = "最小化行數",
    ["CHICCHAI_MIN_LINES_DESC"]   = "最小化時可見的聊天行數",
    ["CHICCHAI_MOUSE_OVER"]       = "滑鼠懸停時最大化",
    ["CHICCHAI_MOUSE_OVER_DESC"]  = "滑鼠懸停在聊天框上時自動最大化",
    ["CHICCHAI_COMBAT_LOCK"]      = "戰鬥中鎖定",
    ["CHICCHAI_COMBAT_LOCK_DESC"] = "戰鬥期間禁止最大化",
    ["CHICCHAI_COMBAT_LOG"]       = "始終顯示戰鬥記錄",
    ["CHICCHAI_COMBAT_LOG_DESC"]  = "保持戰鬥記錄視窗始終最大化",

    ["CHAT_HEADER"]                  = "聊天設定",
    ["CHAT_ALWAYS_SHOW_TABS"]        = "始終顯示標籤頁",
    ["CHAT_ALWAYS_SHOW_TABS_DESC"]   = "聊天標籤頁始終可見，不會淡出",
    ["CHAT_SHOW_TIMESTAMP"]          = "顯示時間戳",
    ["CHAT_SHOW_TIMESTAMP_DESC"]     = "在每條訊息前顯示時間（時:分）",
    ["CHAT_SHOW_PLAYER_LEVEL"]       = "顯示玩家等級",
    ["CHAT_SHOW_PLAYER_LEVEL_DESC"]  = "在玩家名稱左側顯示其等級",
    ["CHAT_EDITBOX_POSITION"]        = "輸入框位置",
    ["CHAT_EDITBOX_POSITION_DESC"]   = "輸入框的位置（上方或下方）",
    ["CHAT_EDITBOX_TOP"]             = "上方",
    ["CHAT_EDITBOX_BOTTOM"]          = "下方",
    ["CHAT_ENABLE_URL_COPY"]         = "URL 複製功能",
    ["CHAT_ENABLE_URL_COPY_DESC"]    = "點擊連結會開啟複製視窗",
    ["CHAT_ENABLE_COPY_BUTTON"]      = "顯示聊天複製按鈕",
    ["CHAT_ENABLE_COPY_BUTTON_DESC"] = "在左下角顯示一個按鈕以複製全部聊天",
    ["CHAT_FADE_TIME"]               = "聊天淡出時間",
    ["CHAT_FADE_TIME_DESC"]          = "聊天訊息淡出的秒數（預設：20）",
    ["CHAT_COPY_WINDOW_TITLE"]       = "複製聊天",
    ["CHAT_COPY_INSTRUCTION"]        = "按 CTRL+A 全選，CTRL+C 複製",
    ["CHAT_COPY_BUTTON_TOOLTIP"]     = "複製聊天記錄",
    ["CHAT_COPY_ALL_BUTTON"]         = "全部複製",
    ["CHAT_COPIED_SUCCESS"]          = "聊天已複製到剪貼簿！",

    ["CMD_HELP"]   = "可用指令：",
    ["CMD_CONFIG"] = "/rchat config - 開啟設定視窗",
    ["CMD_TOGGLE"] = "/rchat toggle - 切換 Chicchai 模式",
    ["CMD_RESET"]  = "/rchat reset - 重設為預設設定",

    ["CHICCHAI_ENABLED"]  = "已啟用",
    ["CHICCHAI_DISABLED"] = "已停用",

    ["MINIMAP_ICON_SHOW"]      = "顯示小地圖圖示",
    ["MINIMAP_ICON_SHOW_DESC"] = "顯示或隱藏小地圖圖示以快速訪問設定",
    ["MINIMAP_TOOLTIP"]        = "rChat\n|cff33ff99左鍵：|r 開啟設定\n|cff33ff99右鍵：|r 切換 Chicchai",
}

-----------------------------
-- Korean  koKR
-----------------------------
L.Locale.koKR = {
    ["ADDON_NAME"]    = "rChat",
    ["ADDON_LOADED"]  = "rChat을 성공적으로 불러왔습니다!",

    ["GUI_TITLE"]          = "rChat 설정",
    ["GUI_RELOAD_WARNING"] = "일부 설정은 UI를 다시 불러와야 적용됩니다.",
    ["GUI_RELOAD_BUTTON"]  = "UI 다시 불러오기",
    ["GUI_RELOAD_POPUP"]   = "설정이 변경되었습니다. 지금 UI를 다시 불러오시겠습니까?",
    ["GUI_YES"]            = "예",
    ["GUI_NO"]             = "아니오",

    ["TAB_GENERAL"]  = "일반",
    ["TAB_CHICCHAI"] = "Chicchai",
    ["TAB_CHAT"]     = "채팅",

    ["GENERAL_SLASHCMDS"]   = "슬래시 명령어",
    ["GENERAL_RESET_NOTE"]  = "모든 설정을 기본값으로 초기화합니다 (UI 다시 불러오기 필요).",
    ["GENERAL_RESET_BTN"]   = "기본값으로 초기화",
    ["GENERAL_ABOUT_SUB"]   = "현대적 · 최소화 · WoW 12.0+",
    ["GENERAL_OPEN_BTN"]    = "rChat 설정 열기",
    ["GENERAL_ADDON_DESC"]  = "WoW 12.0+를 위한 현대적인 채팅 애드온",

    ["SECTION_TIMING_ANIM"] = "타이밍 & 애니메이션",
    ["SECTION_BEHAVIOR"]    = "동작",
    ["SECTION_TIMING_POS"]  = "타이밍 & 위치",
    ["SECTION_MINIMAP"]     = "미니맵",

    ["CHICCHAI_HEADER"]           = "Chicchai (채팅 자동 최소화)",
    ["CHICCHAI_ENABLE"]           = "Chicchai 모드 활성화",
    ["CHICCHAI_ENABLE_DESC"]      = "비활성 상태 후 채팅 창을 자동으로 최소화",
    ["CHICCHAI_EDITMODE_NOTE"]    = "팁: 편집 모드(ESC > 편집 모드)를 사용하여 채팅 크기와 위치를 설정하세요.",
    ["CHICCHAI_ANIM_TIME"]        = "애니메이션 시간",
    ["CHICCHAI_ANIM_TIME_DESC"]   = "최소화/최대화 애니메이션 지속 시간 (초)",
    ["CHICCHAI_MIN_TIME"]         = "최소화 대기 시간",
    ["CHICCHAI_MIN_TIME_DESC"]    = "X초 비활성 후 자동으로 최소화",
    ["CHICCHAI_MIN_LINES"]        = "최소화 줄 수",
    ["CHICCHAI_MIN_LINES_DESC"]   = "최소화 시 표시되는 채팅 줄 수",
    ["CHICCHAI_MOUSE_OVER"]       = "마우스 오버 시 최대화",
    ["CHICCHAI_MOUSE_OVER_DESC"]  = "채팅 위에 마우스를 올리면 자동으로 최대화",
    ["CHICCHAI_COMBAT_LOCK"]      = "전투 중 잠금",
    ["CHICCHAI_COMBAT_LOCK_DESC"] = "전투 중 최대화 방지",
    ["CHICCHAI_COMBAT_LOG"]       = "전투 로그 항상 표시",
    ["CHICCHAI_COMBAT_LOG_DESC"]  = "전투 로그 창을 항상 최대화 상태로 유지",

    ["CHAT_HEADER"]                  = "채팅 설정",
    ["CHAT_ALWAYS_SHOW_TABS"]        = "탭 항상 표시",
    ["CHAT_ALWAYS_SHOW_TABS_DESC"]   = "채팅 탭이 항상 보이며 사라지지 않음",
    ["CHAT_SHOW_TIMESTAMP"]          = "타임스탬프 표시",
    ["CHAT_SHOW_TIMESTAMP_DESC"]     = "각 메시지 앞에 시간(시:분) 표시",
    ["CHAT_SHOW_PLAYER_LEVEL"]       = "플레이어 레벨 표시",
    ["CHAT_SHOW_PLAYER_LEVEL_DESC"]  = "플레이어 이름 왼쪽에 레벨 표시",
    ["CHAT_EDITBOX_POSITION"]        = "입력창 위치",
    ["CHAT_EDITBOX_POSITION_DESC"]   = "입력창 위치 (위 또는 아래)",
    ["CHAT_EDITBOX_TOP"]             = "위",
    ["CHAT_EDITBOX_BOTTOM"]          = "아래",
    ["CHAT_ENABLE_URL_COPY"]         = "URL 복사 기능",
    ["CHAT_ENABLE_URL_COPY_DESC"]    = "링크를 클릭하면 복사 창이 열림",
    ["CHAT_ENABLE_COPY_BUTTON"]      = "채팅 복사 버튼 표시",
    ["CHAT_ENABLE_COPY_BUTTON_DESC"] = "전체 채팅을 복사하는 버튼을 왼쪽 하단에 표시",
    ["CHAT_FADE_TIME"]               = "채팅 페이드 시간",
    ["CHAT_FADE_TIME_DESC"]          = "채팅 메시지가 사라지기까지의 초 (기본값: 20)",
    ["CHAT_COPY_WINDOW_TITLE"]       = "채팅 복사",
    ["CHAT_COPY_INSTRUCTION"]        = "CTRL+A로 전체 선택 후 CTRL+C로 복사",
    ["CHAT_COPY_BUTTON_TOOLTIP"]     = "채팅 기록 복사",
    ["CHAT_COPY_ALL_BUTTON"]         = "전체 복사",
    ["CHAT_COPIED_SUCCESS"]          = "채팅이 클립보드에 복사되었습니다!",

    ["CMD_HELP"]   = "사용 가능한 명령어:",
    ["CMD_CONFIG"] = "/rchat config - 설정 창 열기",
    ["CMD_TOGGLE"] = "/rchat toggle - Chicchai 모드 전환",
    ["CMD_RESET"]  = "/rchat reset - 기본값으로 초기화",

    ["CHICCHAI_ENABLED"]  = "활성화됨",
    ["CHICCHAI_DISABLED"] = "비활성화됨",

    ["MINIMAP_ICON_SHOW"]      = "미니맵 아이콘 표시",
    ["MINIMAP_ICON_SHOW_DESC"] = "빠른 설정 접근을 위한 미니맵 아이콘 표시 또는 숨기기",
    ["MINIMAP_TOOLTIP"]        = "rChat\n|cff33ff99좌클릭:|r 설정 열기\n|cff33ff99우클릭:|r Chicchai 전환",
}

-----------------------------
-- Italian  itIT
-----------------------------
L.Locale.itIT = {
    ["ADDON_NAME"]    = "rChat",
    ["ADDON_LOADED"]  = "rChat caricato con successo!",

    ["GUI_TITLE"]          = "Impostazioni rChat",
    ["GUI_RELOAD_WARNING"] = "Alcune impostazioni richiedono un ricaricamento dell'interfaccia.",
    ["GUI_RELOAD_BUTTON"]  = "Ricarica interfaccia",
    ["GUI_RELOAD_POPUP"]   = "Impostazioni modificate. Ricaricare l'interfaccia adesso?",
    ["GUI_YES"]            = "Sì",
    ["GUI_NO"]             = "No",

    ["TAB_GENERAL"]  = "Generale",
    ["TAB_CHICCHAI"] = "Chicchai",
    ["TAB_CHAT"]     = "Chat",

    ["GENERAL_SLASHCMDS"]   = "Comandi Slash",
    ["GENERAL_RESET_NOTE"]  = "Ripristina tutte le impostazioni ai valori predefiniti (richiede ricaricamento).",
    ["GENERAL_RESET_BTN"]   = "Ripristina predefiniti",
    ["GENERAL_ABOUT_SUB"]   = "Moderno · Minimale · WoW 12.0+",
    ["GENERAL_OPEN_BTN"]    = "Apri impostazioni rChat",
    ["GENERAL_ADDON_DESC"]  = "Un addon chat moderno per WoW 12.0+",

    ["SECTION_TIMING_ANIM"] = "Tempi e Animazione",
    ["SECTION_BEHAVIOR"]    = "Comportamento",
    ["SECTION_TIMING_POS"]  = "Tempi e Posizione",
    ["SECTION_MINIMAP"]     = "Minimappa",

    ["CHICCHAI_HEADER"]           = "Chicchai (Minimizzazione automatica chat)",
    ["CHICCHAI_ENABLE"]           = "Abilita modalità Chicchai",
    ["CHICCHAI_ENABLE_DESC"]      = "Minimizza automaticamente le finestre chat dopo l'inattività",
    ["CHICCHAI_EDITMODE_NOTE"]    = "Suggerimento: usa la Modalità Modifica (ESC > Modalità Modifica) per impostare dimensioni e posizione della chat.",
    ["CHICCHAI_ANIM_TIME"]        = "Durata animazione",
    ["CHICCHAI_ANIM_TIME_DESC"]   = "Durata dell'animazione di minimizzazione/massimizzazione (in secondi)",
    ["CHICCHAI_MIN_TIME"]         = "Minimizza dopo",
    ["CHICCHAI_MIN_TIME_DESC"]    = "Minimizza automaticamente dopo X secondi di inattività",
    ["CHICCHAI_MIN_LINES"]        = "Righe minimizzate",
    ["CHICCHAI_MIN_LINES_DESC"]   = "Numero di righe visibili quando minimizzato",
    ["CHICCHAI_MOUSE_OVER"]       = "Massimizza al passaggio del mouse",
    ["CHICCHAI_MOUSE_OVER_DESC"]  = "Massimizza automaticamente quando il mouse è sopra la chat",
    ["CHICCHAI_COMBAT_LOCK"]      = "Blocca in combattimento",
    ["CHICCHAI_COMBAT_LOCK_DESC"] = "Impedisce la massimizzazione durante il combattimento",
    ["CHICCHAI_COMBAT_LOG"]       = "Mostra sempre il registro di combattimento",
    ["CHICCHAI_COMBAT_LOG_DESC"]  = "Mantiene la finestra del registro di combattimento sempre massimizzata",

    ["CHAT_HEADER"]                  = "Impostazioni chat",
    ["CHAT_ALWAYS_SHOW_TABS"]        = "Mostra sempre le schede",
    ["CHAT_ALWAYS_SHOW_TABS_DESC"]   = "Le schede rimangono visibili e non svaniscono",
    ["CHAT_SHOW_TIMESTAMP"]          = "Mostra timestamp",
    ["CHAT_SHOW_TIMESTAMP_DESC"]     = "Visualizza l'orario (Ora:Minuto) prima di ogni messaggio",
    ["CHAT_SHOW_PLAYER_LEVEL"]       = "Mostra livello del giocatore",
    ["CHAT_SHOW_PLAYER_LEVEL_DESC"]  = "Visualizza il livello del giocatore a sinistra del nome",
    ["CHAT_EDITBOX_POSITION"]        = "Posizione casella di testo",
    ["CHAT_EDITBOX_POSITION_DESC"]   = "Posizione della casella di input (In alto o In basso)",
    ["CHAT_EDITBOX_TOP"]             = "In alto",
    ["CHAT_EDITBOX_BOTTOM"]          = "In basso",
    ["CHAT_ENABLE_URL_COPY"]         = "Funzione copia URL",
    ["CHAT_ENABLE_URL_COPY_DESC"]    = "Fare clic su un link apre una finestra di copia",
    ["CHAT_ENABLE_COPY_BUTTON"]      = "Mostra pulsante copia chat",
    ["CHAT_ENABLE_COPY_BUTTON_DESC"] = "Mostra un pulsante in basso a sinistra per copiare tutta la chat",
    ["CHAT_FADE_TIME"]               = "Tempo di dissolvenza",
    ["CHAT_FADE_TIME_DESC"]          = "Secondi prima che i messaggi svaniscano (predefinito: 20)",
    ["CHAT_COPY_WINDOW_TITLE"]       = "Copia chat",
    ["CHAT_COPY_INSTRUCTION"]        = "Premi CTRL+A per selezionare tutto e CTRL+C per copiare",
    ["CHAT_COPY_BUTTON_TOOLTIP"]     = "Copia cronologia chat",
    ["CHAT_COPY_ALL_BUTTON"]         = "Copia tutto",
    ["CHAT_COPIED_SUCCESS"]          = "Chat copiata negli appunti!",

    ["CMD_HELP"]   = "Comandi disponibili:",
    ["CMD_CONFIG"] = "/rchat config - Apri impostazioni",
    ["CMD_TOGGLE"] = "/rchat toggle - Attiva/disattiva Chicchai",
    ["CMD_RESET"]  = "/rchat reset - Ripristina impostazioni",

    ["CHICCHAI_ENABLED"]  = "attivato",
    ["CHICCHAI_DISABLED"] = "disattivato",

    ["MINIMAP_ICON_SHOW"]      = "Mostra icona minimappa",
    ["MINIMAP_ICON_SHOW_DESC"] = "Mostra o nasconde l'icona della minimappa per accesso rapido",
    ["MINIMAP_TOOLTIP"]        = "rChat\n|cff33ff99Clic sinistro:|r Apri impostazioni\n|cff33ff99Clic destro:|r Attiva/disattiva Chicchai",
}

-- ============================================================
-- Locale selection
-- ============================================================
local localeMap = {
    ["deDE"] = L.Locale.deDE,
    ["frFR"] = L.Locale.frFR,
    ["esES"] = L.Locale.esES,
    ["esMX"] = L.Locale.esMX,
    ["ptBR"] = L.Locale.ptBR,
    ["ruRU"] = L.Locale.ruRU,
    ["zhCN"] = L.Locale.zhCN,
    ["zhTW"] = L.Locale.zhTW,
    ["koKR"] = L.Locale.koKR,
    ["itIT"] = L.Locale.itIT,
}

L.Strings = localeMap[locale] or L.Locale.enUS

-- Fallback to English for any missing key
setmetatable(L.Strings, {
    __index = function(t, k)
        return L.Locale.enUS[k] or k
    end
})
