local _, NS = ...

local locale = GetLocale and GetLocale() or "enUS"

local es = {
    ADDON_LOADED = "Cargado",
    DISPLAY_NAME = "GlamorWeave",
    MINIMAP_SHOWN = "Boton del minimapa visible",
    MINIMAP_HIDDEN = "Boton del minimapa oculto",
    QUICK_ACCESS_NO_UI = "Abre las transfiguraciones para seleccionar atuendos desde el Armario",
    QUICK_ACCESS_EMPTY = "No hay atuendos disponibles para mostrar",
    QUICK_ACCESS_BLOCKED = "Blizzard puede bloquear acciones directas desde paneles personalizados. Usa la seleccion nativa cuando GlamorWeave la encuentre.",
    KEYBIND_COMBAT = "No puedo abrir las teclas en combate.",
    KEYBIND_OPENED = "Abri Opciones > Atajos de teclado > GlamorWeave.",
    KEYBIND_FALLBACK = "Abre Opciones > Atajos de teclado y busca GlamorWeave para asignar la tecla.",
    STATE_DEBUG = "Debug",
    STATE_TRACE = "Trace",
    STATE_DRYRUN = "DryRun",
    STATE_AUTOCONFIRM = "AutoConfirm",
    STATE_AUTOICON = "AutoIcon",
    STATE_MINIMAP = "Minimapa",
    STATE_CHANGED = "%s = %s",

    HELP_SAVEUI = "/gw saveui              - guarda una ranura desde la UI actual",
    HELP_DUMPUI = "/gw dumpui              - muestra ranuras",
    HELP_ROWS = "/gw rows                - muestra filas actuales",
    HELP_EXPORT = "/gw export              - genera cadena de exportacion",
    HELP_IMPORT = "/gw import <s>          - importa cadena de exportacion",
    HELP_APPLYALL = "/gw applyall            - aplica todos",
    HELP_CONFIRM = "/gw confirm             - intenta confirmar",
    HELP_APPLY = "/gw apply1..20          - aplica un atuendo",
    HELP_SAVEINDEX = "/gw saveindex1..20      - guarda pickerIndex y targetTexture de la ranura",
    HELP_DEBUG = "/gw debug               - activa/desactiva debug",
    HELP_TRACE = "/gw trace               - activa/desactiva trace",
    HELP_DRYRUN = "/gw dryrun              - activa/desactiva dryRunApply",
    HELP_AUTOCONFIRM = "/gw autoconfirm         - activa/desactiva autoConfirm",
    HELP_AUTOICON = "/gw autoicon            - activa/desactiva autoTryIcon",
    HELP_UI = "/gw ui                  - abre/cierra panel principal",
    HELP_DEV = "/gw dev                 - abre/cierra Herramientas de desarrollo",
    HELP_QUICK = "/gw quick               - abre/cierra Armario",
    HELP_MINIMAP = "/gw minimap             - muestra/oculta boton del minimapa",

    MAIN_TITLE = "GlamorWeave",
    MAIN_STATUS = "Plantilla guardada: %d atuendos",
    MAIN_STATUS_HINT_READY = "Transfiguracion lista. Ya puedes guardar o aplicar cambios.",
    MAIN_STATUS_HINT_NEED_TRANSMOG = "Abre el panel de Transfiguraciones para guardar o aplicar cambios.",
    MAIN_STATUS_OPEN = "abierto",
    MAIN_STATUS_CLOSED = "cerrado",
    MAIN_STATUS_READY = "listo",
    MAIN_STATUS_HIDDEN = "oculto",
    MAIN_QUICK = "Abrir Armario",
    MAIN_SAVE = "Guardar desde este personaje",
    MAIN_APPLY_ALL = "Aplicar a este personaje",
    MAIN_APPLY_ONE = "Aplicar ranura",
    MAIN_EXPORT = "Exportar",
    MAIN_IMPORT = "Importar",
    MAIN_APPLY_SLOT_LABEL = "Ranura",
    MAIN_APPLY_SLOT_INVALID = "Elige una ranura entre 1 y %d.",
    MAIN_DEVTOOLS = "DevTools",
    MAIN_DEVTOOLS_LABEL = "Avanzado",
    MAIN_DEVTOOLS_HINT = "Automatizacion, debug y pruebas manuales.",
    MAIN_KEYBINDS = "Configurar tecla",
    MAIN_KEYBINDS_CURRENT = "Tecla actual: %s",
    MAIN_KEYBINDS_UNBOUND = "Sin tecla asignada",
    MAIN_HELP_BUTTON = "Ayuda",
    MAIN_ACTIONS_TITLE = "Acciones principales",
    MAIN_OPTIONS_TITLE = "Panel",
    MAIN_AUTOCONFIRM = "Confirmar cambios automaticamente",
    MAIN_AUTOICON = "Intentar restaurar icono",
    MAIN_MINIMAP = "Mostrar boton del minimapa",
    MAIN_HELP_TITLE = "Ayuda rapida",
    MAIN_HELP_INTRO = "Usa GlamorWeave para guardar una plantilla en tu personaje fuente y aplicarla luego en tus alts.",
    MAIN_HELP_STEP1 = "1. Abre Configurar tecla y asigna una tecla para abrir el Armario.",
    MAIN_HELP_STEP2 = "2. En el personaje plantilla, abre el panel de Transfiguraciones y usa Guardar desde este personaje.",
    MAIN_HELP_STEP3 = "3. En el alt, abre el panel de Transfiguraciones y usa Aplicar a este personaje.",
    MAIN_HELP_STEP4 = "4. En el Armario puedes revisar atuendos y, si el panel de Transfiguraciones esta abierto, seleccionar la fila real del atuendo.",
    MAIN_HELP_STEP5 = "5. Si Blizzard bloquea una accion directa, GlamorWeave usa el metodo mas seguro disponible.",
    MAIN_HELP_FOOTER = "Compatibilidad: Hasta 20 Ranuras por cuenta.",
    MAIN_HELP_CLOSE = "Cerrar",
    MAIN_DATA_TITLE = "Plantilla",
    MAIN_EXPORT_POPUP_TITLE = "Exportar plantilla",
    MAIN_EXPORT_POPUP_DESC = "Haz click dentro del cuadro y usa Ctrl+C para copiar este texto.",
    MAIN_IMPORT_POPUP_TITLE = "Importar plantilla",
    MAIN_IMPORT_POPUP_DESC = "Haz click dentro del cuadro, pega con Ctrl+V y pulsa Importar.",
    MAIN_DATA_CLOSE = "Cerrar",
    MAIN_DATA_IMPORT = "Importar",
    MAIN_DATA_EXPORT = "Actualizar",
    MAIN_IMPORT_EMPTY = "Pega un texto de importacion antes de continuar.",
    MAIN_KEYBIND_POPUP_TITLE = "Configurar tecla",
    MAIN_KEYBIND_POPUP_DESC = "Pulsa una tecla para abrir o cerrar el Armario.",
    MAIN_KEYBIND_POPUP_HINT = "Escape cierra. Limpiar borra la tecla actual.",
    MAIN_KEYBIND_POPUP_CLEAR = "Limpiar",
    MAIN_KEYBIND_POPUP_CLOSE = "Cerrar",

    DEV_TITLE = "GlamorWeave Herramientas",
    DEV_STATUS = "Atuendos salvados en la plantilla: %d\nRegistro: %s  |  Traza: %s\nAuto confirmar: %s  |  Auto icono: %s  |  Simulacion: %s",
    DEV_SAVE_UI = "Guardar",
    DEV_DUMP_UI = "Ver plantilla",
    DEV_APPLY_ALL = "Aplicar todo",
    DEV_APPLY_SLOT = "Aplicar",
    DEV_EXPORT = "Exportar",
    DEV_IMPORT = "Importar",
    DEV_DEBUG = "Mostrar registros detallados",
    DEV_TRACE = "Traza",
    DEV_AUTOCONFIRM = "Auto confirmar",
    DEV_AUTOICON = "Auto icono",
    DEV_DRYRUN = "Simulacion",
    DEV_BOOL_ON = "Activo",
    DEV_BOOL_OFF = "Inactivo",
    DEV_HELP = "/gw dev abre/cierra este panel\nArrastra con click izquierdo",

    QUICK_TITLE = "GlamorWeave Armario",
    QUICK_STATUS_API = "Tus atuendos guardados",
    QUICK_STATUS_UI = "Atuendos detectados en transfiguracion",
    QUICK_STATUS_TEMPLATE = "Plantilla guardada en este personaje",
    QUICK_STATUS_WITH_COUNT = "%s: %d",
    QUICK_STATUS_SUMMARY = "Tecla: %s  |  Atuendos: %s",
    QUICK_REFRESH = "Actualizar",
    QUICK_OPEN_MAIN = "Panel",
    QUICK_OPEN_KEYBINDS = "Tecla",
    QUICK_EMPTY = "No hay atuendos para mostrar",
    QUICK_SLOT = "Ranura %d",
    QUICK_EMPTY_SLOT = "Vacio",
    QUICK_HINT = "Click en el icono: intenta aplicar ese atuendo. Click en la fila: abre acciones rapidas.",
    QUICK_HINT_FALLBACK = "Cuando el panel de Transfiguracion esta abierto, GlamorWeave intenta usar la fila real de Blizzard antes de caer a un fallback.",
    QUICK_HINT_ROW = "Click en una fila: abre la UI nativa de Blizzard y envia ese atuendo para intentar activarlo.",
    QUICK_TRANSMOG_READY = "lista",
    QUICK_TRANSMOG_CLOSED = "cerrado",
    QUICK_SECURE_TOOLTIP_TITLE = "Aplicar atuendo",
    QUICK_SECURE_TOOLTIP_BODY = "Click izquierdo: intenta aplicar este atuendo con el flujo seguro de Blizzard, incluso si el panel de Transfiguracion se encuentra cerrado.",
    QUICK_SECURE_PREPARE = "Aplicando cambios, espera por favor...",
    QUICK_SECURE_SUCCESS = "Atuendo aplicado: %s",
    QUICK_SECURE_FAILED = "No pude aplicar este atuendo con el acceso seguro: %s",
    APPLY_PROGRESS = "Aplicando cambios, espera por favor...",
    APPLY_DRYRUN = "DryRun activo. No se aplicaron cambios.",
    APPLY_CONFIRM_MANUAL = "Nombre listo. Confirma manualmente en la ventana de Blizzard.",
    APPLY_SLOT_DONE = "Ranura %d aplicada.",
    APPLY_SLOT_DONE_ICON = "Ranura %d aplicada. El icono necesita verificacion manual.",
    APPLY_SLOT_FAILED = "No pude aplicar la ranura %d.",
    APPLY_SLOT_SITUATIONS_FAILED = "No pude completar las situations de la ranura %d.",
    APPLY_ALL_STARTED = "Aplicando atuendos guardados, espera por favor...",
    APPLY_ALL_DONE = "Aplicacion terminada.",
    APPLY_ALL_SUMMARY = "Aplicacion terminada: %d/%d ranuras aplicadas.",
    APPLY_ALL_SUMMARY_ERRORS = "Aplicacion terminada: %d/%d ranuras aplicadas. Fallaron %d.",
    QUICK_OVERLAY_TITLE = "Acciones rapidas",
    QUICK_OVERLAY_SLOT = "Ranura: %s",
    QUICK_OVERLAY_OUTFIT_ID = "OutfitID: %s",
    QUICK_OVERLAY_SITUATIONS = "Situations: %s",
    QUICK_OVERLAY_NAME = "Nombre: %s",
    QUICK_OVERLAY_SELECT = "Seleccionar",
    QUICK_OVERLAY_APPLY = "Aplicar ranura",
    QUICK_OVERLAY_MAIN = "Abrir panel",
    QUICK_OVERLAY_KEYBIND = "Abrir keybinds",
    QUICK_OVERLAY_CLOSE = "Cerrar",
    QUICK_OVERLAY_DESC = "Seleccionar intenta usar la fila real de Blizzard. Aplicar ranura copia el template sincronizado a este personaje.",
    QUICK_OVERLAY_SELECT_ONLY = "Este atuendo puede seleccionarse en la UI nativa si el panel de Transfiguracion esta abierta.",
    QUICK_OVERLAY_UNAVAILABLE = "Este atuendo no tiene un slot sincronizable en este personaje.",
    QUICK_OVERLAY_NEED_TRANSMOG = "Abre el panel de Transfiguraciones para usar estas acciones en este atuendo.",
    QUICK_OVERLAY_COMBAT = "Sal de combate para usar estas acciones.",
    QUICK_SELECT_NEED_TRANSMOG = "No pude abrir el panel de Transfiguracion automaticamente. Abrela y vuelve a hacer click.",
    QUICK_SELECT_COMBAT = "No puedo seleccionar atuendos desde el Armario en combate.",
    QUICK_SELECT_SUCCESS = "Atuendo enviado a la fila nativa de Blizzard: %s",
    QUICK_SELECT_FALLBACK = "No encontre la fila real; use el fallback nativo de Blizzard para: %s",
    QUICK_SELECT_FAILED = "No pude seleccionar este atuendo desde la UI nativa: %s",

    MINIMAP_TITLE = "GlamorWeave",
    MINIMAP_LEFT = "Click izquierdo: abrir el Armario",
    MINIMAP_RIGHT = "Click derecho: abrir el panel principal",
    MINIMAP_MIDDLE = "Click medio: abrir las herramientas de desarrollo",
    MINIMAP_DRAG = "Arrastrar: mover alrededor del minimapa",

    BINDING_HEADER = "GlamorWeave",
    BINDING_TOGGLE_QUICK_ACCESS = "Abrir/cerrar Armario",

    UI_TEXT_SITUATIONS = "Situations",
    UI_TEXT_SITUATIONS_ES = "Situaciones",
    UI_TEXT_APPLY_CHANGES = "Apply Changes",
    UI_TEXT_APPLY_CHANGES_ES = "Aplicar cambios",
}

