Spaces:
Running

elffuss-code / js /i18n.js
KikoCis's picture
Sync with code.elffuss.com (fc5b0ba): LFM3 on our own engine, installable app, VS Code extensions, new look; README refreshed
4bd8362 verified
Raw History Blame Contribute Delete
46.2 kB
// i18n ligero del «chrome» de Elffuss Code. El modelo ya responde en el idioma
// del navegador (agent.js → userLang); esto localiza los textos estáticos y de
// runtime de la UI (placeholder, indicadores «pensando/escribe», estado del
// modelo, saludo del proyecto, la Mente). ES por defecto — cero impacto en
// usuarios españoles — con inglés de fallback. Sustitución simple {var}.
const L = {
es: {
ph: 'Escribe aquí… (@ adjunta un archivo)',
thinking: 'Elffuss está pensando', writing: 'Elffuss escribe · {n} car.', using: 'Elffuss usa {name}',
modelLoading: 'Descargando el modelo IA · {pct}% · {loaded}/{total} MB',
modelReady: 'Modelo IA listo', modelReadyBadge: 'Modelo IA listo ✳',
welcome: '👋 Proyecto «{name}» abierto. Pregúntame por el código, pídeme cambios o dime «árbol». Todo se queda en tu máquina.',
mindTitle: 'MENTE DE ELFFUSS', avatarTitle: 'Mente de Elffuss — cerebro autónomo',
// landing (estático) + tooltips de la barra/toolbar
tagline: 'Abre tu carpeta de código y programa con una elfa al lado.',
tagline2: 'Editor tipo VS Code + agente <b>en tu navegador</b>. Nada sale de tu máquina. 😉',
openProject: '📁 Abrir carpeta de código', resume: 'Reanudar', discard: 'Descartar', cloneOpen: 'Descargar y abrir',
clonePh: 'pega la URL de un repo público (GitHub/Bitbucket)…',
modelQueued: 'Cargo ese modelo en cuanto termine el que está bajando',
searchPh: 'Buscar archivos por nombre (: ir a línea, @ símbolo, > comandos, # buscar en el código)',
tFiles: 'Explorador', tSearch: 'Buscar (Cmd/Ctrl+P)', tSearchBar: 'Buscar archivos, símbolos y comandos', tArch: 'Arquitectura (grafo de dependencias)',
tCity: 'Ciudad 3D', tTerm: 'Terminal (Ctrl+`)', tSkills: 'Skills', tActSettings: 'Ajustes y modelo',
tGitBranch: 'rama actual', tHistory: 'Historial de conversaciones', tTopSettings: 'Ajustes, modelo y API keys',
tTermClose: 'cerrar (Ctrl+`)', tTermResize: 'arrastra para redimensionar',
tCtx: 'contexto acumulado en la conversación', tPlus: 'Adjuntar archivo del proyecto (@)',
tAutoedit: 'Editar archivos automáticamente',
tHardwork: 'Hard Work: lee tu proyecto entero por partes — audita, resume o busca en código que no cabe en el modelo',
tGoal: 'Modo Objetivo: descompone el mensaje en tareas y las ejecuta una a una (planificador + ejecutor)',
tFlip: 'cambiar entre chat y editor', tSlash: 'Comandos',
// pass-3: chrome profundo del IDE (paleta, menús, historial, ajustes, notifs)
tabClose: 'Cerrar pestaña (no borra la conversación)', newConv: 'Nueva conversación',
histEmpty: 'Sin conversaciones guardadas todavía.', histDel: 'Eliminar para siempre',
confirmDel: '¿Eliminar «{title}» para siempre?', thisConv: 'esta conversación',
cmdsSep: 'Comandos', slTree: 'árbol del proyecto', slSearch: 'buscar en el código',
slSkills: 'gestionar skills', slModel: 'proveedores y modelo', slClear: 'nueva conversación',
pTree: 'árbol', pSearch: 'busca ', pCommit: 'resume los cambios y prepárame el mensaje de commit',
pProposal: 'Implementa esta propuesta de mejora con cambios reales en el código:\n\n',
attachSep: 'Adjuntar al mensaje (@)', attachOpen: 'archivo abierto', openProjFirst: 'Abre un proyecto primero',
attachChips: 'Ficheros adjuntos al mensaje', attachRemove: 'Quitar @{path} del mensaje',
autoTxt: 'Auto', reviewTxt: 'Revisar',
autoOn: 'Editar archivos automáticamente (clic para revisar antes)',
autoOff: 'Pedir confirmación antes de escribir (clic para automático)',
pSearchCode: 'Buscar en el código…', pManageSkills: 'Gestionar skills', pToggleExplorer: 'Alternar explorador',
pToggleTerm: 'Alternar terminal', pSave: 'Guardar ({k})', palCmd: 'comando',
palGotoSym: 'Ir a símbolo en el editor…', palEmpty: 'Sin resultados',
mNewFile: 'Nuevo archivo…', promptNewPath: 'Ruta del nuevo archivo:', mSave: 'Guardar', mOpenFolder: 'Abrir carpeta…',
mSearchCode: 'Buscar en el código', mGotoFile: 'Ir a archivo…', mGotoSym: 'Ir a símbolo…',
mTerminal: 'Terminal', mArch: 'Arquitectura', mAbout: 'Acerca de Elffuss Code (GitHub)',
gNotRepo: 'No es un repositorio git', gBranch: 'Rama: {b}', gLast: 'Último: {m}', gCommit: 'Redactar el mensaje de commit',
nExec: '▶ Ejecutar', nView: 'Ver en la Mente',
notifExecWaiting: '▶ La propuesta de la notificación se ejecuta en cuanto haya un modelo cargado (en modo Básico no: elige uno en ⚙️ Ajustes → Cerebro).',
notifExecLost: 'No encuentro la propuesta de la notificación (quizá ya se ejecutó en otra ventana): te abro la Mente, donde están todas.',
fallbackToast: 'Ese Gemma no cargó (memoria/GPU) — uso el ligero…',
setStoreTitle: 'Modelo descargado (se cachea en tu navegador)', setClear: 'Vaciar caché', setClearing: 'Vaciando…',
setCached: '{gb} en modelos guardados', setNone: 'Ningún modelo guardado todavía',
setBrToken: 'Token (lo imprime el programa al arrancarlo)', brTokenPh: 'pega aquí el token…',
setFeedbackPh: 'Cuéntanos qué ha pasado o qué te gustaría que hiciera…',
lblModel: 'Modelo', lblApiKey: 'API key',
setCalc: 'Calculando espacio…', setPersist: '✓ almacenamiento persistente (no se borra solo)',
setNoPersist: '⚠ sin persistencia: el navegador podría desalojarlo', setLimit: ' · límite ~{gb}',
setModelPh: 'modelo (p. ej. gpt-4o-mini)', keyNeeded: 'clave (no necesaria)',
wsTitle: "Espacio de trabajo (tu disco)",
wsDesc: "Tus conversaciones y skills viven en este navegador, que puede borrarlas. Guárdalas en una carpeta y quedan como ficheros normales.",
wsNoSupport: "Este navegador no permite elegir carpeta. Usa «Descargar copia».",
wsNoFolder: "Sin carpeta: solo viven en este navegador.",
wsFolder: "Carpeta: {name}",
wsNeedsPerm: "«{name}» necesita permiso otra vez (pasa al recargar).",
wsPick: "Elegir carpeta",
wsUseProject: "Usar la del proyecto",
wsRegrant: "Conceder permiso",
wsSaveNow: "Guardar ahora",
wsSaved: "Guardado ({n} almacenes)",
wsAuto: "Guardar solo",
wsForget: "Olvidar carpeta",
wsDownload: "Descargar copia",
wsWhat: "Qué hay guardado",
setTitle: "Ajustes",
setModelCards: 'Fichas de los modelos:', setModelCardFor: 'Ficha de {name} en Hugging Face',
close: "cerrar",
setBrainTitle: "Cerebro (modelo)",
setModelLfm3Sub: "Por defecto · razona · Elffuss Engine · ~1.8 GB",
setModelE4bSub: "Más pesado · WebGPU local · ~2.8 GB",
setModelE2bSub: "Ligero · WebGPU local · ~2 GB",
setModelOnnxSub: "Ligero · WebGPU · ~600 MB",
setBrainGpuBlocked: "Tu navegador tiene WebGPU, pero ahora mismo no da acceso a la GPU, y los cerebros locales la necesitan: queda el modo básico. Suele arreglarse cerrando y volviendo a abrir el navegador (sobre todo si tiene una actualización pendiente); en Chrome, chrome://gpu dice por qué.",
setBrainNeedsGpu: "Este navegador no da acceso a la GPU (WebGPU), y los cerebros locales la necesitan: sin ella queda el modo básico. Prueba en Chrome o Edge de escritorio, o conecta un modelo externo en Ajustes.",
setModelRulesSub: "Órdenes directas, cero descarga",
setBridgeTitle: "🔌 Bridge local (ejecución real en tu máquina)",
setBridgeDisconnected: "desconectado",
setBridgeFolderPh: "/ruta/completa/a/tu/proyecto",
setBridgeConnect: "Conectar",
setBridgeOnStatus: "✓ conectado — ejecución real activa",
setBridgeNoToken: "⚠️ pega el token que imprimió el programa al arrancarlo",
setBridgeConnecting: "Conectando…",
setBridgeConnectedMsg: "✔ conectado — ejecución real en tu máquina",
setPermTitle: "✅ Permisos de ejecución",
setGoalTitle: "🎯 Modo Objetivo",
setTelTitle: "📨 Errores y feedback",
setTelEmpty: "escribe algo primero",
setTelThanks: "¡enviado, gracias!",
setProvTitle: "Proveedores externos (opcional · la clave se queda en tu navegador)",
setProvUse: "Usar",
setManageSkillsBtn: "Gestionar skills para Elffuss",
skRemove: "Quitar",
skBrowse: "Explorar",
skAddRepoPh: "owner/repo o URL de GitHub (p. ej. OpenClaude/…)",
skAddRepo: "Añadir repo",
hwPlaceholder: "⛏ Hard Work: pregunta algo sobre TODO el proyecto…",
hwNeedBrain: "Hard Work necesita un cerebro cargado: elige un modelo en Ajustes y reintenta.",
hwNeedProject: "Hard Work trabaja sobre tu proyecto. Abre una carpeta primero y vuelve a pulsar ⛏ Hard Work.",
hwReading: "Hard Work · leyendo el proyecto…",
hwNoFiles: "No encontré archivos de texto/código legibles en el proyecto.",
hwTrimmed: " — recortado",
hwPhaseReduce: "Hard Work · sintetizando…",
hwResultTrunc: " Proyecto recortado al máximo — acota con una subcarpeta.",
planPlanning: "planificando…",
planRunning: "ejecutando…",
planDone: "completado",
planFailed: "con fallos",
planStopped: "parado",
stopping: "Parando…",
stopped: "Parado.",
stoppedNote: "(Parado.)",
rulesHello: "¡Hola!",
rulesHelp: "Estoy en modo básico (sin modelo). Entiendo:\n• «árbol» / «qué hay en el proyecto»\n• «lee <archivo>» · «abre <archivo>»\n• «busca <texto>»\n• «escribe <archivo>: <contenido>»\nPara programar de verdad, elige un modelo en ⚙️ Ajustes → Cerebro (o pulsa el punto de estado del modelo, arriba a la derecha).",
wsOpfsName: "OPFS (navegador)",
send: "Enviar",
stop: "Parar",
stModelLoadingAI: "Cargando el modelo IA…",
termCapsBridge: "🔌 Bridge local: node/npm/python reales",
termCapsNoBridge: "shell del proyecto · node/npm/python → Bridge local (⚙ Ajustes)",
setBridgeFolderLabel: "Carpeta de trabajo (opcional — si no, la carpeta desde la que arrancaste el bridge; fuera de ella no ejecuta nada)",
setBridgeDesc: "Un pequeño programa que TÚ ejecutas en tu ordenador — le da a la elfa ejecución real (node, npm, python…) sin salir de tu máquina. Nada se instala en el navegador.",
setBridgeShaHow: 'Para comprobar la descarga: shasum -a 256 -c, con el fichero',
setBridgeDownload: "⬇ Descargar para {os}",
setBridgeOtherOS: "otro sistema operativo",
setBridgeOld: "¿Ya tenías un bridge y ahora no conecta? Descárgalo otra vez (versión 1.1.2): los anteriores a la 1.1.1 no aceptan la dirección nueva de Elffuss Code.",
setBridgeUpdate: "Tu bridge es la versión {v}: descarga la {want}. Con la tuya, parar un comando no para lo que este arrancó (un «npm run dev», un servidor…), que sigue corriendo en tu máquina.",
setModelRulesName: "Básico (sin modelo)",
// ronda UX 2026-10: cola, guardar, avisos honestos
queuedTitle: "En cola: sale en cuanto termine lo de ahora",
queuedCancelled: "Descartado: pulsaste ■ antes de que le tocara",
hwPhasePlan: "Hard Work · {n} partes ({k}k){trim}",
hwPhaseMap: "Hard Work · leyendo {i}/{n}",
hwPhaseGroup: "Hard Work · fundiendo {g}/{n}",
hwResult: "⛏ Hard Work (RLM): {n} partes, {k} con señal.",
hwFailed: "Hard Work falló: {e}",
// editor: guardar, cerrar con cambios, pestañas y árbol
saved: "💾 {path} guardado", saveFailed: "No pude guardar {path}: {e}", noFileOpen: "Abre un fichero primero",
openFailed: "No pude abrir {path}: {e}",
dirtyTitle: "¿Guardar los cambios de «{name}»?", dirtyBody: "Si no los guardas, se pierden.",
dirtySave: "Guardar", dirtyDiscard: "No guardar", dirtyCancel: "Cancelar",
editorTabs: "Ficheros abiertos", closeFile: "Cerrar {name}", closeFileDirty: "Cerrar {name} (cambios sin guardar)", tabUnsaved: "(cambios sin guardar)",
fileDeletedDirty: "borrado del disco; guárdalo para recrearlo",
tmClose: "Cerrar", tmCloseOthers: "Cerrar otras", tmCloseRight: "Cerrar las de la derecha", tmCloseAll: "Cerrar todas",
tmCopyPath: "Copiar ruta", tmViewSource: "Ver código fuente", tmPreview: "Vista previa",
tmNewFile: "Nuevo archivo…", tmNewFolder: "Nueva carpeta…", tmOpen: "Abrir", tmRename: "Renombrar…", tmDelete: "Eliminar",
promptNewFile: "Nombre del nuevo archivo:", promptNewFolder: "Nombre de la nueva carpeta:", promptRename: "Nuevo nombre:",
confirmDelete: "¿Eliminar «{name}»?", opFailed: "No se pudo: {e}",
created: "Creado «{name}»", renamed: "Renombrado «{from}» → «{to}»", deleted: "Eliminado «{name}»",
pathCopied: "Ruta copiada: {path}", pathCopyFailed: "No pude copiar la ruta (el navegador no dejó usar el portapapeles)",
explorer: "Explorador del proyecto", treeMore: "… y {n} más (no se muestran)",
editorEmpty: "Abre un fichero del explorador, o pídele algo a la elfa.",
mPalette: "Paleta de comandos",
// landing
openFolderFailed: "No pude abrir la carpeta: {e}", openingIde: "Abriendo el editor…",
noFsAccess: "Este navegador no deja abrir carpetas de tu disco (hace falta Chrome o Edge en un ordenador). Puedes probar con una carpeta privada del navegador.",
tryBrowser: "Probar en el navegador (sin carpeta)",
clonePasteUrl: "Pega la URL de un repo público de GitHub o Bitbucket.",
cloneBadUrl: "URL no reconocida. Usa github.com/usuario/repo o bitbucket.org/usuario/repo",
cloneListing: "Listando el repo…", cloneHalf: "Descarga a medias de {repo} ({n}/{total} ficheros)",
reopenFolder: "Reabrir «{name}»",
openFolderBusy: "La elfa está trabajando en este proyecto. ¿Abrir otra carpeta igualmente?",
// Mente y cerebro autónomo
mindThought: "pensamiento", mindEmpty: "(sin contenido)", mindOpenProposal: "Abrir la propuesta {name}",
mindOpenPath: "abrir {path} en el editor", mindExec: "▶ Ejecutar esta propuesta", mindOpenEditor: "Abrir en el editor",
mindFlyTo: "Llevar la cámara a {name}", mindLegend: "Perfiles del cerebro",
mindMusic: "♪ Poner música", mindMusicTitle: "Carga un reproductor de SoundCloud (esto sí sale a internet)",
mindMusicPlayer: "música", mindMusicOff: "■ Quitar música",
mindActivate: "▶ activar cerebro autónomo", mindResume: "▶ reanudar cerebro", mindPause: "⏸ pausar cerebro",
mindActivateTitle: "Cuando estés ocioso, revisa el proyecto con el modelo cargado y deja propuestas en {dir}/ (no toca tu código). Necesita un modelo de verdad.",
mindPauseTitle: "Pausar: deja de trabajar por su cuenta",
mindConfig: "⚙ cerebro", mindConfigTitle: "reprogramar el cerebro", mindHistory: "≡ historial", mindHistoryTitle: "ver todo lo que ha llegado",
mindClose: "✕ salir", mindCloseTitle: "salir (Esc)", mindLogTitle: "Historial completo",
cfgTitle: "⚙ Reprogramar el cerebro", cfgNotif: "🔔 Notificaciones del navegador:", cfgNotifAsk: "Activar",
cfgNotifUnsupported: "no soportadas por este navegador", cfgNotifGranted: "✓ concedidas — avisaré cuando encuentre algo bueno",
cfgNotifDenied: "✕ bloqueadas — actívalas en los ajustes del sitio del navegador", cfgNotifDefault: "aún no pedidas",
cfgMission: "Misión (qué quieres que haga por su cuenta)", cfgDir: "Carpeta-alma (dentro del proyecto)",
cfgProfiles: "Perfiles — cada uno piensa en paralelo, con el color de su estrella", cfgAddProf: "+ nuevo perfil",
cfgColor: "Color", cfgName: "Nombre", cfgFocus: "En qué se centra", cfgRemove: "quitar",
cfgThink: "Pensar ahora", cfgSave: "Reprogramar",
cfgNote: "La elfa trabajará según esto cuando estés ocioso y volcará todo en esa carpeta.",
cfgCant_provider: "Sin un modelo cargado no pienso: en modo Básico solo saldrían propuestas sin sentido. Elige un modelo en ⚙ Ajustes → Cerebro.",
cfgCant_workspace: "Abre una carpeta de proyecto primero.",
cfgCant_running: "Ya estoy pensando: espera a que termine este ciclo.",
cfgCant_leader: "Otra pestaña lleva el cerebro: hazlo desde ahí.",
avatarLabel: "Mente de Elffuss",
setTelSend: "Enviar", setTelSending: "Enviando…",
mLab: "Elffuss Lab (banco de pruebas)",
// Ajustes: bridge, permisos, proveedores y modelo
setBridgeName: "Bridge local", setBridgeSource: "Código fuente del bridge",
setBridgeDisconnect: "Desconectar", setBridgeForget: "Olvidar token",
setBridgeDisconnectedMsg: "Desconectado. No se volverá a conectar solo hasta que pulses Conectar.",
setBridgeForgotMsg: "Token olvidado: este navegador ya no lo guarda.",
setPermLabel: "Escribir y editar ficheros sin pedir confirmación",
setPermNote: "Esto controla solo la escritura de ficheros (code.write / code.edit): desmárcalo si prefieres revisar cada cambio antes de aplicarlo. Los comandos del terminal (terminal.run) se ejecutan siempre sin preguntar.",
provToggle: "Activar {name}", setModelLoadingCard: "cargando…",
provDocs: 'documentación ↗', provDocsFor: 'Documentación de la API de {name}',
modelDot: "Modelo: {name} · {state} — clic para cambiarlo", modelDotBasic: "Modo básico, sin modelo de IA — clic para elegir uno",
modelState_off: "sin cargar", modelState_loading: "cargando…", modelState_on: "listo", modelState_error: "no se pudo cargar",
// teclado, menús y pestañas
menubarLabel: "Menú", menu_file: "Archivo", menu_edit: "Editar", menu_view: "Ver", menu_git: "Git",
gNoRemote: "sin remoto",
modesLabel: "Modos de trabajo", modesBtn: "Modos",
modeReview: "revisar antes de escribir", modeAuto: "Auto, escribe sin preguntar", modeGoal: "objetivo", modeHard: "Hard Work",
goalPlaceholder: "🎯 Describe el objetivo: lo descompongo en tareas y las hago una a una…",
convTabs: "Conversaciones abiertas", convBusy: "trabajando", tabCloseNamed: "Cerrar la pestaña «{title}» (no borra la conversación)",
convRename: "Renombrar…", convRenamePrompt: "Nombre de la conversación (vacío = el automático):",
convCopyLink: 'Copiar enlace', convLinkCopied: '🔗 Enlace a la conversación copiado', convLinkMissing: 'Esa conversación ya no está en este navegador.',
histDelNamed: "Eliminar para siempre «{title}»",
palSearchHint: "Escribe al menos 2 letras para buscar dentro del código",
termResizeLabel: "Altura del terminal (↑/↓)",
ctxFull: "Contexto casi lleno ({pct}%). Los mensajes viejos se comprimen solos; para empezar limpio, abre una conversación nueva con «+».",
ctxUse: "Contexto: {tok} de ~{max} tokens ({free}% libre)",
openPathTitle: "abrir {path} en el editor", proposalSent: "▶ enviado a la cola…",
retry: "Reintentar",
modelLoadFailed: "⚠️ No pude cargar el modelo: {e}",
errNet: "no se pudo descargar (¿sin conexión, o un bloqueador?)", errGpu: "este navegador no da acceso a una GPU (WebGPU); prueba el modelo ligero o el modo Básico",
errQuota: "no queda espacio en el navegador para guardarlo (libera con 💾)", errMem: "no cabe en la memoria de esta máquina; prueba uno más pequeño", errUnknown: "error desconocido",
skTitle: "🧩 Skills para Elffuss", skIntro: "Instala instrucciones especializadas (formato SKILL.md) desde repos públicos. Todo se guarda en tu navegador. Se ve el repo y lo que se inyecta.",
skInstalled: "Instaladas ({n})", skRemoveNamed: "Quitar {name}", skRemoveRepo: "Quitar el catálogo {repo}",
skLoading: "Cargando {repo}…", skFound: "{repo} — {n} skills", skInstall: "Instalar", skInstalledOne: "Instalada ✓",
skNoNet: "No pude consultar {repo}: sin conexión con GitHub (o límite de peticiones). Prueba otra vez en un momento.", skLoadFailed: "No pude listar {repo}: {e}",
skCatalogs: "Explorar catálogos", skCatalogsHint: "Abre un catálogo para ver sus skills e instalar la que necesites.",
skNone: "Ninguna todavía. Abre un catálogo de abajo e instala la que necesites.",
skHide: "Ocultar", skBrowseNamed: "Explorar {repo}", skMore: "…y {n} más: busca en el repo con el enlace ↗.",
skInstalledMsg: "«{name}» instalada. En el chat tienes cómo usarla.", skRemovedMsg: "«{name}» quitada.", skRepoAdded: "Catálogo {repo} añadido.",
skUsageInstalled: "Skill «{name}» instalada.", skUsageFollow: "Ya la sigo en cada conversación. Para usarla, pídeme por ejemplo:", skUsageAbout: "algo relacionado con «{name}»",
skErr_badRepo: "Escribe owner/repo (o pega la URL de GitHub).", skErr_rate: "GitHub limita las peticiones sin cuenta (60 por hora). Prueba otra vez en unos minutos.",
skErr_noRepo: "No encuentro ese repo: ¿existe y es público?", skErr_noMd: "No pude descargar su SKILL.md.",
"skSrc_bbgnsurftech/claude-skills-collection": "Comunidad · Mega-colección (1000+ skills)",
"skSrc_anthropics/skills": "Anthropic · Agent Skills (oficial)",
"skSrc_anthropics/claude-plugins-official": "Anthropic · Plugins oficiales",
setGoalLabel: "Tratar el próximo mensaje como un objetivo: lo descompone en tareas y las ejecuta una a una",
setGoalNote: "Igual que 🎯 Goal en «Modos»: un planificador crea la lista de tareas y un ejecutor las va cumpliendo, marcando cada una como hecha o fallida (si una falla, las siguientes se saltan en vez de seguir a ciegas).",
setTelAuto: "Enviar automáticamente los errores técnicos que ocurran, para poder arreglarlos",
setTelNote: "Apagado por defecto — tu código y el contenido de tus proyectos NUNCA se incluyen, solo el mensaje de error técnico, la pila y datos del navegador.",
setTelManual: "O manda algo tú directamente (un fallo que viste, algo que eches en falta…)",
viewBuilding: "Construyendo…", viewFailed: "No pude construir la vista: {e}", flipChat: "Chat", flipEditor: "Editor",
vlLabel: 'Ficheros de esta vista', vlFilter: 'Buscar un fichero…', vlCount: '{n} de {total}', vlMore: 'se ven {n} menos: afina la búsqueda',
vlOpen: 'Abrir {name}', vlLocate: 'Ver {name} en la vista', vlLinks: '{n} conexiones',
termClear: "limpiar", tTermClear: "limpiar la pantalla del terminal",
drawerTitle: "Archivos y herramientas",
chatLogLabel: "Conversación",
clearModelsConfirm: "Vas a borrar {size} de modelos guardados en este navegador.\n\nNo se pierde nada tuyo: solo los pesos descargados. La próxima vez habrá que bajarlos otra vez.\n\n¿Seguir?",
clearModelsShared: "Ojo: el almacén compartido de Elffuss no se pudo consultar desde aquí; puede quedar algo guardado ahí.",
clearModelsDone: "💾 Liberados {size}.", clearModelsFailed: "No se pudo vaciar: {what}.",
setSharedUnknown: " · no se pudo consultar el almacén compartido (puede haber más guardado)",
diskChipTitle: "Modelos guardados en este navegador: {size}{quota}. Pulsa para vaciarlos.", diskChipQuota: " de {quota} disponibles",
setTelFailed: "⚠️ No se pudo enviar (el servidor no lo aceptó o no hay conexión). Tu texto sigue aquí: prueba otra vez más tarde.",
},
en: {
ph: 'Type here… (@ attaches a file)',
thinking: 'Elffuss is thinking', writing: 'Elffuss writes · {n} chars', using: 'Elffuss uses {name}',
modelLoading: 'Downloading AI model · {pct}% · {loaded}/{total} MB',
modelReady: 'AI model ready', modelReadyBadge: 'AI model ready ✳',
welcome: '👋 Project “{name}” open. Ask me about the code, request changes, or say “tree”. Everything stays on your machine.',
mindTitle: 'ELFFUSS MIND', avatarTitle: 'Elffuss Mind — autonomous brain',
tagline: 'Open your code folder and program with an elf by your side.',
tagline2: 'VS Code–style editor + agent <b>in your browser</b>. Nothing leaves your machine. 😉',
openProject: '📁 Open code folder', resume: 'Resume', discard: 'Discard', cloneOpen: 'Download & open',
clonePh: 'paste the URL of a public repo (GitHub/Bitbucket)…',
modelQueued: 'I will load that model as soon as the current one finishes downloading',
searchPh: 'Search files by name (: go to line, @ symbol, > commands, # search in code)',
tFiles: 'Explorer', tSearch: 'Search (Cmd/Ctrl+P)', tSearchBar: 'Search files, symbols and commands', tArch: 'Architecture (dependency graph)',
tCity: '3D City', tTerm: 'Terminal (Ctrl+`)', tSkills: 'Skills', tActSettings: 'Settings & model',
tGitBranch: 'current branch', tHistory: 'Conversation history', tTopSettings: 'Settings, model & API keys',
tTermClose: 'close (Ctrl+`)', tTermResize: 'drag to resize',
tCtx: 'context accumulated in the conversation', tPlus: 'Attach a project file (@)',
tAutoedit: 'Edit files automatically',
tHardwork: 'Hard Work: reads your whole project in chunks — audits, summarises or searches code that does not fit in the model',
tGoal: 'Goal mode: breaks the message into tasks and runs them one by one (planner + executor)',
tFlip: 'switch between chat and editor', tSlash: 'Commands',
tabClose: 'Close tab (doesn’t delete the conversation)', newConv: 'New conversation',
histEmpty: 'No saved conversations yet.', histDel: 'Delete forever',
confirmDel: 'Delete “{title}” forever?', thisConv: 'this conversation',
cmdsSep: 'Commands', slTree: 'project tree', slSearch: 'search the code',
slSkills: 'manage skills', slModel: 'providers & model', slClear: 'new conversation',
pTree: 'tree', pSearch: 'search ', pCommit: 'summarize the changes and prepare my commit message',
pProposal: 'Implement this improvement proposal with real changes to the code:\n\n',
attachSep: 'Attach to message (@)', attachOpen: 'open file', openProjFirst: 'Open a project first',
attachChips: 'Files attached to the message', attachRemove: 'Remove @{path} from the message',
autoTxt: 'Auto', reviewTxt: 'Review',
autoOn: 'Edit files automatically (click to review first)',
autoOff: 'Ask before writing (click for automatic)',
pSearchCode: 'Search the code…', pManageSkills: 'Manage skills', pToggleExplorer: 'Toggle explorer',
pToggleTerm: 'Toggle terminal', pSave: 'Save ({k})', palCmd: 'command',
palGotoSym: 'Go to symbol in editor…', palEmpty: 'No results',
mNewFile: 'New file…', promptNewPath: 'New file path:', mSave: 'Save', mOpenFolder: 'Open folder…',
mSearchCode: 'Search the code', mGotoFile: 'Go to file…', mGotoSym: 'Go to symbol…',
mTerminal: 'Terminal', mArch: 'Architecture', mAbout: 'About Elffuss Code (GitHub)',
gNotRepo: 'Not a git repository', gBranch: 'Branch: {b}', gLast: 'Latest: {m}', gCommit: 'Draft the commit message',
nExec: '▶ Run', nView: 'View in the Mind',
notifExecWaiting: '▶ The proposal from the notification runs as soon as a model is loaded (not in Basic mode: pick one in ⚙️ Settings → Brain).',
notifExecLost: "I can't find the proposal from the notification (maybe it already ran in another window): opening the Mind, where they all are.",
fallbackToast: 'That Gemma didn’t load (memory/GPU) — using the light one…',
setStoreTitle: 'Downloaded model (cached in your browser)', setClear: 'Clear cache', setClearing: 'Clearing…',
setCached: '{gb} of stored models', setNone: 'No model stored yet',
setBrToken: 'Token (printed by the program on startup)', brTokenPh: 'paste the token here…',
setFeedbackPh: 'Tell us what happened or what you’d like it to do…',
lblModel: 'Model', lblApiKey: 'API key',
setCalc: 'Calculating space…', setPersist: '✓ persistent storage (won’t be auto-cleared)',
setNoPersist: '⚠ not persistent: the browser could evict it', setLimit: ' · limit ~{gb}',
setModelPh: 'model (e.g. gpt-4o-mini)', keyNeeded: 'key (not needed)',
wsTitle: "Workspace (your disk)",
wsDesc: "Your conversations and skills live in this browser, which can wipe them. Save them to a folder and they stay as normal files.",
wsNoSupport: "This browser can't pick a folder. Use «Download copy».",
wsNoFolder: "No folder: they only live in this browser.",
wsFolder: "Folder: {name}",
wsNeedsPerm: "«{name}» needs permission again (happens after a reload).",
wsPick: "Pick a folder",
wsUseProject: "Use the project's",
wsRegrant: "Grant permission",
wsSaveNow: "Save now",
wsSaved: "Saved ({n} stores)",
wsAuto: "Save automatically",
wsForget: "Forget folder",
wsDownload: "Download copy",
wsWhat: "What's stored",
setTitle: "Settings",
setModelCards: 'Model cards:', setModelCardFor: '{name} model card on Hugging Face',
close: "close",
setBrainTitle: "Brain (model)",
setModelLfm3Sub: "Default · reasons · Elffuss Engine · ~1.8 GB",
setModelE4bSub: "Heavier · local WebGPU · ~2.8 GB",
setModelE2bSub: "Light · local WebGPU · ~2 GB",
setModelOnnxSub: "Light · WebGPU · ~600 MB",
setBrainGpuBlocked: "Your browser has WebGPU, but right now it gives no access to the GPU, and the local brains need it: you get Basic mode. Closing and reopening the browser usually fixes it (above all with an update pending); in Chrome, chrome://gpu says why.",
setBrainNeedsGpu: "This browser gives no access to the GPU (WebGPU), and the local brains need it: without it you get Basic mode. Try desktop Chrome or Edge, or connect an external model in Settings.",
setModelRulesSub: "Direct commands, zero download",
setBridgeTitle: "🔌 Local bridge (real execution on your machine)",
setBridgeDisconnected: "disconnected",
setBridgeFolderPh: "/full/path/to/your/project",
setBridgeConnect: "Connect",
setBridgeOnStatus: "✓ connected — real execution active",
setBridgeNoToken: "⚠️ paste the token the program printed on startup",
setBridgeConnecting: "Connecting…",
setBridgeConnectedMsg: "✔ connected — real execution on your machine",
setPermTitle: "✅ Execution permissions",
setGoalTitle: "🎯 Goal mode",
setTelTitle: "📨 Errors and feedback",
setTelEmpty: "type something first",
setTelThanks: "sent, thanks!",
setProvTitle: "External providers (optional · the key stays in your browser)",
setProvUse: "Use",
setManageSkillsBtn: "Manage Skills for Elffuss",
skRemove: "Remove",
skBrowse: "Browse",
skAddRepoPh: "owner/repo or GitHub URL (e.g. OpenClaude/…)",
skAddRepo: "Add repo",
hwPlaceholder: "⛏ Hard Work: ask something about the WHOLE project…",
hwNeedBrain: "Hard Work needs a loaded brain: pick a model in Settings and try again.",
hwNeedProject: "Hard Work works on your project. Open a folder first, then press ⛏ Hard Work again.",
hwReading: "Hard Work · reading the project…",
hwNoFiles: "I found no readable text/code files in the project.",
hwTrimmed: " — trimmed",
hwPhaseReduce: "Hard Work · synthesizing…",
hwResultTrunc: " Project trimmed to the max — narrow it down to a subfolder.",
planPlanning: "planning…",
planRunning: "running…",
planDone: "completed",
planFailed: "with failures",
planStopped: "stopped",
stopping: "Stopping…",
stopped: "Stopped.",
stoppedNote: "(Stopped.)",
rulesHello: "Hello!",
rulesHelp: "I'm in basic mode (no model). I understand:\n• “tree” / “what's in the project”\n• “read <file>” · “open <file>”\n• “search <text>”\n• “write <file>: <content>”\nTo really code, pick a model in ⚙️ Settings → Brain (or press the model status dot, top right).",
wsOpfsName: "OPFS (browser)",
send: "Send",
stop: "Stop",
stModelLoadingAI: "Loading the AI model…",
termCapsBridge: "🔌 Local bridge: real node/npm/python",
termCapsNoBridge: "project shell · node/npm/python → Local bridge (⚙ Settings)",
setBridgeFolderLabel: "Working folder (optional — otherwise the folder you started the bridge from; it runs nothing outside it)",
setBridgeDesc: "A small program that YOU run on your computer — it gives the elf real execution (node, npm, python…) without leaving your machine. Nothing is installed in the browser.",
setBridgeShaHow: 'To check the download: shasum -a 256 -c, with the file',
setBridgeDownload: "⬇ Download for {os}",
setBridgeOtherOS: "another operating system",
setBridgeOld: "Already had a bridge and now it won't connect? Download it again (version 1.1.2): versions before 1.1.1 don't accept Elffuss Code's new address.",
setBridgeUpdate: "Your bridge is version {v}: download {want}. With yours, stopping a command doesn't stop what it started (an “npm run dev”, a server…), which keeps running on your machine.",
setModelRulesName: "Basic (no model)",
// UX round 2026-10: queue, save, honest notices
queuedTitle: "Queued: it goes out as soon as the current work ends",
queuedCancelled: "Dropped: you pressed ■ before its turn",
hwPhasePlan: "Hard Work · {n} chunks ({k}k){trim}",
hwPhaseMap: "Hard Work · reading {i}/{n}",
hwPhaseGroup: "Hard Work · merging {g}/{n}",
hwResult: "⛏ Hard Work (RLM): {n} chunks, {k} with signal.",
hwFailed: "Hard Work failed: {e}",
// editor: save, close with changes, tabs and tree
saved: "💾 {path} saved", saveFailed: "Couldn't save {path}: {e}", noFileOpen: "Open a file first",
openFailed: "Couldn't open {path}: {e}",
dirtyTitle: "Save the changes to “{name}”?", dirtyBody: "If you don't save them, they are lost.",
dirtySave: "Save", dirtyDiscard: "Don't save", dirtyCancel: "Cancel",
editorTabs: "Open files", closeFile: "Close {name}", closeFileDirty: "Close {name} (unsaved changes)", tabUnsaved: "(unsaved changes)",
fileDeletedDirty: "deleted from disk; save it to recreate it",
tmClose: "Close", tmCloseOthers: "Close others", tmCloseRight: "Close to the right", tmCloseAll: "Close all",
tmCopyPath: "Copy path", tmViewSource: "View source", tmPreview: "Preview",
tmNewFile: "New file…", tmNewFolder: "New folder…", tmOpen: "Open", tmRename: "Rename…", tmDelete: "Delete",
promptNewFile: "Name of the new file:", promptNewFolder: "Name of the new folder:", promptRename: "New name:",
confirmDelete: "Delete “{name}”?", opFailed: "Couldn't do it: {e}",
created: "Created “{name}”", renamed: "Renamed “{from}” → “{to}”", deleted: "Deleted “{name}”",
pathCopied: "Path copied: {path}", pathCopyFailed: "Couldn't copy the path (the browser blocked the clipboard)",
explorer: "Project explorer", treeMore: "… and {n} more (not shown)",
editorEmpty: "Open a file from the explorer, or ask the elf for something.",
mPalette: "Command palette",
// landing
openFolderFailed: "Couldn't open the folder: {e}", openingIde: "Opening the editor…",
noFsAccess: "This browser can't open folders on your disk (you need Chrome or Edge on a computer). You can try a private folder inside the browser.",
tryBrowser: "Try it in the browser (no folder)",
clonePasteUrl: "Paste the URL of a public GitHub or Bitbucket repo.",
cloneBadUrl: "Unrecognised URL. Use github.com/user/repo or bitbucket.org/user/repo",
cloneListing: "Listing the repo…", cloneHalf: "Half-finished download of {repo} ({n}/{total} files)",
reopenFolder: "Reopen “{name}”",
openFolderBusy: "The elf is working on this project. Open another folder anyway?",
// Mind and autonomous brain
mindThought: "thought", mindEmpty: "(no content)", mindOpenProposal: "Open the proposal {name}",
mindOpenPath: "open {path} in the editor", mindExec: "▶ Run this proposal", mindOpenEditor: "Open in the editor",
mindFlyTo: "Fly the camera to {name}", mindLegend: "Brain profiles",
mindMusic: "♪ Play music", mindMusicTitle: "Loads a SoundCloud player (this does go to the internet)",
mindMusicPlayer: "music", mindMusicOff: "■ Remove music",
mindActivate: "▶ turn on the autonomous brain", mindResume: "▶ resume brain", mindPause: "⏸ pause brain",
mindActivateTitle: "When you are idle, it reviews the project with the loaded model and leaves proposals in {dir}/ (it does not touch your code). Needs a real model.",
mindPauseTitle: "Pause: stop working on its own",
mindConfig: "⚙ brain", mindConfigTitle: "reprogram the brain", mindHistory: "≡ history", mindHistoryTitle: "see everything that came in",
mindClose: "✕ exit", mindCloseTitle: "exit (Esc)", mindLogTitle: "Full history",
cfgTitle: "⚙ Reprogram the brain", cfgNotif: "🔔 Browser notifications:", cfgNotifAsk: "Turn on",
cfgNotifUnsupported: "not supported by this browser", cfgNotifGranted: "✓ granted — I'll let you know when I find something good",
cfgNotifDenied: "✕ blocked — turn them on in the browser's site settings", cfgNotifDefault: "not asked yet",
cfgMission: "Mission (what you want it to do on its own)", cfgDir: "Soul folder (inside the project)",
cfgProfiles: "Profiles — each one thinks in parallel, with the colour of its star", cfgAddProf: "+ new profile",
cfgColor: "Colour", cfgName: "Name", cfgFocus: "What it focuses on", cfgRemove: "remove",
cfgThink: "Think now", cfgSave: "Reprogram",
cfgNote: "The elf will work on this when you are idle and put everything in that folder.",
cfgCant_provider: "I don't think without a loaded model: in Basic mode only nonsense proposals would come out. Pick a model in ⚙ Settings → Brain.",
cfgCant_workspace: "Open a project folder first.",
cfgCant_running: "I'm already thinking: wait for this cycle to end.",
cfgCant_leader: "Another tab runs the brain: do it from there.",
avatarLabel: "Elffuss Mind",
setTelSend: "Send", setTelSending: "Sending…",
mLab: "Elffuss Lab (test bench)",
// Settings: bridge, permissions, providers and model
setBridgeName: "Local bridge", setBridgeSource: "Bridge source code",
setBridgeDisconnect: "Disconnect", setBridgeForget: "Forget token",
setBridgeDisconnectedMsg: "Disconnected. It won't reconnect by itself until you press Connect.",
setBridgeForgotMsg: "Token forgotten: this browser no longer stores it.",
setPermLabel: "Write and edit files without asking",
setPermNote: "This only controls writing files (code.write / code.edit): untick it if you prefer to review each change before it is applied. Terminal commands (terminal.run) always run without asking.",
provToggle: "Turn on {name}", setModelLoadingCard: "loading…",
provDocs: 'docs ↗', provDocsFor: '{name} API documentation',
modelDot: "Model: {name} · {state} — click to change it", modelDotBasic: "Basic mode, no AI model — click to pick one",
modelState_off: "not loaded", modelState_loading: "loading…", modelState_on: "ready", modelState_error: "couldn't load",
// keyboard, menus and tabs
menubarLabel: "Menu", menu_file: "File", menu_edit: "Edit", menu_view: "View", menu_git: "Git",
gNoRemote: "no remote",
modesLabel: "Work modes", modesBtn: "Modes",
modeReview: "review before writing", modeAuto: "Auto, writes without asking", modeGoal: "goal", modeHard: "Hard Work",
goalPlaceholder: "🎯 Describe the goal: I'll break it into tasks and do them one by one…",
convTabs: "Open conversations", convBusy: "working", tabCloseNamed: "Close the “{title}” tab (doesn't delete the conversation)",
convRename: "Rename…", convRenamePrompt: "Conversation name (empty = automatic):",
convCopyLink: 'Copy link', convLinkCopied: '🔗 Link to the conversation copied', convLinkMissing: 'That conversation is no longer in this browser.',
histDelNamed: "Delete “{title}” forever",
palSearchHint: "Type at least 2 letters to search inside the code",
termResizeLabel: "Terminal height (↑/↓)",
ctxFull: "Context almost full ({pct}%). Old messages are compressed automatically; to start clean, open a new conversation with “+”.",
ctxUse: "Context: {tok} of ~{max} tokens ({free}% free)",
openPathTitle: "open {path} in the editor", proposalSent: "▶ sent to the queue…",
retry: "Retry",
modelLoadFailed: "⚠️ Couldn't load the model: {e}",
errNet: "it couldn't be downloaded (offline, or a blocker?)", errGpu: "this browser gives no access to a GPU (WebGPU); try the light model or Basic mode",
errQuota: "there is no room left in the browser to store it (free some with 💾)", errMem: "it doesn't fit in this machine's memory; try a smaller one", errUnknown: "unknown error",
skTitle: "🧩 Skills for Elffuss", skIntro: "Install specialised instructions (SKILL.md format) from public repos. Everything is stored in your browser. You can see the repo and what gets injected.",
skInstalled: "Installed ({n})", skRemoveNamed: "Remove {name}", skRemoveRepo: "Remove the {repo} catalog",
skLoading: "Loading {repo}…", skFound: "{repo} — {n} skills", skInstall: "Install", skInstalledOne: "Installed ✓",
skNoNet: "Couldn't reach {repo}: no connection to GitHub (or rate limited). Try again in a moment.", skLoadFailed: "Couldn't list {repo}: {e}",
skCatalogs: "Browse catalogs", skCatalogsHint: "Open a catalog to see its skills and install the one you need.",
skNone: "None yet. Open a catalog below and install the one you need.",
skHide: "Hide", skBrowseNamed: "Browse {repo}", skMore: "…and {n} more: look in the repo with the ↗ link.",
skInstalledMsg: "“{name}” installed. The chat shows how to use it.", skRemovedMsg: "“{name}” removed.", skRepoAdded: "Catalog {repo} added.",
skUsageInstalled: "Skill “{name}” installed.", skUsageFollow: "I follow it in every conversation from now on. To use it, ask me for example:", skUsageAbout: "something about “{name}”",
skErr_badRepo: "Type owner/repo (or paste the GitHub URL).", skErr_rate: "GitHub limits requests without an account (60 per hour). Try again in a few minutes.",
skErr_noRepo: "I can't find that repo: does it exist and is it public?", skErr_noMd: "Couldn't download its SKILL.md.",
"skSrc_bbgnsurftech/claude-skills-collection": "Community · Mega collection (1000+ skills)",
"skSrc_anthropics/skills": "Anthropic · Agent Skills (official)",
"skSrc_anthropics/claude-plugins-official": "Anthropic · Official plugins",
setGoalLabel: "Treat the next message as a goal: break it into tasks and run them one by one",
setGoalNote: "Same as 🎯 Goal under “Modes”: a planner writes the task list and an executor works through it, marking each one done or failed (if one fails, the next ones are skipped instead of carrying on blindly).",
setTelAuto: "Automatically send technical errors when they happen, so they can be fixed",
setTelNote: "Off by default — your code and your projects' content are NEVER included, only the technical error message, the stack and browser data.",
setTelManual: "Or send something yourself (a bug you saw, something you miss…)",
viewBuilding: "Building…", viewFailed: "Couldn't build the view: {e}", flipChat: "Chat", flipEditor: "Editor",
vlLabel: 'Files in this view', vlFilter: 'Find a file…', vlCount: '{n} of {total}', vlMore: '{n} not shown: narrow the search',
vlOpen: 'Open {name}', vlLocate: 'Show {name} in the view', vlLinks: '{n} connections',
termClear: "clear", tTermClear: "clear the terminal screen",
drawerTitle: "Files and tools",
chatLogLabel: "Conversation",
clearModelsConfirm: "You are about to delete {size} of models stored in this browser.\n\nNothing of yours is lost: only the downloaded weights. Next time they will be downloaded again.\n\nContinue?",
clearModelsShared: "Note: Elffuss's shared store could not be checked from here; something may remain stored there.",
clearModelsDone: "💾 Freed {size}.", clearModelsFailed: "Couldn't clear: {what}.",
setSharedUnknown: " · the shared store could not be checked (there may be more stored)",
diskChipTitle: "Models stored in this browser: {size}{quota}. Click to clear them.", diskChipQuota: " of {quota} available",
setTelFailed: "⚠️ Couldn't send it (the server didn't accept it or there is no connection). Your text is still here: try again later.",
},
};
// Idioma del chrome: 2 letras, ES por defecto.
export function uiLang() {
return (navigator.language || 'es').slice(0, 2).toLowerCase();
}
// Traduce una clave de runtime con sustitución {var}. Fallback: idioma →
// inglés → la propia clave.
export function t(key, vars) {
const s = (L[uiLang()] || L.en)[key] ?? L.en[key] ?? key;
return vars ? s.replace(/\{(\w+)\}/g, (_, k) => (vars[k] ?? '')) : s;
}
// Textos estáticos del HTML (landing, placeholders, tooltips) que no pasan por
// t() en runtime. Se cablean una vez al arrancar; ES es el HTML por defecto.
export function applyI18n() {
document.documentElement.lang = uiLang();
const set = (sel, prop, key) => { const e = document.querySelector(sel); if (e) e[prop] = t(key); };
set('#prompt', 'placeholder', 'ph');
const tag = document.querySelector('#landing .tag');
if (tag) tag.innerHTML = `${t('tagline')}<br>${t('tagline2')}`;
set('#open-project', 'textContent', 'openProject');
set('#resume-clone-btn', 'textContent', 'resume');
set('#discard-clone-btn', 'textContent', 'discard');
set('#clone-btn', 'textContent', 'cloneOpen');
set('#clone-url', 'placeholder', 'clonePh');
set('#try-browser', 'textContent', 'tryBrowser');
set('#term-clear', 'textContent', 'termClear');
set('#pal-input', 'placeholder', 'searchPh');
set('#top-search .ts-txt', 'textContent', 'tSearchBar');
const titles = {
'#act-files': 'tFiles', '#top-search': 'tSearch', '#act-arch': 'tArch', '#act-city': 'tCity',
'#act-term': 'tTerm', '#act-skills': 'tSkills', '#act-settings': 'tActSettings',
'#git-branch': 'tGitBranch', '#btn-history': 'tHistory', '#btn-settings': 'tTopSettings',
'#term-close': 'tTermClose', '#term-resize': 'tTermResize', '#ctx-meter': 'tCtx',
'#btn-plus': 'tPlus', '#btn-autoedit': 'tAutoedit', '#btn-goal': 'tGoal',
'#btn-hardwork': 'tHardwork',
'#code-flip': 'tFlip', '#btn-slash': 'tSlash', '#btn-send': 'send',
'#term-clear': 'tTermClear',
};
for (const [sel, key] of Object.entries(titles)) set(sel, 'title', key);
document.getElementById('chat-log')?.setAttribute('aria-label', t('chatLogLabel'));
}