local en = {
    ADDON_LOADED = "Loaded",
    DISPLAY_NAME = "GlamorWeave",
    MINIMAP_SHOWN = "Minimap button shown",
    MINIMAP_HIDDEN = "Minimap button hidden",
    QUICK_ACCESS_NO_UI = "Open transmogrification to select outfits from Wardrobe",
    QUICK_ACCESS_EMPTY = "No outfits available to display",
    QUICK_ACCESS_BLOCKED = "Blizzard may block direct actions from custom panels. Use the native selection path when GlamorWeave can find it.",
    KEYBIND_COMBAT = "I can't open keybindings while in combat.",
    KEYBIND_OPENED = "Opened Game Settings > Keybindings > GlamorWeave.",
    KEYBIND_FALLBACK = "Open Game Settings > Keybindings and search for GlamorWeave.",
    STATE_DEBUG = "Debug",
    STATE_TRACE = "Trace",
    STATE_DRYRUN = "DryRun",
    STATE_AUTOCONFIRM = "AutoConfirm",
    STATE_AUTOICON = "AutoIcon",
    STATE_MINIMAP = "Minimap",
    STATE_CHANGED = "%s = %s",

    HELP_SAVEUI = "/gw saveui              - save template from current UI",
    HELP_DUMPUI = "/gw dumpui              - dump template",
    HELP_ROWS = "/gw rows                - dump current rows",
    HELP_EXPORT = "/gw export              - generate export string",
    HELP_IMPORT = "/gw import <s>          - import exported string",
    HELP_APPLY = "/gw apply1..20          - apply one slot",
    HELP_APPLYALL = "/gw applyall            - apply all slots",
    HELP_CONFIRM = "/gw confirm             - try confirm",
    HELP_SAVEINDEX = "/gw saveindex1..20      - save pickerIndex and targetTexture for slot",
    HELP_DEBUG = "/gw debug               - toggle debug",
    HELP_TRACE = "/gw trace               - toggle debugTrace",
    HELP_DRYRUN = "/gw dryrun              - toggle dryRunApply",
    HELP_AUTOCONFIRM = "/gw autoconfirm         - toggle autoConfirm",
    HELP_AUTOICON = "/gw autoicon            - toggle autoTryIcon",
    HELP_UI = "/gw ui                  - toggle main panel",
    HELP_DEV = "/gw dev                 - toggle DevTools",
    HELP_QUICK = "/gw quick               - toggle Wardrobe",
    HELP_MINIMAP = "/gw minimap             - show/hide minimap button",

    MAIN_TITLE = "GlamorWeave",
    MAIN_STATUS = "Saved template: %d outfits",
    MAIN_STATUS_HINT_READY = "Transmog is ready. You can save or apply changes now.",
    MAIN_STATUS_HINT_NEED_TRANSMOG = "Open Transmog to save or apply changes.",
    MAIN_STATUS_OPEN = "open",
    MAIN_STATUS_CLOSED = "closed",
    MAIN_STATUS_READY = "ready",
    MAIN_STATUS_HIDDEN = "hidden",
    MAIN_QUICK = "Open Wardrobe",
    MAIN_SAVE = "Save From This Character",
    MAIN_APPLY_ALL = "Apply To This Character",
    MAIN_APPLY_ONE = "Apply Slot",
    MAIN_EXPORT = "Export",
    MAIN_IMPORT = "Import",
    MAIN_APPLY_SLOT_LABEL = "Slot",
    MAIN_APPLY_SLOT_INVALID = "Choose a slot between 1 and %d.",
    MAIN_DEVTOOLS = "Open DevTools",
    MAIN_DEVTOOLS_LABEL = "Advanced",
    MAIN_DEVTOOLS_HINT = "Automation, debug, and manual testing.",
    MAIN_KEYBINDS = "Set Keybind",
    MAIN_KEYBINDS_CURRENT = "Current key: %s",
    MAIN_KEYBINDS_UNBOUND = "Unbound",
    MAIN_HELP_BUTTON = "Help",
    MAIN_ACTIONS_TITLE = "Main Actions",
    MAIN_OPTIONS_TITLE = "Panel",
    MAIN_AUTOCONFIRM = "Auto-confirm changes",
    MAIN_AUTOICON = "Try to restore icon",
    MAIN_MINIMAP = "Show minimap button",
    MAIN_HELP_TITLE = "Quick Help",
    MAIN_HELP_INTRO = "Use GlamorWeave to save a template on your source character, then apply it on your alts.",
    MAIN_HELP_STEP1 = "1. Open Set Keybind and assign a key to open Wardrobe.",
    MAIN_HELP_STEP2 = "2. On the source character, open Transmog and click Save From This Character.",
    MAIN_HELP_STEP3 = "3. On the alt, open Transmog and click Apply To This Character.",
    MAIN_HELP_STEP4 = "4. In Wardrobe you can review outfits and, when Transmog is open, select the real Blizzard row for that outfit.",
    MAIN_HELP_STEP5 = "5. If Blizzard blocks a direct action, GlamorWeave uses the safest fallback available.",
    MAIN_HELP_FOOTER = "Compatibility: up to 20 account-wide slots.",
    MAIN_HELP_CLOSE = "Close",
    MAIN_DATA_TITLE = "Template",
    MAIN_EXPORT_POPUP_TITLE = "Export Template",
    MAIN_EXPORT_POPUP_DESC = "Click inside the box and use Ctrl+C to copy this text.",
    MAIN_IMPORT_POPUP_TITLE = "Import Template",
    MAIN_IMPORT_POPUP_DESC = "Click inside the box, paste with Ctrl+V, and press Import.",
    MAIN_DATA_CLOSE = "Close",
    MAIN_DATA_IMPORT = "Import",
    MAIN_DATA_EXPORT = "Refresh",
    MAIN_IMPORT_EMPTY = "Paste an import string before continuing.",
    MAIN_KEYBIND_POPUP_TITLE = "Set Keybind",
    MAIN_KEYBIND_POPUP_DESC = "Press a key to open or close Wardrobe.",
    MAIN_KEYBIND_POPUP_HINT = "Escape closes. Clear removes the current key.",
    MAIN_KEYBIND_POPUP_CLEAR = "Clear",
    MAIN_KEYBIND_POPUP_CLOSE = "Close",

    DEV_TITLE = "GlamorWeave DevTools",
    DEV_STATUS = "Template rows: %d\nDebug: %s\nTrace: %s\nAutoConfirm: %s\nAutoIcon: %s\nDryRun: %s",
    DEV_SAVE_UI = "Save UI",
    DEV_DUMP_UI = "Dump UI",
    DEV_APPLY_ALL = "Apply All",
    DEV_APPLY_SLOT = "Apply Slot",
    DEV_EXPORT = "Export",
    DEV_IMPORT = "Import",
    DEV_DEBUG = "Show detailed logs",
    DEV_TRACE = "Trace",
    DEV_AUTOCONFIRM = "AutoConfirm",
    DEV_AUTOICON = "AutoIcon",
    DEV_DRYRUN = "DryRun",
    DEV_BOOL_ON = "On",
    DEV_BOOL_OFF = "Off",
    DEV_HELP = "/gw dev toggles this panel\nDrag with left click",

    QUICK_TITLE = "GlamorWeave Wardrobe",
    QUICK_STATUS_API = "Your saved outfits",
    QUICK_STATUS_UI = "Outfits detected in transmogrification",
    QUICK_STATUS_TEMPLATE = "Template saved on this character",
    QUICK_STATUS_WITH_COUNT = "%s: %d",
    QUICK_STATUS_SUMMARY = "Key: %s  |  Transmog: %s",
    QUICK_REFRESH = "Refresh",
    QUICK_OPEN_MAIN = "Panel",
    QUICK_OPEN_KEYBINDS = "Keybind",
    QUICK_EMPTY = "No outfits to display",
    QUICK_SLOT = "Slot %d",
    QUICK_EMPTY_SLOT = "Empty",
    QUICK_HINT = "Click the icon to try applying that outfit. Click the row to open quick actions.",
    QUICK_HINT_FALLBACK = "When Transmog is open, GlamorWeave tries the real Blizzard row before using a fallback.",
    QUICK_HINT_ROW = "Click a row to open the native Blizzard UI and send that outfit to try making it active.",
    QUICK_TRANSMOG_READY = "ready",
    QUICK_TRANSMOG_CLOSED = "closed",
    QUICK_SECURE_TOOLTIP_TITLE = "Apply Outfit",
    QUICK_SECURE_TOOLTIP_BODY = "Left click: tries to apply this outfit through Blizzard's safe flow, even if Transmog was closed.",
    QUICK_SECURE_PREPARE = "Applying changes, wait please...",
    QUICK_SECURE_SUCCESS = "Applied outfit: %s",
    QUICK_SECURE_FAILED = "I couldn't apply this outfit through the safe access path: %s",
    APPLY_PROGRESS = "Applying changes, wait please...",
    APPLY_DRYRUN = "DryRun is enabled. No changes were applied.",
    APPLY_CONFIRM_MANUAL = "The name is ready. Please confirm it manually in the Blizzard window.",
    APPLY_SLOT_DONE = "Slot %d applied.",
    APPLY_SLOT_DONE_ICON = "Slot %d applied. The icon still needs manual verification.",
    APPLY_SLOT_FAILED = "I couldn't apply slot %d.",
    APPLY_SLOT_SITUATIONS_FAILED = "I couldn't finish the situations for slot %d.",
    APPLY_ALL_STARTED = "Applying saved outfits, wait please...",
    APPLY_ALL_DONE = "Apply finished.",
    APPLY_ALL_SUMMARY = "Apply finished: %d/%d slots applied.",
    APPLY_ALL_SUMMARY_ERRORS = "Apply finished: %d/%d slots applied. %d failed.",
    QUICK_OVERLAY_TITLE = "Quick Actions",
    QUICK_OVERLAY_SLOT = "Slot: %s",
    QUICK_OVERLAY_OUTFIT_ID = "OutfitID: %s",
    QUICK_OVERLAY_SITUATIONS = "Situations: %s",
    QUICK_OVERLAY_NAME = "Name: %s",
    QUICK_OVERLAY_SELECT = "Select",
    QUICK_OVERLAY_APPLY = "Apply Slot",
    QUICK_OVERLAY_MAIN = "Open Panel",
    QUICK_OVERLAY_KEYBIND = "Open Keybinds",
    QUICK_OVERLAY_CLOSE = "Close",
    QUICK_OVERLAY_DESC = "Select tries to use the real Blizzard row. Apply Slot copies the synced template to this character.",
    QUICK_OVERLAY_SELECT_ONLY = "This outfit can be selected in the native UI while Transmog is open.",
    QUICK_OVERLAY_UNAVAILABLE = "This outfit does not have a syncable slot on this character.",
    QUICK_OVERLAY_NEED_TRANSMOG = "Open Transmog to use these actions for this outfit.",
    QUICK_OVERLAY_COMBAT = "Leave combat to use these actions.",
    QUICK_SELECT_NEED_TRANSMOG = "I couldn't open Transmog automatically. Open it and click again.",
    QUICK_SELECT_COMBAT = "I can't select outfits from Wardrobe while in combat.",
    QUICK_SELECT_SUCCESS = "Sent outfit to the native Blizzard row: %s",
    QUICK_SELECT_FALLBACK = "Couldn't find the real row; used the native Blizzard fallback for: %s",
    QUICK_SELECT_FAILED = "I couldn't select this outfit from the native UI: %s",

    MINIMAP_TITLE = "GlamorWeave",
    MINIMAP_LEFT = "Left click: open Wardrobe",
    MINIMAP_RIGHT = "Right click: open main panel",
    MINIMAP_MIDDLE = "Middle click: open DevTools",
    MINIMAP_DRAG = "Drag: move around minimap",

    BINDING_HEADER = "GlamorWeave",
    BINDING_TOGGLE_QUICK_ACCESS = "Toggle Wardrobe",

    UI_TEXT_SITUATIONS = "Situations",
    UI_TEXT_SITUATIONS_ES = "Situaciones",
    UI_TEXT_APPLY_CHANGES = "Apply Changes",
    UI_TEXT_APPLY_CHANGES_ES = "Aplicar cambios",
}

local function WithFallback(overrides, fallback)
    return setmetatable(overrides, { __index = fallback })
end

local fr = WithFallback({
    ADDON_LOADED = "Chargé",
    MINIMAP_SHOWN = "Bouton de minicarte affiché",
    MINIMAP_HIDDEN = "Bouton de minicarte masqué",
    QUICK_ACCESS_NO_UI = "Ouvrez la transmogrification pour sélectionner des tenues depuis la garde-robe",
    QUICK_ACCESS_EMPTY = "Aucune tenue à afficher",
    KEYBIND_COMBAT = "Impossible d'ouvrir les raccourcis en combat.",
    KEYBIND_OPENED = "Ouverture de Options > Raccourcis clavier > GlamorWeave.",
    KEYBIND_FALLBACK = "Ouvrez Options > Raccourcis clavier et recherchez GlamorWeave.",
    MAIN_STATUS = "Modèle enregistré : %d tenues",
    MAIN_STATUS_HINT_READY = "La transmogrification est prête. Vous pouvez enregistrer ou appliquer des changements.",
    MAIN_STATUS_HINT_NEED_TRANSMOG = "Ouvrez la transmogrification pour enregistrer ou appliquer des changements.",
    MAIN_STATUS_OPEN = "ouvert",
    MAIN_STATUS_CLOSED = "fermé",
    MAIN_STATUS_READY = "prêt",
    MAIN_STATUS_HIDDEN = "masqué",
    MAIN_QUICK = "Ouvrir la garde-robe",
    MAIN_SAVE = "Enregistrer depuis ce personnage",
    MAIN_APPLY_ALL = "Appliquer à ce personnage",
    MAIN_APPLY_ONE = "Appliquer l'emplacement",
    MAIN_EXPORT = "Exporter",
    MAIN_IMPORT = "Importer",
    MAIN_APPLY_SLOT_LABEL = "Emplacement",
    MAIN_APPLY_SLOT_INVALID = "Choisissez un emplacement entre 1 et %d.",
    MAIN_DEVTOOLS = "Outils dev",
    MAIN_DEVTOOLS_LABEL = "Avancé",
    MAIN_DEVTOOLS_HINT = "Automatisation, débogage et tests manuels.",
    MAIN_KEYBINDS = "Configurer la touche",
    MAIN_KEYBINDS_CURRENT = "Touche actuelle : %s",
    MAIN_KEYBINDS_UNBOUND = "Non assignée",
    MAIN_HELP_BUTTON = "Aide",
    MAIN_ACTIONS_TITLE = "Actions principales",
    MAIN_OPTIONS_TITLE = "Panneau",
    MAIN_MINIMAP = "Afficher le bouton de minicarte",
    MAIN_HELP_TITLE = "Aide rapide",
    MAIN_HELP_INTRO = "Utilisez GlamorWeave pour enregistrer un modèle sur votre personnage source, puis l'appliquer à vos alts.",
    MAIN_HELP_STEP1 = "1. Ouvrez Configurer la touche et attribuez une touche pour ouvrir la garde-robe.",
    MAIN_HELP_STEP2 = "2. Sur le personnage source, ouvrez la transmogrification et cliquez sur Enregistrer depuis ce personnage.",
    MAIN_HELP_STEP3 = "3. Sur l'alt, ouvrez la transmogrification et cliquez sur Appliquer à ce personnage.",
    MAIN_HELP_STEP4 = "4. Dans la garde-robe, vous pouvez consulter les tenues et, si la transmogrification est ouverte, sélectionner la vraie ligne Blizzard.",
    MAIN_HELP_STEP5 = "5. Si Blizzard bloque une action directe, GlamorWeave utilise la solution la plus sûre disponible.",
    MAIN_HELP_FOOTER = "Compatibilité : jusqu'à 20 emplacements par compte.",
    MAIN_HELP_CLOSE = "Fermer",
    MAIN_DATA_TITLE = "Modèle",
    MAIN_EXPORT_POPUP_TITLE = "Exporter le modèle",
    MAIN_EXPORT_POPUP_DESC = "Cliquez dans la zone et utilisez Ctrl+C pour copier ce texte.",
    MAIN_IMPORT_POPUP_TITLE = "Importer le modèle",
    MAIN_IMPORT_POPUP_DESC = "Cliquez dans la zone, collez avec Ctrl+V, puis cliquez sur Importer.",
    MAIN_DATA_CLOSE = "Fermer",
    MAIN_DATA_IMPORT = "Importer",
    MAIN_DATA_EXPORT = "Actualiser",
    MAIN_IMPORT_EMPTY = "Collez un texte d'importation avant de continuer.",
    DEV_TITLE = "GlamorWeave Outils",
    DEV_STATUS = "Tenues enregistrées dans le modèle : %d\nJournal : %s  |  Trace : %s\nConfirmation auto : %s  |  Icône auto : %s  |  Simulation : %s",
    DEV_SAVE_UI = "Enregistrer",
    DEV_DUMP_UI = "Voir le modèle",
    DEV_APPLY_ALL = "Tout appliquer",
    DEV_APPLY_SLOT = "Appliquer",
    DEV_EXPORT = "Exporter",
    DEV_IMPORT = "Importer",
    DEV_DEBUG = "Afficher les journaux détaillés",
    DEV_TRACE = "Trace",
    DEV_AUTOCONFIRM = "Confirmation auto",
    DEV_AUTOICON = "Icône auto",
    DEV_DRYRUN = "Simulation",
    DEV_BOOL_ON = "Actif",
    DEV_BOOL_OFF = "Inactif",
    DEV_HELP = "/gw dev ouvre/ferme ce panneau\nGlissez avec clic gauche",
    QUICK_TITLE = "GlamorWeave Garde-robe",
    QUICK_STATUS_API = "Vos tenues enregistrées",
    QUICK_STATUS_UI = "Tenues détectées dans la transmogrification",
    QUICK_STATUS_TEMPLATE = "Modèle enregistré sur ce personnage",
    QUICK_STATUS_WITH_COUNT = "%s : %d",
    QUICK_STATUS_SUMMARY = "Touche : %s  |  Tenues : %s",
    QUICK_OPEN_MAIN = "Panneau",
    QUICK_OPEN_KEYBINDS = "Touche",
    QUICK_EMPTY = "Aucune tenue à afficher",
    QUICK_SLOT = "Emplacement %d",
    QUICK_EMPTY_SLOT = "Vide",
    QUICK_HINT_ROW = "Cliquez sur une ligne pour ouvrir l'interface Blizzard et y envoyer cette tenue.",
    QUICK_TRANSMOG_READY = "prête",
    QUICK_TRANSMOG_CLOSED = "fermée",
    QUICK_SECURE_TOOLTIP_TITLE = "Appliquer la tenue",
    QUICK_SECURE_PREPARE = "Application des changements, veuillez patienter...",
    QUICK_SECURE_SUCCESS = "Tenue appliquée : %s",
    QUICK_SECURE_FAILED = "Impossible d'appliquer cette tenue via l'accès sécurisé : %s",
    APPLY_PROGRESS = "Application des changements, veuillez patienter...",
    APPLY_DRYRUN = "La simulation est active. Aucun changement n'a été appliqué.",
    APPLY_CONFIRM_MANUAL = "Le nom est prêt. Veuillez confirmer manuellement dans la fenêtre Blizzard.",
    APPLY_SLOT_DONE = "Emplacement %d appliqué.",
    APPLY_SLOT_DONE_ICON = "Emplacement %d appliqué. L'icône doit encore être vérifiée manuellement.",
    APPLY_SLOT_FAILED = "Impossible d'appliquer l'emplacement %d.",
    APPLY_SLOT_SITUATIONS_FAILED = "Impossible de terminer les situations pour l'emplacement %d.",
    APPLY_ALL_STARTED = "Application des tenues enregistrées, veuillez patienter...",
    APPLY_ALL_DONE = "Application terminée.",
    APPLY_ALL_SUMMARY = "Application terminée : %d/%d emplacements appliqués.",
    APPLY_ALL_SUMMARY_ERRORS = "Application terminée : %d/%d emplacements appliqués. %d échecs.",
    MINIMAP_LEFT = "Clic gauche : ouvrir la garde-robe",
    MINIMAP_RIGHT = "Clic droit : ouvrir le panneau principal",
    MINIMAP_MIDDLE = "Clic du milieu : ouvrir les outils",
    MINIMAP_DRAG = "Glisser : déplacer autour de la minicarte",
    BINDING_TOGGLE_QUICK_ACCESS = "Ouvrir/fermer la garde-robe",
    HELP_SAVEUI = "/gw saveui              - enregistre le modèle depuis l'interface actuelle",
    HELP_DUMPUI = "/gw dumpui              - affiche le modèle",
    HELP_ROWS = "/gw rows                - affiche les lignes actuelles",
    HELP_EXPORT = "/gw export              - génère une chaîne d'export",
    HELP_IMPORT = "/gw import <s>          - importe une chaîne exportée",
    HELP_APPLY = "/gw apply1..20          - applique un emplacement",
    HELP_APPLYALL = "/gw applyall            - applique tous les emplacements",
    HELP_CONFIRM = "/gw confirm             - tente de confirmer",
    HELP_SAVEINDEX = "/gw saveindex1..20      - enregistre pickerIndex et targetTexture de l'emplacement",
    HELP_DEBUG = "/gw debug               - active/désactive le debug",
    HELP_TRACE = "/gw trace               - active/désactive la trace",
    HELP_DRYRUN = "/gw dryrun              - active/désactive la simulation",
    HELP_AUTOCONFIRM = "/gw autoconfirm         - active/désactive la confirmation auto",
    HELP_AUTOICON = "/gw autoicon            - active/désactive l'icône auto",
    HELP_UI = "/gw ui                  - ouvre/ferme le panneau principal",
    HELP_DEV = "/gw dev                 - ouvre/ferme les outils",
    HELP_QUICK = "/gw quick               - ouvre/ferme la garde-robe",
    HELP_MINIMAP = "/gw minimap             - affiche/masque le bouton de minicarte",
    QUICK_HINT = "Cliquez sur une ligne pour ouvrir l'interface Blizzard et y envoyer cette tenue.",
    QUICK_HINT_FALLBACK = "Quand la transmogrification est ouverte, GlamorWeave essaie d'utiliser la vraie ligne Blizzard avant d'utiliser un secours.",
    UI_TEXT_SITUATIONS_ES = "Situations",
}, en)

local de = WithFallback({
    ADDON_LOADED = "Geladen",
    MINIMAP_SHOWN = "Minikarten-Schaltfläche angezeigt",
    MINIMAP_HIDDEN = "Minikarten-Schaltfläche verborgen",
    QUICK_ACCESS_NO_UI = "Öffne die Transmogrifikation, um Outfits aus der Garderobe auszuwählen",
    QUICK_ACCESS_EMPTY = "Keine Outfits zum Anzeigen",
    KEYBIND_COMBAT = "Im Kampf kann ich die Tastaturbelegung nicht öffnen.",
    KEYBIND_OPENED = "Optionen > Tastenbelegung > GlamorWeave geöffnet.",
    KEYBIND_FALLBACK = "Öffne Optionen > Tastenbelegung und suche nach GlamorWeave.",
    MAIN_STATUS = "Gespeicherte Vorlage: %d Outfits",
    MAIN_STATUS_HINT_READY = "Die Transmogrifikation ist bereit. Du kannst jetzt speichern oder anwenden.",
    MAIN_STATUS_HINT_NEED_TRANSMOG = "Öffne die Transmogrifikation, um zu speichern oder anzuwenden.",
    MAIN_STATUS_OPEN = "offen",
    MAIN_STATUS_CLOSED = "geschlossen",
    MAIN_STATUS_READY = "bereit",
    MAIN_STATUS_HIDDEN = "verborgen",
    MAIN_QUICK = "Garderobe öffnen",
    MAIN_SAVE = "Von diesem Charakter speichern",
    MAIN_APPLY_ALL = "Auf diesen Charakter anwenden",
    MAIN_APPLY_ONE = "Platz anwenden",
    MAIN_EXPORT = "Exportieren",
    MAIN_IMPORT = "Importieren",
    MAIN_APPLY_SLOT_LABEL = "Platz",
    MAIN_APPLY_SLOT_INVALID = "Wähle einen Platz zwischen 1 und %d.",
    MAIN_DEVTOOLS = "DevTools",
    MAIN_DEVTOOLS_LABEL = "Erweitert",
    MAIN_DEVTOOLS_HINT = "Automatisierung, Debugging und manuelle Tests.",
    MAIN_KEYBINDS = "Taste festlegen",
    MAIN_KEYBINDS_CURRENT = "Aktuelle Taste: %s",
    MAIN_KEYBINDS_UNBOUND = "Nicht belegt",
    MAIN_HELP_BUTTON = "Hilfe",
    MAIN_ACTIONS_TITLE = "Hauptaktionen",
    MAIN_OPTIONS_TITLE = "Panel",
    MAIN_MINIMAP = "Minikarten-Schaltfläche anzeigen",
    MAIN_HELP_TITLE = "Kurzhilfe",
    MAIN_HELP_FOOTER = "Kompatibilität: Bis zu 20 accountweite Plätze.",
    MAIN_HELP_CLOSE = "Schließen",
    MAIN_DATA_TITLE = "Vorlage",
    MAIN_EXPORT_POPUP_TITLE = "Vorlage exportieren",
    MAIN_EXPORT_POPUP_DESC = "Klicke in das Feld und nutze Strg+C, um den Text zu kopieren.",
    MAIN_IMPORT_POPUP_TITLE = "Vorlage importieren",
    MAIN_IMPORT_POPUP_DESC = "Klicke in das Feld, füge mit Strg+V ein und drücke Importieren.",
    MAIN_DATA_CLOSE = "Schließen",
    MAIN_DATA_IMPORT = "Importieren",
    MAIN_DATA_EXPORT = "Aktualisieren",
    MAIN_IMPORT_EMPTY = "Füge einen Import-Text ein, bevor du fortfährst.",
    DEV_TITLE = "GlamorWeave Werkzeuge",
    DEV_STATUS = "Gespeicherte Outfits in der Vorlage: %d\nProtokoll: %s  |  Spur: %s\nAuto-Bestätigung: %s  |  Auto-Symbol: %s  |  Simulation: %s",
    DEV_SAVE_UI = "Speichern",
    DEV_DUMP_UI = "Vorlage ansehen",
    DEV_APPLY_ALL = "Alles anwenden",
    DEV_APPLY_SLOT = "Anwenden",
    DEV_EXPORT = "Exportieren",
    DEV_IMPORT = "Importieren",
    DEV_DEBUG = "Detaillierte Protokolle anzeigen",
    DEV_TRACE = "Spur",
    DEV_AUTOCONFIRM = "Auto-Bestätigung",
    DEV_AUTOICON = "Auto-Symbol",
    DEV_DRYRUN = "Simulation",
    DEV_BOOL_ON = "An",
    DEV_BOOL_OFF = "Aus",
    DEV_HELP = "/gw dev öffnet/schließt dieses Panel\nMit linker Maustaste ziehen",
    QUICK_TITLE = "GlamorWeave Garderobe",
    QUICK_STATUS_API = "Deine gespeicherten Outfits",
    QUICK_STATUS_UI = "In der Transmogrifikation erkannte Outfits",
    QUICK_STATUS_TEMPLATE = "Auf diesem Charakter gespeicherte Vorlage",
    QUICK_STATUS_WITH_COUNT = "%s: %d",
    QUICK_STATUS_SUMMARY = "Taste: %s  |  Outfits: %s",
    QUICK_OPEN_MAIN = "Panel",
    QUICK_OPEN_KEYBINDS = "Taste",
    QUICK_EMPTY = "Keine Outfits zum Anzeigen",
    QUICK_SLOT = "Platz %d",
    QUICK_EMPTY_SLOT = "Leer",
    QUICK_TRANSMOG_READY = "bereit",
    QUICK_TRANSMOG_CLOSED = "geschlossen",
    APPLY_PROGRESS = "Änderungen werden angewendet, bitte warten...",
    APPLY_SLOT_DONE = "Platz %d angewendet.",
    APPLY_ALL_DONE = "Anwendung abgeschlossen.",
    MINIMAP_LEFT = "Linksklick: Garderobe öffnen",
    MINIMAP_RIGHT = "Rechtsklick: Hauptpanel öffnen",
    MINIMAP_MIDDLE = "Mittelklick: Werkzeuge öffnen",
    MINIMAP_DRAG = "Ziehen: um die Minikarte bewegen",
    BINDING_TOGGLE_QUICK_ACCESS = "Garderobe umschalten",
    HELP_SAVEUI = "/gw saveui              - Vorlage aus der aktuellen UI speichern",
    HELP_DUMPUI = "/gw dumpui              - Vorlage anzeigen",
    HELP_ROWS = "/gw rows                - aktuelle Zeilen anzeigen",
    HELP_EXPORT = "/gw export              - Export-Zeichenkette erzeugen",
    HELP_IMPORT = "/gw import <s>          - exportierte Zeichenkette importieren",
    HELP_APPLY = "/gw apply1..20          - einen Platz anwenden",
    HELP_APPLYALL = "/gw applyall            - alle Plätze anwenden",
    HELP_CONFIRM = "/gw confirm             - Bestätigung versuchen",
    HELP_SAVEINDEX = "/gw saveindex1..20      - pickerIndex und targetTexture des Platzes speichern",
    HELP_DEBUG = "/gw debug               - Debug umschalten",
    HELP_TRACE = "/gw trace               - Trace umschalten",
    HELP_DRYRUN = "/gw dryrun              - Simulation umschalten",
    HELP_AUTOCONFIRM = "/gw autoconfirm         - Auto-Bestätigung umschalten",
    HELP_AUTOICON = "/gw autoicon            - Auto-Symbol umschalten",
    HELP_UI = "/gw ui                  - Hauptpanel öffnen/schließen",
    HELP_DEV = "/gw dev                 - Werkzeuge öffnen/schließen",
    HELP_QUICK = "/gw quick               - Garderobe öffnen/schließen",
    HELP_MINIMAP = "/gw minimap             - Minikarten-Schaltfläche zeigen/verstecken",
    MAIN_HELP_INTRO = "Nutze GlamorWeave, um auf deinem Quellcharakter eine Vorlage zu speichern und sie dann auf deinen Twinks anzuwenden.",
    MAIN_HELP_STEP1 = "1. Öffne Taste festlegen und weise eine Taste zum Öffnen der Garderobe zu.",
    MAIN_HELP_STEP2 = "2. Öffne auf dem Quellcharakter die Transmogrifikation und klicke auf Von diesem Charakter speichern.",
    MAIN_HELP_STEP3 = "3. Öffne auf dem Twink die Transmogrifikation und klicke auf Auf diesen Charakter anwenden.",
    MAIN_HELP_STEP4 = "4. In der Garderobe kannst du Outfits prüfen und bei geöffneter Transmogrifikation die echte Blizzard-Zeile auswählen.",
    MAIN_HELP_STEP5 = "5. Wenn Blizzard eine direkte Aktion blockiert, nutzt GlamorWeave den sichersten verfügbaren Weg.",
    QUICK_HINT = "Klicke auf eine Zeile, um die native Blizzard-UI zu öffnen und dieses Outfit dorthin zu senden.",
    QUICK_HINT_FALLBACK = "Wenn die Transmogrifikation geöffnet ist, versucht GlamorWeave zuerst die echte Blizzard-Zeile zu verwenden.",
    QUICK_HINT_ROW = "Klicke auf eine Zeile, um die native Blizzard-UI zu öffnen und dieses Outfit dorthin zu senden.",
}, en)

local pt = WithFallback({
    ADDON_LOADED = "Carregado",
    MINIMAP_SHOWN = "Botão do minimapa exibido",
    MINIMAP_HIDDEN = "Botão do minimapa oculto",
    QUICK_ACCESS_NO_UI = "Abra a transmogrificação para selecionar visuais do Guarda-roupa",
    QUICK_ACCESS_EMPTY = "Nenhum visual para mostrar",
    KEYBIND_COMBAT = "Não posso abrir os atalhos em combate.",
    KEYBIND_OPENED = "Abri Opções > Atalhos do teclado > GlamorWeave.",
    KEYBIND_FALLBACK = "Abra Opções > Atalhos do teclado e procure por GlamorWeave.",
    MAIN_STATUS = "Modelo salvo: %d visuais",
    MAIN_STATUS_HINT_READY = "A transmogrificação está pronta. Você já pode salvar ou aplicar alterações.",
    MAIN_STATUS_HINT_NEED_TRANSMOG = "Abra a transmogrificação para salvar ou aplicar alterações.",
    MAIN_STATUS_OPEN = "aberta",
    MAIN_STATUS_CLOSED = "fechada",
    MAIN_STATUS_READY = "pronta",
    MAIN_STATUS_HIDDEN = "oculto",
    MAIN_QUICK = "Abrir Guarda-roupa",
    MAIN_SAVE = "Salvar deste personagem",
    MAIN_APPLY_ALL = "Aplicar a este personagem",
    MAIN_APPLY_ONE = "Aplicar espaço",
    MAIN_EXPORT = "Exportar",
    MAIN_IMPORT = "Importar",
    MAIN_APPLY_SLOT_LABEL = "Espaço",
    MAIN_APPLY_SLOT_INVALID = "Escolha um espaço entre 1 e %d.",
    MAIN_DEVTOOLS = "Ferramentas",
    MAIN_DEVTOOLS_LABEL = "Avançado",
    MAIN_DEVTOOLS_HINT = "Automação, depuração e testes manuais.",
    MAIN_KEYBINDS = "Configurar tecla",
    MAIN_KEYBINDS_CURRENT = "Tecla atual: %s",
    MAIN_KEYBINDS_UNBOUND = "Sem tecla",
    MAIN_HELP_BUTTON = "Ajuda",
    MAIN_ACTIONS_TITLE = "Ações principais",
    MAIN_OPTIONS_TITLE = "Painel",
    MAIN_MINIMAP = "Mostrar botão do minimapa",
    MAIN_HELP_TITLE = "Ajuda rápida",
    MAIN_HELP_FOOTER = "Compatibilidade: até 20 espaços por conta.",
    MAIN_HELP_CLOSE = "Fechar",
    MAIN_DATA_TITLE = "Modelo",
    MAIN_EXPORT_POPUP_TITLE = "Exportar modelo",
    MAIN_EXPORT_POPUP_DESC = "Clique dentro da caixa e use Ctrl+C para copiar este texto.",
    MAIN_IMPORT_POPUP_TITLE = "Importar modelo",
    MAIN_IMPORT_POPUP_DESC = "Clique dentro da caixa, cole com Ctrl+V e pressione Importar.",
    MAIN_DATA_CLOSE = "Fechar",
    MAIN_DATA_IMPORT = "Importar",
    MAIN_DATA_EXPORT = "Atualizar",
    MAIN_IMPORT_EMPTY = "Cole um texto de importação antes de continuar.",
    DEV_TITLE = "GlamorWeave Ferramentas",
    DEV_STATUS = "Visuais salvos no modelo: %d\nRegistro: %s  |  Rastro: %s\nConfirmação automática: %s  |  Ícone automático: %s  |  Simulação: %s",
    DEV_SAVE_UI = "Salvar",
    DEV_DUMP_UI = "Ver modelo",
    DEV_APPLY_ALL = "Aplicar tudo",
    DEV_APPLY_SLOT = "Aplicar",
    DEV_EXPORT = "Exportar",
    DEV_IMPORT = "Importar",
    DEV_DEBUG = "Mostrar registros detalhados",
    DEV_TRACE = "Rastro",
    DEV_AUTOCONFIRM = "Confirmação automática",
    DEV_AUTOICON = "Ícone automático",
    DEV_DRYRUN = "Simulação",
    DEV_BOOL_ON = "Ativo",
    DEV_BOOL_OFF = "Inativo",
    DEV_HELP = "/gw dev abre/fecha este painel\nArraste com o clique esquerdo",
    QUICK_TITLE = "GlamorWeave Guarda-roupa",
    QUICK_STATUS_API = "Seus visuais salvos",
    QUICK_STATUS_TEMPLATE = "Modelo salvo neste personagem",
    QUICK_STATUS_SUMMARY = "Tecla: %s  |  Visuais: %s",
    QUICK_OPEN_MAIN = "Painel",
    QUICK_OPEN_KEYBINDS = "Tecla",
    QUICK_SLOT = "Espaço %d",
    QUICK_EMPTY_SLOT = "Vazio",
    QUICK_TRANSMOG_READY = "pronta",
    QUICK_TRANSMOG_CLOSED = "fechada",
    APPLY_PROGRESS = "Aplicando alterações, aguarde...",
    APPLY_SLOT_DONE = "Espaço %d aplicado.",
    APPLY_ALL_DONE = "Aplicação concluída.",
    MINIMAP_LEFT = "Clique esquerdo: abrir Guarda-roupa",
    MINIMAP_RIGHT = "Clique direito: abrir painel principal",
    MINIMAP_MIDDLE = "Clique do meio: abrir ferramentas",
    MINIMAP_DRAG = "Arrastar: mover ao redor do minimapa",
    BINDING_TOGGLE_QUICK_ACCESS = "Abrir/fechar Guarda-roupa",
    HELP_SAVEUI = "/gw saveui              - salva o modelo da interface atual",
    HELP_DUMPUI = "/gw dumpui              - mostra o modelo",
    HELP_ROWS = "/gw rows                - mostra as linhas atuais",
    HELP_EXPORT = "/gw export              - gera uma string de exportação",
    HELP_IMPORT = "/gw import <s>          - importa uma string exportada",
    HELP_APPLY = "/gw apply1..20          - aplica um espaço",
    HELP_APPLYALL = "/gw applyall            - aplica todos os espaços",
    HELP_CONFIRM = "/gw confirm             - tenta confirmar",
    HELP_SAVEINDEX = "/gw saveindex1..20      - salva pickerIndex e targetTexture do espaço",
    HELP_DEBUG = "/gw debug               - ativa/desativa o debug",
    HELP_TRACE = "/gw trace               - ativa/desativa o rastro",
    HELP_DRYRUN = "/gw dryrun              - ativa/desativa a simulação",
    HELP_AUTOCONFIRM = "/gw autoconfirm         - ativa/desativa a confirmação automática",
    HELP_AUTOICON = "/gw autoicon            - ativa/desativa o ícone automático",
    HELP_UI = "/gw ui                  - abre/fecha o painel principal",
    HELP_DEV = "/gw dev                 - abre/fecha as ferramentas",
    HELP_QUICK = "/gw quick               - abre/fecha o Guarda-roupa",
    HELP_MINIMAP = "/gw minimap             - mostra/oculta o botão do minimapa",
    MAIN_HELP_INTRO = "Use o GlamorWeave para salvar um modelo no personagem de origem e aplicá-lo depois nos seus alts.",
    MAIN_HELP_STEP1 = "1. Abra Configurar tecla e defina uma tecla para abrir o Guarda-roupa.",
    MAIN_HELP_STEP2 = "2. No personagem de origem, abra a Transmog e clique em Salvar deste personagem.",
    MAIN_HELP_STEP3 = "3. No alt, abra a Transmog e clique em Aplicar a este personagem.",
    MAIN_HELP_STEP4 = "4. No Guarda-roupa você pode revisar os visuais e, com a Transmog aberta, selecionar a linha real da Blizzard.",
    MAIN_HELP_STEP5 = "5. Se a Blizzard bloquear uma ação direta, o GlamorWeave usa o caminho nativo mais seguro disponível.",
    QUICK_HINT = "Clique em uma linha para abrir a UI nativa da Blizzard e enviar esse visual para lá.",
    QUICK_HINT_FALLBACK = "Quando a Transmog está aberta, o GlamorWeave tenta usar a linha real da Blizzard antes de cair no fallback.",
    QUICK_HINT_ROW = "Clique em uma linha para abrir a UI nativa da Blizzard e enviar esse visual para lá.",
}, en)

local it = WithFallback({
    ADDON_LOADED = "Caricato",
    MINIMAP_SHOWN = "Pulsante minimappa mostrato",
    MINIMAP_HIDDEN = "Pulsante minimappa nascosto",
    QUICK_ACCESS_NO_UI = "Apri la trasmogrificazione per selezionare gli abiti dal Guardaroba",
    MAIN_STATUS = "Modello salvato: %d abiti",
    MAIN_STATUS_HINT_READY = "La trasmogrificazione è pronta. Ora puoi salvare o applicare le modifiche.",
    MAIN_STATUS_HINT_NEED_TRANSMOG = "Apri la trasmogrificazione per salvare o applicare le modifiche.",
    MAIN_QUICK = "Apri Guardaroba",
    MAIN_SAVE = "Salva da questo personaggio",
    MAIN_APPLY_ALL = "Applica a questo personaggio",
    MAIN_APPLY_ONE = "Applica posizione",
    MAIN_EXPORT = "Esporta",
    MAIN_IMPORT = "Importa",
    MAIN_APPLY_SLOT_LABEL = "Posizione",
    MAIN_APPLY_SLOT_INVALID = "Scegli una posizione tra 1 e %d.",
    MAIN_DEVTOOLS = "Strumenti",
    MAIN_KEYBINDS = "Configura tasto",
    MAIN_KEYBINDS_CURRENT = "Tasto attuale: %s",
    MAIN_HELP_BUTTON = "Aiuto",
    MAIN_ACTIONS_TITLE = "Azioni principali",
    MAIN_OPTIONS_TITLE = "Pannello",
    MAIN_MINIMAP = "Mostra pulsante minimappa",
    MAIN_HELP_TITLE = "Aiuto rapido",
    MAIN_HELP_CLOSE = "Chiudi",
    MAIN_DATA_TITLE = "Modello",
    MAIN_EXPORT_POPUP_TITLE = "Esporta modello",
    MAIN_EXPORT_POPUP_DESC = "Fai clic nella casella e usa Ctrl+C per copiare questo testo.",
    MAIN_IMPORT_POPUP_TITLE = "Importa modello",
    MAIN_IMPORT_POPUP_DESC = "Fai clic nella casella, incolla con Ctrl+V e premi Importa.",
    MAIN_DATA_CLOSE = "Chiudi",
    MAIN_DATA_IMPORT = "Importa",
    MAIN_DATA_EXPORT = "Aggiorna",
    DEV_TITLE = "GlamorWeave Strumenti",
    DEV_STATUS = "Abiti salvati nel modello: %d\nRegistro: %s  |  Traccia: %s\nConferma automatica: %s  |  Icona automatica: %s  |  Simulazione: %s",
    DEV_SAVE_UI = "Salva",
    DEV_DUMP_UI = "Vedi modello",
    DEV_APPLY_ALL = "Applica tutto",
    DEV_APPLY_SLOT = "Applica",
    DEV_EXPORT = "Esporta",
    DEV_IMPORT = "Importa",
    DEV_DEBUG = "Mostra registri dettagliati",
    DEV_TRACE = "Traccia",
    DEV_AUTOCONFIRM = "Conferma automatica",
    DEV_AUTOICON = "Icona automatica",
    DEV_DRYRUN = "Simulazione",
    DEV_BOOL_ON = "Attivo",
    DEV_BOOL_OFF = "Disattivo",
    DEV_HELP = "/gw dev apre/chiude questo pannello\nTrascina con click sinistro",
    QUICK_TITLE = "GlamorWeave Guardaroba",
    QUICK_STATUS_API = "I tuoi abiti salvati",
    QUICK_STATUS_TEMPLATE = "Modello salvato su questo personaggio",
    QUICK_STATUS_SUMMARY = "Tasto: %s  |  Abiti: %s",
    QUICK_OPEN_MAIN = "Pannello",
    QUICK_OPEN_KEYBINDS = "Tasto",
    QUICK_SLOT = "Posizione %d",
    QUICK_EMPTY_SLOT = "Vuoto",
    APPLY_PROGRESS = "Applicazione delle modifiche, attendi...",
    APPLY_SLOT_DONE = "Posizione %d applicata.",
    APPLY_ALL_DONE = "Applicazione completata.",
    MINIMAP_LEFT = "Click sinistro: apri Guardaroba",
    MINIMAP_RIGHT = "Click destro: apri pannello principale",
    MINIMAP_MIDDLE = "Click centrale: apri strumenti",
    BINDING_TOGGLE_QUICK_ACCESS = "Apri/chiudi Guardaroba",
    HELP_SAVEUI = "/gw saveui              - salva il modello dall'interfaccia attuale",
    HELP_DUMPUI = "/gw dumpui              - mostra il modello",
    HELP_ROWS = "/gw rows                - mostra le righe attuali",
    HELP_EXPORT = "/gw export              - genera una stringa di esportazione",
    HELP_IMPORT = "/gw import <s>          - importa una stringa esportata",
    HELP_APPLY = "/gw apply1..20          - applica una posizione",
    HELP_APPLYALL = "/gw applyall            - applica tutte le posizioni",
    HELP_CONFIRM = "/gw confirm             - prova a confermare",
    HELP_SAVEINDEX = "/gw saveindex1..20      - salva pickerIndex e targetTexture della posizione",
    HELP_DEBUG = "/gw debug               - attiva/disattiva il debug",
    HELP_TRACE = "/gw trace               - attiva/disattiva la traccia",
    HELP_DRYRUN = "/gw dryrun              - attiva/disattiva la simulazione",
    HELP_AUTOCONFIRM = "/gw autoconfirm         - attiva/disattiva la conferma automatica",
    HELP_AUTOICON = "/gw autoicon            - attiva/disattiva l'icona automatica",
    HELP_UI = "/gw ui                  - apre/chiude il pannello principale",
    HELP_DEV = "/gw dev                 - apre/chiude gli strumenti",
    HELP_QUICK = "/gw quick               - apre/chiude il Guardaroba",
    HELP_MINIMAP = "/gw minimap             - mostra/nasconde il pulsante della minimappa",
    MAIN_HELP_INTRO = "Usa GlamorWeave per salvare un modello sul personaggio sorgente e applicarlo poi ai tuoi alt.",
    MAIN_HELP_STEP1 = "1. Apri Configura tasto e assegna un tasto per aprire il Guardaroba.",
    MAIN_HELP_STEP2 = "2. Sul personaggio sorgente, apri la Trasmogrificazione e clicca Salva da questo personaggio.",
    MAIN_HELP_STEP3 = "3. Sull'alt, apri la Trasmogrificazione e clicca Applica a questo personaggio.",
    MAIN_HELP_STEP4 = "4. Nel Guardaroba puoi controllare gli abiti e, con la Trasmogrificazione aperta, selezionare la vera riga Blizzard.",
    MAIN_HELP_STEP5 = "5. Se Blizzard blocca un'azione diretta, GlamorWeave usa il percorso nativo più sicuro disponibile.",
    QUICK_HINT = "Clicca una riga per aprire l'interfaccia nativa Blizzard e inviare lì questo abito.",
    QUICK_HINT_FALLBACK = "Quando la Trasmogrificazione è aperta, GlamorWeave prova prima a usare la vera riga Blizzard.",
    QUICK_HINT_ROW = "Clicca una riga per aprire l'interfaccia nativa Blizzard e inviare lì questo abito.",
}, en)

local ar = WithFallback({
    ADDON_LOADED = "تم التحميل",
    MINIMAP_SHOWN = "تم إظهار زر الخريطة المصغرة",
    MINIMAP_HIDDEN = "تم إخفاء زر الخريطة المصغرة",
    QUICK_ACCESS_NO_UI = "افتح واجهة التحويل الشكلي لاختيار الأزياء من الخزانة",
    MAIN_STATUS = "القالب المحفوظ: %d زي",
    MAIN_STATUS_HINT_READY = "واجهة التحويل الشكلي جاهزة. يمكنك الآن الحفظ أو التطبيق.",
    MAIN_STATUS_HINT_NEED_TRANSMOG = "افتح واجهة التحويل الشكلي للحفظ أو التطبيق.",
    MAIN_QUICK = "فتح الخزانة",
    MAIN_SAVE = "حفظ من هذه الشخصية",
    MAIN_APPLY_ALL = "تطبيق على هذه الشخصية",
    MAIN_APPLY_ONE = "تطبيق الخانة",
    MAIN_EXPORT = "تصدير",
    MAIN_IMPORT = "استيراد",
    MAIN_APPLY_SLOT_LABEL = "الخانة",
    MAIN_APPLY_SLOT_INVALID = "اختر خانة بين 1 و %d.",
    MAIN_DEVTOOLS = "الأدوات",
    MAIN_KEYBINDS = "تعيين الاختصار",
    MAIN_KEYBINDS_CURRENT = "الاختصار الحالي: %s",
    MAIN_HELP_BUTTON = "مساعدة",
    MAIN_ACTIONS_TITLE = "الإجراءات الرئيسية",
    MAIN_OPTIONS_TITLE = "اللوحة",
    MAIN_MINIMAP = "إظهار زر الخريطة المصغرة",
    MAIN_HELP_TITLE = "مساعدة سريعة",
    MAIN_HELP_CLOSE = "إغلاق",
    MAIN_DATA_TITLE = "القالب",
    MAIN_EXPORT_POPUP_TITLE = "تصدير القالب",
    MAIN_EXPORT_POPUP_DESC = "اضغط داخل المربع واستخدم Ctrl+C لنسخ النص.",
    MAIN_IMPORT_POPUP_TITLE = "استيراد القالب",
    MAIN_IMPORT_POPUP_DESC = "اضغط داخل المربع والصق باستخدام Ctrl+V ثم اضغط استيراد.",
    MAIN_DATA_CLOSE = "إغلاق",
    MAIN_DATA_IMPORT = "استيراد",
    MAIN_DATA_EXPORT = "تحديث",
    DEV_TITLE = "GlamorWeave أدوات",
    DEV_STATUS = "الأزياء المحفوظة في القالب: %d\nالسجل: %s  |  التتبع: %s\nتأكيد تلقائي: %s  |  أيقونة تلقائية: %s  |  محاكاة: %s",
    DEV_SAVE_UI = "حفظ",
    DEV_DUMP_UI = "عرض القالب",
    DEV_APPLY_ALL = "تطبيق الكل",
    DEV_APPLY_SLOT = "تطبيق",
    DEV_EXPORT = "تصدير",
    DEV_IMPORT = "استيراد",
    DEV_DEBUG = "إظهار السجلات التفصيلية",
    DEV_TRACE = "تتبع",
    DEV_AUTOCONFIRM = "تأكيد تلقائي",
    DEV_AUTOICON = "أيقونة تلقائية",
    DEV_DRYRUN = "محاكاة",
    DEV_BOOL_ON = "مفعل",
    DEV_BOOL_OFF = "معطل",
    DEV_HELP = "/gw dev يفتح/يغلق هذه اللوحة\nاسحب بزر الفأرة الأيسر",
    QUICK_TITLE = "GlamorWeave الخزانة",
    QUICK_STATUS_API = "أزياؤك المحفوظة",
    QUICK_STATUS_TEMPLATE = "قالب محفوظ على هذه الشخصية",
    QUICK_STATUS_SUMMARY = "الاختصار: %s  |  الأزياء: %s",
    QUICK_OPEN_MAIN = "اللوحة",
    QUICK_OPEN_KEYBINDS = "الاختصار",
    QUICK_SLOT = "الخانة %d",
    APPLY_PROGRESS = "جارٍ تطبيق التغييرات، يرجى الانتظار...",
    APPLY_SLOT_DONE = "تم تطبيق الخانة %d.",
    APPLY_ALL_DONE = "اكتمل التطبيق.",
    BINDING_TOGGLE_QUICK_ACCESS = "فتح/إغلاق الخزانة",
    HELP_SAVEUI = "/gw saveui              - احفظ القالب من الواجهة الحالية",
    HELP_DUMPUI = "/gw dumpui              - اعرض القالب",
    HELP_ROWS = "/gw rows                - اعرض الصفوف الحالية",
    HELP_EXPORT = "/gw export              - أنشئ نص التصدير",
    HELP_IMPORT = "/gw import <s>          - استورد نصًا مُصدّرًا",
    HELP_APPLY = "/gw apply1..20          - طبّق خانة واحدة",
    HELP_APPLYALL = "/gw applyall            - طبّق كل الخانات",
    HELP_CONFIRM = "/gw confirm             - حاول التأكيد",
    HELP_SAVEINDEX = "/gw saveindex1..20      - احفظ pickerIndex و targetTexture للخانة",
    HELP_DEBUG = "/gw debug               - تبديل وضع التصحيح",
    HELP_TRACE = "/gw trace               - تبديل التتبع",
    HELP_DRYRUN = "/gw dryrun              - تبديل المحاكاة",
    HELP_AUTOCONFIRM = "/gw autoconfirm         - تبديل التأكيد التلقائي",
    HELP_AUTOICON = "/gw autoicon            - تبديل الأيقونة التلقائية",
    HELP_UI = "/gw ui                  - فتح/إغلاق اللوحة الرئيسية",
    HELP_DEV = "/gw dev                 - فتح/إغلاق الأدوات",
    HELP_QUICK = "/gw quick               - فتح/إغلاق الخزانة",
    HELP_MINIMAP = "/gw minimap             - إظهار/إخفاء زر الخريطة المصغرة",
    MAIN_HELP_INTRO = "استخدم GlamorWeave لحفظ قالب على الشخصية الأساسية ثم تطبيقه على الشخصيات البديلة.",
    MAIN_HELP_STEP1 = "1. افتح إعداد الاختصار وحدد مفتاحًا لفتح الخزانة.",
    MAIN_HELP_STEP2 = "2. على الشخصية الأساسية، افتح واجهة التحويل الشكلي واضغط حفظ من هذه الشخصية.",
    MAIN_HELP_STEP3 = "3. على الشخصية البديلة، افتح واجهة التحويل الشكلي واضغط تطبيق على هذه الشخصية.",
    MAIN_HELP_STEP4 = "4. في الخزانة يمكنك مراجعة الأزياء، ومع فتح واجهة التحويل الشكلي يمكنك تحديد الصف الأصلي من Blizzard.",
    MAIN_HELP_STEP5 = "5. إذا منعت Blizzard إجراءً مباشرًا، يستخدم GlamorWeave المسار الأصلي الأكثر أمانًا.",
    QUICK_HINT = "اضغط على صف لفتح واجهة Blizzard الأصلية وإرسال هذا الزي إليها.",
    QUICK_HINT_FALLBACK = "عند فتح واجهة التحويل الشكلي، يحاول GlamorWeave استخدام صف Blizzard الحقيقي أولًا.",
    QUICK_HINT_ROW = "اضغط على صف لفتح واجهة Blizzard الأصلية وإرسال هذا الزي إليها.",
}, en)

local zhCN = WithFallback({
    ADDON_LOADED = "已加载",
    MINIMAP_SHOWN = "小地图按钮已显示",
    MINIMAP_HIDDEN = "小地图按钮已隐藏",
    QUICK_ACCESS_NO_UI = "打开幻化界面后，才能从衣柜中选择外观",
    QUICK_ACCESS_EMPTY = "没有可显示的外观",
    MAIN_STATUS = "已保存模板：%d 套外观",
    MAIN_STATUS_HINT_READY = "幻化已就绪，现在可以保存或应用更改。",
    MAIN_STATUS_HINT_NEED_TRANSMOG = "请打开幻化界面后再保存或应用更改。",
    MAIN_STATUS_OPEN = "开启",
    MAIN_STATUS_CLOSED = "关闭",
    MAIN_STATUS_READY = "就绪",
    MAIN_STATUS_HIDDEN = "隐藏",
    MAIN_QUICK = "打开衣柜",
    MAIN_SAVE = "从该角色保存",
    MAIN_APPLY_ALL = "应用到该角色",
    MAIN_APPLY_ONE = "应用槽位",
    MAIN_EXPORT = "导出",
    MAIN_IMPORT = "导入",
    MAIN_APPLY_SLOT_LABEL = "槽位",
    MAIN_APPLY_SLOT_INVALID = "请选择 1 到 %d 之间的槽位。",
    MAIN_DEVTOOLS = "工具",
    MAIN_DEVTOOLS_LABEL = "高级",
    MAIN_DEVTOOLS_HINT = "自动化、调试和手动测试。",
    MAIN_KEYBINDS = "设置按键",
    MAIN_KEYBINDS_CURRENT = "当前按键：%s",
    MAIN_KEYBINDS_UNBOUND = "未绑定",
    MAIN_HELP_BUTTON = "帮助",
    MAIN_ACTIONS_TITLE = "主要操作",
    MAIN_OPTIONS_TITLE = "面板",
    MAIN_MINIMAP = "显示小地图按钮",
    MAIN_HELP_TITLE = "快速帮助",
    MAIN_HELP_CLOSE = "关闭",
    MAIN_DATA_TITLE = "模板",
    MAIN_EXPORT_POPUP_TITLE = "导出模板",
    MAIN_EXPORT_POPUP_DESC = "点击文本框并使用 Ctrl+C 复制这段文本。",
    MAIN_IMPORT_POPUP_TITLE = "导入模板",
    MAIN_IMPORT_POPUP_DESC = "点击文本框，使用 Ctrl+V 粘贴，然后点击导入。",
    MAIN_DATA_CLOSE = "关闭",
    MAIN_DATA_IMPORT = "导入",
    MAIN_DATA_EXPORT = "刷新",
    DEV_TITLE = "GlamorWeave 工具",
    DEV_STATUS = "模板中已保存外观：%d\n日志：%s  |  跟踪：%s\n自动确认：%s  |  自动图标：%s  |  模拟：%s",
    DEV_SAVE_UI = "保存",
    DEV_DUMP_UI = "查看模板",
    DEV_APPLY_ALL = "全部应用",
    DEV_APPLY_SLOT = "应用",
    DEV_EXPORT = "导出",
    DEV_IMPORT = "导入",
    DEV_DEBUG = "显示详细日志",
    DEV_TRACE = "跟踪",
    DEV_AUTOCONFIRM = "自动确认",
    DEV_AUTOICON = "自动图标",
    DEV_DRYRUN = "模拟",
    DEV_BOOL_ON = "开启",
    DEV_BOOL_OFF = "关闭",
    DEV_HELP = "/gw dev 打开/关闭此面板\n按住左键拖动",
    QUICK_TITLE = "GlamorWeave 衣柜",
    QUICK_STATUS_API = "你保存的外观",
    QUICK_STATUS_TEMPLATE = "该角色上保存的模板",
    QUICK_STATUS_SUMMARY = "按键：%s  |  外观：%s",
    QUICK_OPEN_MAIN = "面板",
    QUICK_OPEN_KEYBINDS = "按键",
    QUICK_SLOT = "槽位 %d",
    QUICK_EMPTY_SLOT = "空",
    QUICK_TRANSMOG_READY = "就绪",
    QUICK_TRANSMOG_CLOSED = "关闭",
    APPLY_PROGRESS = "正在应用更改，请稍候……",
    APPLY_SLOT_DONE = "槽位 %d 已应用。",
    APPLY_ALL_DONE = "应用完成。",
    MINIMAP_LEFT = "左键：打开衣柜",
    MINIMAP_RIGHT = "右键：打开主面板",
    MINIMAP_MIDDLE = "中键：打开工具",
    MINIMAP_DRAG = "拖动：围绕小地图移动",
    BINDING_TOGGLE_QUICK_ACCESS = "打开/关闭衣柜",
    HELP_SAVEUI = "/gw saveui              - 从当前界面保存模板",
    HELP_DUMPUI = "/gw dumpui              - 显示模板",
    HELP_ROWS = "/gw rows                - 显示当前行",
    HELP_EXPORT = "/gw export              - 生成导出字符串",
    HELP_IMPORT = "/gw import <s>          - 导入导出字符串",
    HELP_APPLY = "/gw apply1..20          - 应用一个槽位",
    HELP_APPLYALL = "/gw applyall            - 应用全部槽位",
    HELP_CONFIRM = "/gw confirm             - 尝试确认",
    HELP_SAVEINDEX = "/gw saveindex1..20      - 保存槽位的 pickerIndex 和 targetTexture",
    HELP_DEBUG = "/gw debug               - 切换调试",
    HELP_TRACE = "/gw trace               - 切换跟踪",
    HELP_DRYRUN = "/gw dryrun              - 切换模拟",
    HELP_AUTOCONFIRM = "/gw autoconfirm         - 切换自动确认",
    HELP_AUTOICON = "/gw autoicon            - 切换自动图标",
    HELP_UI = "/gw ui                  - 打开/关闭主面板",
    HELP_DEV = "/gw dev                 - 打开/关闭工具面板",
    HELP_QUICK = "/gw quick               - 打开/关闭衣柜",
    HELP_MINIMAP = "/gw minimap             - 显示/隐藏小地图按钮",
    MAIN_HELP_INTRO = "使用 GlamorWeave 在源角色上保存模板，然后应用到你的其他角色。",
    MAIN_HELP_STEP1 = "1. 打开设置按键，并为衣柜分配一个按键。",
    MAIN_HELP_STEP2 = "2. 在源角色上打开幻化界面并点击 从该角色保存。",
    MAIN_HELP_STEP3 = "3. 在小号上打开幻化界面并点击 应用到该角色。",
    MAIN_HELP_STEP4 = "4. 在衣柜中你可以查看外观；当幻化界面打开时，还可以选择 Blizzard 的真实行。",
    MAIN_HELP_STEP5 = "5. 如果 Blizzard 阻止直接操作，GlamorWeave 会使用最安全的原生流程。",
    QUICK_HINT = "点击某一行可打开 Blizzard 原生界面并将该外观发送过去。",
    QUICK_HINT_FALLBACK = "当幻化界面打开时，GlamorWeave 会先尝试使用 Blizzard 的真实行。",
    QUICK_HINT_ROW = "点击某一行可打开 Blizzard 原生界面并将该外观发送过去。",
}, en)

local zhTW = WithFallback({
    ADDON_LOADED = "已載入",
    MINIMAP_SHOWN = "小地圖按鈕已顯示",
    MINIMAP_HIDDEN = "小地圖按鈕已隱藏",
    QUICK_ACCESS_NO_UI = "打開塑形介面後，才能從衣櫥選擇外觀",
    QUICK_ACCESS_EMPTY = "沒有可顯示的外觀",
    MAIN_STATUS = "已儲存範本：%d 套外觀",
    MAIN_STATUS_HINT_READY = "塑形已就緒，現在可以儲存或套用變更。",
    MAIN_STATUS_HINT_NEED_TRANSMOG = "請打開塑形介面後再儲存或套用變更。",
    MAIN_QUICK = "打開衣櫥",
    MAIN_SAVE = "從此角色儲存",
    MAIN_APPLY_ALL = "套用到此角色",
    MAIN_APPLY_ONE = "套用欄位",
    MAIN_EXPORT = "匯出",
    MAIN_IMPORT = "匯入",
    MAIN_APPLY_SLOT_LABEL = "欄位",
    MAIN_APPLY_SLOT_INVALID = "請選擇 1 到 %d 之間的欄位。",
    MAIN_DEVTOOLS = "工具",
    MAIN_KEYBINDS = "設定按鍵",
    MAIN_KEYBINDS_CURRENT = "目前按鍵：%s",
    MAIN_HELP_BUTTON = "說明",
    MAIN_ACTIONS_TITLE = "主要操作",
    MAIN_OPTIONS_TITLE = "面板",
    MAIN_MINIMAP = "顯示小地圖按鈕",
    MAIN_HELP_TITLE = "快速說明",
    MAIN_HELP_CLOSE = "關閉",
    MAIN_DATA_TITLE = "範本",
    MAIN_EXPORT_POPUP_TITLE = "匯出範本",
    MAIN_EXPORT_POPUP_DESC = "點擊文字框並使用 Ctrl+C 複製這段文字。",
    MAIN_IMPORT_POPUP_TITLE = "匯入範本",
    MAIN_IMPORT_POPUP_DESC = "點擊文字框，使用 Ctrl+V 貼上，然後按匯入。",
    MAIN_DATA_CLOSE = "關閉",
    MAIN_DATA_IMPORT = "匯入",
    MAIN_DATA_EXPORT = "重新整理",
    DEV_TITLE = "GlamorWeave 工具",
    DEV_STATUS = "範本中已儲存外觀：%d\n記錄：%s  |  追蹤：%s\n自動確認：%s  |  自動圖示：%s  |  模擬：%s",
    DEV_SAVE_UI = "儲存",
    DEV_DUMP_UI = "查看範本",
    DEV_APPLY_ALL = "全部套用",
    DEV_APPLY_SLOT = "套用",
    DEV_EXPORT = "匯出",
    DEV_IMPORT = "匯入",
    DEV_DEBUG = "顯示詳細記錄",
    DEV_TRACE = "追蹤",
    DEV_AUTOCONFIRM = "自動確認",
    DEV_AUTOICON = "自動圖示",
    DEV_DRYRUN = "模擬",
    DEV_BOOL_ON = "啟用",
    DEV_BOOL_OFF = "停用",
    DEV_HELP = "/gw dev 開啟/關閉此面板\n按住左鍵拖曳",
    QUICK_TITLE = "GlamorWeave 衣櫥",
    QUICK_STATUS_API = "你儲存的外觀",
    QUICK_STATUS_TEMPLATE = "此角色上儲存的範本",
    QUICK_STATUS_SUMMARY = "按鍵：%s  |  外觀：%s",
    QUICK_OPEN_MAIN = "面板",
    QUICK_OPEN_KEYBINDS = "按鍵",
    QUICK_SLOT = "欄位 %d",
    APPLY_PROGRESS = "正在套用變更，請稍候……",
    APPLY_SLOT_DONE = "欄位 %d 已套用。",
    APPLY_ALL_DONE = "套用完成。",
    BINDING_TOGGLE_QUICK_ACCESS = "開啟/關閉衣櫥",
    HELP_SAVEUI = "/gw saveui              - 從目前介面儲存範本",
    HELP_DUMPUI = "/gw dumpui              - 顯示範本",
    HELP_ROWS = "/gw rows                - 顯示目前列",
    HELP_EXPORT = "/gw export              - 產生匯出字串",
    HELP_IMPORT = "/gw import <s>          - 匯入匯出字串",
    HELP_APPLY = "/gw apply1..20          - 套用一個欄位",
    HELP_APPLYALL = "/gw applyall            - 套用全部欄位",
    HELP_CONFIRM = "/gw confirm             - 嘗試確認",
    HELP_SAVEINDEX = "/gw saveindex1..20      - 儲存欄位的 pickerIndex 與 targetTexture",
    HELP_DEBUG = "/gw debug               - 切換除錯",
    HELP_TRACE = "/gw trace               - 切換追蹤",
    HELP_DRYRUN = "/gw dryrun              - 切換模擬",
    HELP_AUTOCONFIRM = "/gw autoconfirm         - 切換自動確認",
    HELP_AUTOICON = "/gw autoicon            - 切換自動圖示",
    HELP_UI = "/gw ui                  - 開啟/關閉主面板",
    HELP_DEV = "/gw dev                 - 開啟/關閉工具面板",
    HELP_QUICK = "/gw quick               - 開啟/關閉衣櫥",
    HELP_MINIMAP = "/gw minimap             - 顯示/隱藏小地圖按鈕",
    MAIN_HELP_INTRO = "使用 GlamorWeave 在來源角色上儲存範本，之後再套用到其他角色。",
    MAIN_HELP_STEP1 = "1. 開啟設定按鍵，並為衣櫥指定一個按鍵。",
    MAIN_HELP_STEP2 = "2. 在來源角色上開啟塑形介面並點擊 從此角色儲存。",
    MAIN_HELP_STEP3 = "3. 在分身角色上開啟塑形介面並點擊 套用到此角色。",
    MAIN_HELP_STEP4 = "4. 在衣櫥中你可以檢視外觀；若塑形介面已開啟，也能選取 Blizzard 的真實列。",
    MAIN_HELP_STEP5 = "5. 如果 Blizzard 阻止直接操作，GlamorWeave 會使用最安全的原生流程。",
    QUICK_HINT = "點擊某一列可開啟 Blizzard 原生介面並將該外觀送過去。",
    QUICK_HINT_FALLBACK = "當塑形介面開啟時，GlamorWeave 會先嘗試使用 Blizzard 的真實列。",
    QUICK_HINT_ROW = "點擊某一列可開啟 Blizzard 原生介面並將該外觀送過去。",
}, en)

local ko = WithFallback({
    ADDON_LOADED = "불러옴",
    MINIMAP_SHOWN = "미니맵 버튼 표시",
    MINIMAP_HIDDEN = "미니맵 버튼 숨김",
    QUICK_ACCESS_NO_UI = "변환 인터페이스를 열어야 옷장에서 의상을 선택할 수 있습니다",
    QUICK_ACCESS_EMPTY = "표시할 의상이 없습니다",
    MAIN_STATUS = "저장된 템플릿: 의상 %d개",
    MAIN_STATUS_HINT_READY = "형상변환이 준비되었습니다. 이제 저장하거나 적용할 수 있습니다.",
    MAIN_STATUS_HINT_NEED_TRANSMOG = "저장하거나 적용하려면 형상변환을 여세요.",
    MAIN_QUICK = "옷장 열기",
    MAIN_SAVE = "이 캐릭터에서 저장",
    MAIN_APPLY_ALL = "이 캐릭터에 적용",
    MAIN_APPLY_ONE = "슬롯 적용",
    MAIN_EXPORT = "내보내기",
    MAIN_IMPORT = "가져오기",
    MAIN_APPLY_SLOT_LABEL = "슬롯",
    MAIN_APPLY_SLOT_INVALID = "1에서 %d 사이의 슬롯을 선택하세요.",
    MAIN_DEVTOOLS = "도구",
    MAIN_KEYBINDS = "단축키 설정",
    MAIN_KEYBINDS_CURRENT = "현재 키: %s",
    MAIN_HELP_BUTTON = "도움말",
    MAIN_ACTIONS_TITLE = "주요 작업",
    MAIN_OPTIONS_TITLE = "패널",
    MAIN_MINIMAP = "미니맵 버튼 표시",
    MAIN_HELP_TITLE = "빠른 도움말",
    MAIN_HELP_CLOSE = "닫기",
    MAIN_DATA_TITLE = "템플릿",
    MAIN_EXPORT_POPUP_TITLE = "템플릿 내보내기",
    MAIN_EXPORT_POPUP_DESC = "상자 안을 클릭하고 Ctrl+C로 이 텍스트를 복사하세요.",
    MAIN_IMPORT_POPUP_TITLE = "템플릿 가져오기",
    MAIN_IMPORT_POPUP_DESC = "상자 안을 클릭하고 Ctrl+V로 붙여넣은 뒤 가져오기를 누르세요.",
    MAIN_DATA_CLOSE = "닫기",
    MAIN_DATA_IMPORT = "가져오기",
    MAIN_DATA_EXPORT = "새로고침",
    DEV_TITLE = "GlamorWeave 도구",
    DEV_STATUS = "템플릿에 저장된 의상: %d개\n로그: %s  |  추적: %s\n자동 확인: %s  |  자동 아이콘: %s  |  시뮬레이션: %s",
    DEV_SAVE_UI = "저장",
    DEV_DUMP_UI = "템플릿 보기",
    DEV_APPLY_ALL = "모두 적용",
    DEV_APPLY_SLOT = "적용",
    DEV_EXPORT = "내보내기",
    DEV_IMPORT = "가져오기",
    DEV_DEBUG = "상세 로그 표시",
    DEV_TRACE = "추적",
    DEV_AUTOCONFIRM = "자동 확인",
    DEV_AUTOICON = "자동 아이콘",
    DEV_DRYRUN = "시뮬레이션",
    DEV_BOOL_ON = "켜짐",
    DEV_BOOL_OFF = "꺼짐",
    DEV_HELP = "/gw dev 패널 열기/닫기\n왼쪽 클릭으로 드래그",
    QUICK_TITLE = "GlamorWeave 옷장",
    QUICK_STATUS_API = "저장된 의상",
    QUICK_STATUS_TEMPLATE = "이 캐릭터에 저장된 템플릿",
    QUICK_STATUS_SUMMARY = "키: %s  |  의상: %s",
    QUICK_OPEN_MAIN = "패널",
    QUICK_OPEN_KEYBINDS = "키",
    QUICK_SLOT = "슬롯 %d",
    APPLY_PROGRESS = "변경 사항 적용 중입니다. 잠시만 기다려 주세요...",
    APPLY_SLOT_DONE = "슬롯 %d 적용됨.",
    APPLY_ALL_DONE = "적용 완료.",
    BINDING_TOGGLE_QUICK_ACCESS = "옷장 열기/닫기",
    HELP_SAVEUI = "/gw saveui              - 현재 UI에서 템플릿 저장",
    HELP_DUMPUI = "/gw dumpui              - 템플릿 표시",
    HELP_ROWS = "/gw rows                - 현재 줄 표시",
    HELP_EXPORT = "/gw export              - 내보내기 문자열 생성",
    HELP_IMPORT = "/gw import <s>          - 내보낸 문자열 가져오기",
    HELP_APPLY = "/gw apply1..20          - 슬롯 하나 적용",
    HELP_APPLYALL = "/gw applyall            - 모든 슬롯 적용",
    HELP_CONFIRM = "/gw confirm             - 확인 시도",
    HELP_SAVEINDEX = "/gw saveindex1..20      - 슬롯의 pickerIndex 및 targetTexture 저장",
    HELP_DEBUG = "/gw debug               - 디버그 전환",
    HELP_TRACE = "/gw trace               - 추적 전환",
    HELP_DRYRUN = "/gw dryrun              - 시뮬레이션 전환",
    HELP_AUTOCONFIRM = "/gw autoconfirm         - 자동 확인 전환",
    HELP_AUTOICON = "/gw autoicon            - 자동 아이콘 전환",
    HELP_UI = "/gw ui                  - 메인 패널 열기/닫기",
    HELP_DEV = "/gw dev                 - 도구 패널 열기/닫기",
    HELP_QUICK = "/gw quick               - 옷장 열기/닫기",
    HELP_MINIMAP = "/gw minimap             - 미니맵 버튼 표시/숨김",
    MAIN_HELP_INTRO = "GlamorWeave를 사용해 원본 캐릭터에 템플릿을 저장한 뒤 다른 부캐에 적용하세요.",
    MAIN_HELP_STEP1 = "1. 단축키 설정을 열고 옷장을 여는 키를 지정하세요.",
    MAIN_HELP_STEP2 = "2. 원본 캐릭터에서 형상변환 UI를 열고 이 캐릭터에서 저장을 누르세요.",
    MAIN_HELP_STEP3 = "3. 부캐에서 형상변환 UI를 열고 이 캐릭터에 적용을 누르세요.",
    MAIN_HELP_STEP4 = "4. 옷장에서 의상을 검토할 수 있으며, 형상변환 UI가 열려 있으면 Blizzard의 실제 줄을 선택할 수 있습니다.",
    MAIN_HELP_STEP5 = "5. Blizzard가 직접 동작을 막는 경우, GlamorWeave는 가장 안전한 기본 흐름을 사용합니다.",
    QUICK_HINT = "한 줄을 클릭하면 Blizzard 기본 UI를 열고 해당 의상을 այնտեղ으로 보냅니다.",
    QUICK_HINT_FALLBACK = "형상변환 UI가 열려 있으면 GlamorWeave는 먼저 Blizzard의 실제 줄을 사용하려고 합니다.",
    QUICK_HINT_ROW = "한 줄을 클릭하면 Blizzard 기본 UI를 열고 해당 의상을 այնտեղ으로 보냅니다.",
}, en)

local ru = WithFallback({
    ADDON_LOADED = "Загружено",
    MINIMAP_SHOWN = "Кнопка у миникарты показана",
    MINIMAP_HIDDEN = "Кнопка у миникарты скрыта",
    QUICK_ACCESS_NO_UI = "Откройте Трансмогрификацию, чтобы выбирать облики из Гардероба",
    QUICK_ACCESS_EMPTY = "Нет обликов для отображения",
    MAIN_STATUS = "Сохраненный шаблон: %d комплектов",
    MAIN_STATUS_HINT_READY = "Трансмогрификация готова. Теперь можно сохранять и применять изменения.",
    MAIN_STATUS_HINT_NEED_TRANSMOG = "Откройте Трансмогрификацию, чтобы сохранять и применять изменения.",
    MAIN_STATUS_OPEN = "открыто",
    MAIN_STATUS_CLOSED = "закрыто",
    MAIN_STATUS_READY = "готово",
    MAIN_STATUS_HIDDEN = "скрыто",
    MAIN_QUICK = "Открыть Гардероб",
    MAIN_SAVE = "Сохранить с этого персонажа",
    MAIN_APPLY_ALL = "Применить к этому персонажу",
    MAIN_APPLY_ONE = "Применить ячейку",
    MAIN_EXPORT = "Экспорт",
    MAIN_IMPORT = "Импорт",
    MAIN_APPLY_SLOT_LABEL = "Ячейка",
    MAIN_APPLY_SLOT_INVALID = "Выберите ячейку от 1 до %d.",
    MAIN_DEVTOOLS = "Инструменты",
    MAIN_DEVTOOLS_LABEL = "Дополнительно",
    MAIN_DEVTOOLS_HINT = "Автоматизация, отладка и ручное тестирование.",
    MAIN_KEYBINDS = "Настроить клавишу",
    MAIN_KEYBINDS_CURRENT = "Текущая клавиша: %s",
    MAIN_KEYBINDS_UNBOUND = "Не назначено",
    MAIN_HELP_BUTTON = "Справка",
    MAIN_ACTIONS_TITLE = "Основные действия",
    MAIN_OPTIONS_TITLE = "Панель",
    MAIN_MINIMAP = "Показывать кнопку у миникарты",
    MAIN_HELP_TITLE = "Быстрая справка",
    MAIN_HELP_CLOSE = "Закрыть",
    MAIN_DATA_TITLE = "Шаблон",
    MAIN_EXPORT_POPUP_TITLE = "Экспорт шаблона",
    MAIN_EXPORT_POPUP_DESC = "Кликните в поле и используйте Ctrl+C, чтобы скопировать текст.",
    MAIN_IMPORT_POPUP_TITLE = "Импорт шаблона",
    MAIN_IMPORT_POPUP_DESC = "Кликните в поле, вставьте с Ctrl+V и нажмите Импорт.",
    MAIN_DATA_CLOSE = "Закрыть",
    MAIN_DATA_IMPORT = "Импорт",
    MAIN_DATA_EXPORT = "Обновить",
    DEV_TITLE = "GlamorWeave Инструменты",
    DEV_STATUS = "Сохранено обликов в шаблоне: %d\nЖурнал: %s  |  Трассировка: %s\nАвтоподтверждение: %s  |  Автоиконка: %s  |  Симуляция: %s",
    DEV_SAVE_UI = "Сохранить",
    DEV_DUMP_UI = "Показать шаблон",
    DEV_APPLY_ALL = "Применить все",
    DEV_APPLY_SLOT = "Применить",
    DEV_EXPORT = "Экспорт",
    DEV_IMPORT = "Импорт",
    DEV_DEBUG = "Показывать подробные логи",
    DEV_TRACE = "Трассировка",
    DEV_AUTOCONFIRM = "Автоподтверждение",
    DEV_AUTOICON = "Автоиконка",
    DEV_DRYRUN = "Симуляция",
    DEV_BOOL_ON = "Вкл",
    DEV_BOOL_OFF = "Выкл",
    DEV_HELP = "/gw dev открывает/закрывает эту панель\nПеретаскивание левой кнопкой мыши",
    QUICK_TITLE = "GlamorWeave Гардероб",
    QUICK_STATUS_API = "Ваши сохраненные облики",
    QUICK_STATUS_TEMPLATE = "Шаблон, сохраненный на этом персонаже",
    QUICK_STATUS_SUMMARY = "Клавиша: %s  |  Облики: %s",
    QUICK_OPEN_MAIN = "Панель",
    QUICK_OPEN_KEYBINDS = "Клавиша",
    QUICK_SLOT = "Ячейка %d",
    QUICK_EMPTY_SLOT = "Пусто",
    QUICK_TRANSMOG_READY = "готово",
    QUICK_TRANSMOG_CLOSED = "закрыто",
    APPLY_PROGRESS = "Применение изменений, пожалуйста, подождите...",
    APPLY_SLOT_DONE = "Ячейка %d применена.",
    APPLY_ALL_DONE = "Применение завершено.",
    MINIMAP_LEFT = "ЛКМ: открыть Гардероб",
    MINIMAP_RIGHT = "ПКМ: открыть главную панель",
    MINIMAP_MIDDLE = "СКМ: открыть инструменты",
    MINIMAP_DRAG = "Перетаскивание: перемещение вокруг миникарты",
    BINDING_TOGGLE_QUICK_ACCESS = "Открыть/закрыть Гардероб",
    HELP_SAVEUI = "/gw saveui              - сохранить шаблон из текущего интерфейса",
    HELP_DUMPUI = "/gw dumpui              - показать шаблон",
    HELP_ROWS = "/gw rows                - показать текущие строки",
    HELP_EXPORT = "/gw export              - создать строку экспорта",
    HELP_IMPORT = "/gw import <s>          - импортировать строку экспорта",
    HELP_APPLY = "/gw apply1..20          - применить одну ячейку",
    HELP_APPLYALL = "/gw applyall            - применить все ячейки",
    HELP_CONFIRM = "/gw confirm             - попытаться подтвердить",
    HELP_SAVEINDEX = "/gw saveindex1..20      - сохранить pickerIndex и targetTexture для ячейки",
    HELP_DEBUG = "/gw debug               - переключить отладку",
    HELP_TRACE = "/gw trace               - переключить трассировку",
    HELP_DRYRUN = "/gw dryrun              - переключить симуляцию",
    HELP_AUTOCONFIRM = "/gw autoconfirm         - переключить автоподтверждение",
    HELP_AUTOICON = "/gw autoicon            - переключить автоиконку",
    HELP_UI = "/gw ui                  - открыть/закрыть главную панель",
    HELP_DEV = "/gw dev                 - открыть/закрыть инструменты",
    HELP_QUICK = "/gw quick               - открыть/закрыть Гардероб",
    HELP_MINIMAP = "/gw minimap             - показать/скрыть кнопку у миникарты",
    MAIN_HELP_INTRO = "Используйте GlamorWeave, чтобы сохранить шаблон на основном персонаже, а затем применить его на ваших альтах.",
    MAIN_HELP_STEP1 = "1. Откройте настройку клавиши и назначьте клавишу для открытия Гардероба.",
    MAIN_HELP_STEP2 = "2. На основном персонаже откройте Трансмогрификацию и нажмите Сохранить с этого персонажа.",
    MAIN_HELP_STEP3 = "3. На альте откройте Трансмогрификацию и нажмите Применить к этому персонажу.",
    MAIN_HELP_STEP4 = "4. В Гардеробе можно просматривать облики, а при открытой Трансмогрификации выбирать настоящую строку Blizzard.",
    MAIN_HELP_STEP5 = "5. Если Blizzard блокирует прямое действие, GlamorWeave использует самый безопасный доступный путь.",
    QUICK_HINT = "Щелкните по строке, чтобы открыть нативный интерфейс Blizzard и отправить туда этот облик.",
    QUICK_HINT_FALLBACK = "Когда Трансмогрификация открыта, GlamorWeave сначала пытается использовать настоящую строку Blizzard.",
    QUICK_HINT_ROW = "Щелкните по строке, чтобы открыть нативный интерфейс Blizzard и отправить туда этот облик.",
}, en)

local localeMap = {
    esES = es,
    esMX = es,
    frFR = fr,
    deDE = de,
    ptBR = pt,
    itIT = it,
    ruRU = ru,
    arSA = ar,
    zhCN = zhCN,
    zhTW = zhTW,
    koKR = ko,
}

local active = localeMap[locale] or en

function NS.L(key, ...)
    local value = active[key] or es[key] or en[key] or key
    if select("#", ...) > 0 then
        return string.format(value, ...)
    end
    return value
end
