| 1 | // i18n ligero del «chrome» de Elffuss Code. El modelo ya responde en el idioma |
| 2 | // del navegador (agent.js → userLang); esto localiza los textos estáticos y de |
| 3 | // runtime de la UI (placeholder, indicadores «pensando/escribe», estado del |
| 4 | // modelo, saludo del proyecto, la Mente). ES por defecto — cero impacto en |
| 5 | // usuarios españoles — con inglés de fallback. Sustitución simple {var}. |
| 6 | const L = { |
| 7 | es: { |
| 8 | ph: 'Escribe aquí… (@ adjunta un archivo)', |
| 9 | thinking: 'Elffuss está pensando', writing: 'Elffuss escribe · {n} car.', using: 'Elffuss usa {name}', |
| 10 | modelLoading: 'Descargando el modelo IA · {pct}% · {loaded}/{total} MB', |
| 11 | modelReady: 'Modelo IA listo', modelReadyBadge: 'Modelo IA listo ✳', |
| 12 | welcome: '👋 Proyecto «{name}» abierto. Pregúntame por el código, pídeme cambios o dime «árbol». Todo se queda en tu máquina.', |
| 13 | mindTitle: 'MENTE DE ELFFUSS', avatarTitle: 'Mente de Elffuss — cerebro autónomo', |
| 14 | // landing (estático) + tooltips de la barra/toolbar |
| 15 | tagline: 'Abre tu carpeta de código y programa con una elfa al lado.', |
| 16 | tagline2: 'Editor tipo VS Code + agente <b>en tu navegador</b>. Nada sale de tu máquina. 😉', |
| 17 | openProject: '📁 Abrir carpeta de código', resume: 'Reanudar', discard: 'Descartar', cloneOpen: 'Descargar y abrir', |
| 18 | clonePh: 'pega la URL de un repo público (GitHub/Bitbucket)…', |
| 19 | searchPh: 'Buscar archivos por nombre (: ir a línea, @ símbolo, > comandos, # buscar en el código)', |
| 20 | tFiles: 'Explorador', tSearch: 'Buscar (Cmd/Ctrl+P)', tSearchBar: 'Buscar archivos, símbolos y comandos', tArch: 'Arquitectura (grafo de dependencias)', |
| 21 | tCity: 'Ciudad 3D', tTerm: 'Terminal (Ctrl+`)', tSkills: 'Skills', tActSettings: 'Ajustes y modelo', |
| 22 | tGitBranch: 'rama actual', tHistory: 'Historial de conversaciones', tTopSettings: 'Ajustes, modelo y API keys', |
| 23 | tTermClose: 'cerrar (Ctrl+`)', tTermResize: 'arrastra para redimensionar', |
| 24 | tCtx: 'contexto acumulado en la conversación', tPlus: 'Adjuntar archivo del proyecto (@)', |
| 25 | tAutoedit: 'Editar archivos automáticamente', |
| 26 | tHardwork: 'Hard Work: lee tu proyecto entero por partes — audita, resume o busca en código que no cabe en el modelo', |
| 27 | tGoal: 'Modo Objetivo: descompone el mensaje en tareas y las ejecuta una a una (planificador + ejecutor)', |
| 28 | tFlip: 'cambiar entre chat y editor', tSlash: 'Comandos', |
| 29 | // pass-3: chrome profundo del IDE (paleta, menús, historial, ajustes, notifs) |
| 30 | tabClose: 'Cerrar pestaña (no borra la conversación)', newConv: 'Nueva conversación', |
| 31 | histEmpty: 'Sin conversaciones guardadas todavía.', histDel: 'Eliminar para siempre', |
| 32 | confirmDel: '¿Eliminar «{title}» para siempre?', thisConv: 'esta conversación', |
| 33 | cmdsSep: 'Comandos', slTree: 'árbol del proyecto', slSearch: 'buscar en el código', |
| 34 | slSkills: 'gestionar skills', slModel: 'proveedores y modelo', slClear: 'nueva conversación', |
| 35 | pTree: 'árbol', pSearch: 'busca ', pCommit: 'resume los cambios y prepárame el mensaje de commit', |
| 36 | pProposal: 'Implementa esta propuesta de mejora con cambios reales en el código:\n\n', |
| 37 | attachSep: 'Adjuntar al mensaje (@)', attachOpen: 'archivo abierto', openProjFirst: 'Abre un proyecto primero', |
| 38 | attachChips: 'Ficheros adjuntos al mensaje', attachRemove: 'Quitar @{path} del mensaje', |
| 39 | autoTxt: 'Auto', reviewTxt: 'Revisar', |
| 40 | autoOn: 'Editar archivos automáticamente (clic para revisar antes)', |
| 41 | autoOff: 'Pedir confirmación antes de escribir (clic para automático)', |
| 42 | pSearchCode: 'Buscar en el código…', pManageSkills: 'Gestionar skills', pToggleExplorer: 'Alternar explorador', |
| 43 | pToggleTerm: 'Alternar terminal', pSave: 'Guardar ({k})', palCmd: 'comando', |
| 44 | palGotoSym: 'Ir a símbolo en el editor…', palEmpty: 'Sin resultados', |
| 45 | mNewFile: 'Nuevo archivo…', promptNewPath: 'Ruta del nuevo archivo:', mSave: 'Guardar', mOpenFolder: 'Abrir carpeta…', |
| 46 | mSearchCode: 'Buscar en el código', mGotoFile: 'Ir a archivo…', mGotoSym: 'Ir a símbolo…', |
| 47 | mTerminal: 'Terminal', mArch: 'Arquitectura', mAbout: 'Acerca de Elffuss Code (GitHub)', |
| 48 | gNotRepo: 'No es un repositorio git', gBranch: 'Rama: {b}', gLast: 'Último: {m}', gCommit: 'Redactar el mensaje de commit', |
| 49 | nExec: '▶ Ejecutar', nView: 'Ver en la Mente', |
| 50 | 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).', |
| 51 | notifExecLost: 'No encuentro la propuesta de la notificación (quizá ya se ejecutó en otra ventana): te abro la Mente, donde están todas.', |
| 52 | fallbackToast: 'Ese Gemma no cargó (memoria/GPU) — uso el ligero…', |
| 53 | setStoreTitle: 'Modelo descargado (se cachea en tu navegador)', setClear: 'Vaciar caché', setClearing: 'Vaciando…', |
| 54 | setCached: '{gb} en modelos guardados', setNone: 'Ningún modelo guardado todavía', |
| 55 | setBrToken: 'Token (lo imprime el programa al arrancarlo)', brTokenPh: 'pega aquí el token…', |
| 56 | setFeedbackPh: 'Cuéntanos qué ha pasado o qué te gustaría que hiciera…', |
| 57 | lblModel: 'Modelo', lblApiKey: 'API key', |
| 58 | setCalc: 'Calculando espacio…', setPersist: '✓ almacenamiento persistente (no se borra solo)', |
| 59 | setNoPersist: '⚠ sin persistencia: el navegador podría desalojarlo', setLimit: ' · límite ~{gb}', |
| 60 | setModelPh: 'modelo (p. ej. gpt-4o-mini)', keyNeeded: 'clave (no necesaria)', |
| 61 | wsTitle: "Espacio de trabajo (tu disco)", |
| 62 | wsDesc: "Tus conversaciones y skills viven en este navegador, que puede borrarlas. Guárdalas en una carpeta y quedan como ficheros normales.", |
| 63 | wsNoSupport: "Este navegador no permite elegir carpeta. Usa «Descargar copia».", |
| 64 | wsNoFolder: "Sin carpeta: solo viven en este navegador.", |
| 65 | wsFolder: "Carpeta: {name}", |
| 66 | wsNeedsPerm: "«{name}» necesita permiso otra vez (pasa al recargar).", |
| 67 | wsPick: "Elegir carpeta", |
| 68 | wsUseProject: "Usar la del proyecto", |
| 69 | wsRegrant: "Conceder permiso", |
| 70 | wsSaveNow: "Guardar ahora", |
| 71 | wsSaved: "Guardado ({n} almacenes)", |
| 72 | wsAuto: "Guardar solo", |
| 73 | wsForget: "Olvidar carpeta", |
| 74 | wsDownload: "Descargar copia", |
| 75 | wsWhat: "Qué hay guardado", |
| 76 | setTitle: "Ajustes", |
| 77 | setModelCards: 'Fichas de los modelos:', setModelCardFor: 'Ficha de {name} en Hugging Face', |
| 78 | close: "cerrar", |
| 79 | setBrainTitle: "Cerebro (modelo)", |
| 80 | setModelE4bSub: "El mejor · WebGPU local · ~2.8 GB", |
| 81 | setModelE2bSub: "Ligero · WebGPU local · ~2 GB", |
| 82 | setModelOnnxSub: "Ligero · WebGPU · ~600 MB", |
| 83 | 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.", |
| 84 | setModelRulesSub: "Órdenes directas, cero descarga", |
| 85 | setBridgeTitle: "🔌 Bridge local (ejecución real en tu máquina)", |
| 86 | setBridgeDisconnected: "desconectado", |
| 87 | setBridgeFolderPh: "/ruta/completa/a/tu/proyecto", |
| 88 | setBridgeConnect: "Conectar", |
| 89 | setBridgeOnStatus: "✓ conectado — ejecución real activa", |
| 90 | setBridgeNoToken: "⚠️ pega el token que imprimió el programa al arrancarlo", |
| 91 | setBridgeConnecting: "Conectando…", |
| 92 | setBridgeConnectedMsg: "✔ conectado — ejecución real en tu máquina", |
| 93 | setPermTitle: "✅ Permisos de ejecución", |
| 94 | setGoalTitle: "🎯 Modo Objetivo", |
| 95 | setTelTitle: "📨 Errores y feedback", |
| 96 | setTelEmpty: "escribe algo primero", |
| 97 | setTelThanks: "¡enviado, gracias!", |
| 98 | setProvTitle: "Proveedores externos (opcional · la clave se queda en tu navegador)", |
| 99 | setProvUse: "Usar", |
| 100 | setManageSkillsBtn: "Gestionar skills para Elffuss", |
| 101 | skRemove: "Quitar", |
| 102 | skBrowse: "Explorar", |
| 103 | skAddRepoPh: "owner/repo o URL de GitHub (p. ej. OpenClaude/…)", |
| 104 | skAddRepo: "Añadir repo", |
| 105 | hwPlaceholder: "⛏ Hard Work: pregunta algo sobre TODO el proyecto…", |
| 106 | hwNeedBrain: "Hard Work necesita un cerebro cargado: elige un modelo en Ajustes y reintenta.", |
| 107 | hwNeedProject: "Hard Work trabaja sobre tu proyecto. Abre una carpeta primero y vuelve a pulsar ⛏ Hard Work.", |
| 108 | hwReading: "Hard Work · leyendo el proyecto…", |
| 109 | hwNoFiles: "No encontré archivos de texto/código legibles en el proyecto.", |
| 110 | hwTrimmed: " — recortado", |
| 111 | hwPhaseReduce: "Hard Work · sintetizando…", |
| 112 | hwResultTrunc: " Proyecto recortado al máximo — acota con una subcarpeta.", |
| 113 | planPlanning: "planificando…", |
| 114 | planRunning: "ejecutando…", |
| 115 | planDone: "completado", |
| 116 | planFailed: "con fallos", |
| 117 | planStopped: "parado", |
| 118 | stopping: "Parando…", |
| 119 | stopped: "Parado.", |
| 120 | stoppedNote: "(Parado.)", |
| 121 | rulesHello: "¡Hola!", |
| 122 | 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).", |
| 123 | wsOpfsName: "OPFS (navegador)", |
| 124 | send: "Enviar", |
| 125 | stop: "Parar", |
| 126 | stModelLoadingAI: "Cargando el modelo IA…", |
| 127 | termCapsBridge: "🔌 Bridge local: node/npm/python reales", |
| 128 | termCapsNoBridge: "shell del proyecto · node/npm/python → Bridge local (⚙ Ajustes)", |
| 129 | setBridgeFolderLabel: "Carpeta de trabajo (opcional — si no, la carpeta desde la que arrancaste el bridge; fuera de ella no ejecuta nada)", |
| 130 | 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.", |
| 131 | setBridgeShaHow: 'Para comprobar la descarga: shasum -a 256 -c, con el fichero', |
| 132 | setBridgeDownload: "⬇ Descargar para {os}", |
| 133 | setBridgeOtherOS: "otro sistema operativo", |
| 134 | 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.", |
| 135 | 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.", |
| 136 | setModelRulesName: "Básico (sin modelo)", |
| 137 | // ronda UX 2026-10: cola, guardar, avisos honestos |
| 138 | queuedTitle: "En cola: sale en cuanto termine lo de ahora", |
| 139 | queuedCancelled: "Descartado: pulsaste ■ antes de que le tocara", |
| 140 | hwPhasePlan: "Hard Work · {n} partes ({k}k){trim}", |
| 141 | hwPhaseMap: "Hard Work · leyendo {i}/{n}", |
| 142 | hwPhaseGroup: "Hard Work · fundiendo {g}/{n}", |
| 143 | hwResult: "⛏ Hard Work (RLM): {n} partes, {k} con señal.", |
| 144 | hwFailed: "Hard Work falló: {e}", |
| 145 | // editor: guardar, cerrar con cambios, pestañas y árbol |
| 146 | saved: "💾 {path} guardado", saveFailed: "No pude guardar {path}: {e}", noFileOpen: "Abre un fichero primero", |
| 147 | openFailed: "No pude abrir {path}: {e}", |
| 148 | dirtyTitle: "¿Guardar los cambios de «{name}»?", dirtyBody: "Si no los guardas, se pierden.", |
| 149 | dirtySave: "Guardar", dirtyDiscard: "No guardar", dirtyCancel: "Cancelar", |
| 150 | editorTabs: "Ficheros abiertos", closeFile: "Cerrar {name}", closeFileDirty: "Cerrar {name} (cambios sin guardar)", tabUnsaved: "(cambios sin guardar)", |
| 151 | fileDeletedDirty: "borrado del disco; guárdalo para recrearlo", |
| 152 | tmClose: "Cerrar", tmCloseOthers: "Cerrar otras", tmCloseRight: "Cerrar las de la derecha", tmCloseAll: "Cerrar todas", |
| 153 | tmCopyPath: "Copiar ruta", tmViewSource: "Ver código fuente", tmPreview: "Vista previa", |
| 154 | tmNewFile: "Nuevo archivo…", tmNewFolder: "Nueva carpeta…", tmOpen: "Abrir", tmRename: "Renombrar…", tmDelete: "Eliminar", |
| 155 | promptNewFile: "Nombre del nuevo archivo:", promptNewFolder: "Nombre de la nueva carpeta:", promptRename: "Nuevo nombre:", |
| 156 | confirmDelete: "¿Eliminar «{name}»?", opFailed: "No se pudo: {e}", |
| 157 | created: "Creado «{name}»", renamed: "Renombrado «{from}» → «{to}»", deleted: "Eliminado «{name}»", |
| 158 | pathCopied: "Ruta copiada: {path}", pathCopyFailed: "No pude copiar la ruta (el navegador no dejó usar el portapapeles)", |
| 159 | explorer: "Explorador del proyecto", treeMore: "… y {n} más (no se muestran)", |
| 160 | editorEmpty: "Abre un fichero del explorador, o pídele algo a la elfa.", |
| 161 | mPalette: "Paleta de comandos", |
| 162 | // landing |
| 163 | openFolderFailed: "No pude abrir la carpeta: {e}", openingIde: "Abriendo el editor…", |
| 164 | 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.", |
| 165 | tryBrowser: "Probar en el navegador (sin carpeta)", |
| 166 | clonePasteUrl: "Pega la URL de un repo público de GitHub o Bitbucket.", |
| 167 | cloneBadUrl: "URL no reconocida. Usa github.com/usuario/repo o bitbucket.org/usuario/repo", |
| 168 | cloneListing: "Listando el repo…", cloneHalf: "Descarga a medias de {repo} ({n}/{total} ficheros)", |
| 169 | reopenFolder: "Reabrir «{name}»", |
| 170 | openFolderBusy: "La elfa está trabajando en este proyecto. ¿Abrir otra carpeta igualmente?", |
| 171 | // Mente y cerebro autónomo |
| 172 | mindThought: "pensamiento", mindEmpty: "(sin contenido)", mindOpenProposal: "Abrir la propuesta {name}", |
| 173 | mindOpenPath: "abrir {path} en el editor", mindExec: "▶ Ejecutar esta propuesta", mindOpenEditor: "Abrir en el editor", |
| 174 | mindFlyTo: "Llevar la cámara a {name}", mindLegend: "Perfiles del cerebro", |
| 175 | mindMusic: "♪ Poner música", mindMusicTitle: "Carga un reproductor de SoundCloud (esto sí sale a internet)", |
| 176 | mindMusicPlayer: "música", mindMusicOff: "■ Quitar música", |
| 177 | mindActivate: "▶ activar cerebro autónomo", mindResume: "▶ reanudar cerebro", mindPause: "⏸ pausar cerebro", |
| 178 | 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.", |
| 179 | mindPauseTitle: "Pausar: deja de trabajar por su cuenta", |
| 180 | mindConfig: "⚙ cerebro", mindConfigTitle: "reprogramar el cerebro", mindHistory: "≡ historial", mindHistoryTitle: "ver todo lo que ha llegado", |
| 181 | mindClose: "✕ salir", mindCloseTitle: "salir (Esc)", mindLogTitle: "Historial completo", |
| 182 | cfgTitle: "⚙ Reprogramar el cerebro", cfgNotif: "🔔 Notificaciones del navegador:", cfgNotifAsk: "Activar", |
| 183 | cfgNotifUnsupported: "no soportadas por este navegador", cfgNotifGranted: "✓ concedidas — avisaré cuando encuentre algo bueno", |
| 184 | cfgNotifDenied: "✕ bloqueadas — actívalas en los ajustes del sitio del navegador", cfgNotifDefault: "aún no pedidas", |
| 185 | cfgMission: "Misión (qué quieres que haga por su cuenta)", cfgDir: "Carpeta-alma (dentro del proyecto)", |
| 186 | cfgProfiles: "Perfiles — cada uno piensa en paralelo, con el color de su estrella", cfgAddProf: "+ nuevo perfil", |
| 187 | cfgColor: "Color", cfgName: "Nombre", cfgFocus: "En qué se centra", cfgRemove: "quitar", |
| 188 | cfgThink: "Pensar ahora", cfgSave: "Reprogramar", |
| 189 | cfgNote: "La elfa trabajará según esto cuando estés ocioso y volcará todo en esa carpeta.", |
| 190 | cfgCant_provider: "Sin un modelo cargado no pienso: en modo Básico solo saldrían propuestas sin sentido. Elige un modelo en ⚙ Ajustes → Cerebro.", |
| 191 | cfgCant_workspace: "Abre una carpeta de proyecto primero.", |
| 192 | cfgCant_running: "Ya estoy pensando: espera a que termine este ciclo.", |
| 193 | cfgCant_leader: "Otra pestaña lleva el cerebro: hazlo desde ahí.", |
| 194 | avatarLabel: "Mente de Elffuss", |
| 195 | setTelSend: "Enviar", setTelSending: "Enviando…", |
| 196 | mLab: "Elffuss Lab (banco de pruebas)", |
| 197 | // Ajustes: bridge, permisos, proveedores y modelo |
| 198 | setBridgeName: "Bridge local", setBridgeSource: "Código fuente del bridge", |
| 199 | setBridgeDisconnect: "Desconectar", setBridgeForget: "Olvidar token", |
| 200 | setBridgeDisconnectedMsg: "Desconectado. No se volverá a conectar solo hasta que pulses Conectar.", |
| 201 | setBridgeForgotMsg: "Token olvidado: este navegador ya no lo guarda.", |
| 202 | setPermLabel: "Escribir y editar ficheros sin pedir confirmación", |
| 203 | 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.", |
| 204 | provToggle: "Activar {name}", setModelLoadingCard: "cargando…", |
| 205 | provDocs: 'documentación ↗', provDocsFor: 'Documentación de la API de {name}', |
| 206 | modelDot: "Modelo: {name} · {state} — clic para cambiarlo", modelDotBasic: "Modo básico, sin modelo de IA — clic para elegir uno", |
| 207 | modelState_off: "sin cargar", modelState_loading: "cargando…", modelState_on: "listo", modelState_error: "no se pudo cargar", |
| 208 | // teclado, menús y pestañas |
| 209 | menubarLabel: "Menú", menu_file: "Archivo", menu_edit: "Editar", menu_view: "Ver", menu_git: "Git", |
| 210 | gNoRemote: "sin remoto", |
| 211 | modesLabel: "Modos de trabajo", modesBtn: "Modos", |
| 212 | modeReview: "revisar antes de escribir", modeAuto: "Auto, escribe sin preguntar", modeGoal: "objetivo", modeHard: "Hard Work", |
| 213 | goalPlaceholder: "🎯 Describe el objetivo: lo descompongo en tareas y las hago una a una…", |
| 214 | convTabs: "Conversaciones abiertas", convBusy: "trabajando", tabCloseNamed: "Cerrar la pestaña «{title}» (no borra la conversación)", |
| 215 | convRename: "Renombrar…", convRenamePrompt: "Nombre de la conversación (vacío = el automático):", |
| 216 | convCopyLink: 'Copiar enlace', convLinkCopied: '🔗 Enlace a la conversación copiado', convLinkMissing: 'Esa conversación ya no está en este navegador.', |
| 217 | histDelNamed: "Eliminar para siempre «{title}»", |
| 218 | palSearchHint: "Escribe al menos 2 letras para buscar dentro del código", |
| 219 | termResizeLabel: "Altura del terminal (↑/↓)", |
| 220 | ctxFull: "Contexto casi lleno ({pct}%). Los mensajes viejos se comprimen solos; para empezar limpio, abre una conversación nueva con «+».", |
| 221 | ctxUse: "Contexto: {tok} de ~{max} tokens ({free}% libre)", |
| 222 | openPathTitle: "abrir {path} en el editor", proposalSent: "▶ enviado a la cola…", |
| 223 | retry: "Reintentar", |
| 224 | modelLoadFailed: "⚠️ No pude cargar el modelo: {e}", |
| 225 | 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", |
| 226 | 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", |
| 227 | 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.", |
| 228 | skInstalled: "Instaladas ({n})", skRemoveNamed: "Quitar {name}", skRemoveRepo: "Quitar el catálogo {repo}", |
| 229 | skLoading: "Cargando {repo}…", skFound: "{repo} — {n} skills", skInstall: "Instalar", skInstalledOne: "Instalada ✓", |
| 230 | 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}", |
| 231 | skCatalogs: "Explorar catálogos", skCatalogsHint: "Abre un catálogo para ver sus skills e instalar la que necesites.", |
| 232 | skNone: "Ninguna todavía. Abre un catálogo de abajo e instala la que necesites.", |
| 233 | skHide: "Ocultar", skBrowseNamed: "Explorar {repo}", skMore: "…y {n} más: busca en el repo con el enlace ↗.", |
| 234 | skInstalledMsg: "«{name}» instalada. En el chat tienes cómo usarla.", skRemovedMsg: "«{name}» quitada.", skRepoAdded: "Catálogo {repo} añadido.", |
| 235 | skUsageInstalled: "Skill «{name}» instalada.", skUsageFollow: "Ya la sigo en cada conversación. Para usarla, pídeme por ejemplo:", skUsageAbout: "algo relacionado con «{name}»", |
| 236 | 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.", |
| 237 | skErr_noRepo: "No encuentro ese repo: ¿existe y es público?", skErr_noMd: "No pude descargar su SKILL.md.", |
| 238 | "skSrc_bbgnsurftech/claude-skills-collection": "Comunidad · Mega-colección (1000+ skills)", |
| 239 | "skSrc_anthropics/skills": "Anthropic · Agent Skills (oficial)", |
| 240 | "skSrc_anthropics/claude-plugins-official": "Anthropic · Plugins oficiales", |
| 241 | setGoalLabel: "Tratar el próximo mensaje como un objetivo: lo descompone en tareas y las ejecuta una a una", |
| 242 | 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).", |
| 243 | setTelAuto: "Enviar automáticamente los errores técnicos que ocurran, para poder arreglarlos", |
| 244 | 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.", |
| 245 | setTelManual: "O manda algo tú directamente (un fallo que viste, algo que eches en falta…)", |
| 246 | viewBuilding: "Construyendo…", viewFailed: "No pude construir la vista: {e}", flipChat: "Chat", flipEditor: "Editor", |
| 247 | vlLabel: 'Ficheros de esta vista', vlFilter: 'Buscar un fichero…', vlCount: '{n} de {total}', vlMore: 'se ven {n} menos: afina la búsqueda', |
| 248 | vlOpen: 'Abrir {name}', vlLocate: 'Ver {name} en la vista', vlLinks: '{n} conexiones', |
| 249 | termClear: "limpiar", tTermClear: "limpiar la pantalla del terminal", |
| 250 | drawerTitle: "Archivos y herramientas", |
| 251 | chatLogLabel: "Conversación", |
| 252 | 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?", |
| 253 | clearModelsShared: "Ojo: el almacén compartido de Elffuss no se pudo consultar desde aquí; puede quedar algo guardado ahí.", |
| 254 | clearModelsDone: "💾 Liberados {size}.", clearModelsFailed: "No se pudo vaciar: {what}.", |
| 255 | setSharedUnknown: " · no se pudo consultar el almacén compartido (puede haber más guardado)", |
| 256 | diskChipTitle: "Modelos guardados en este navegador: {size}{quota}. Pulsa para vaciarlos.", diskChipQuota: " de {quota} disponibles", |
| 257 | 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.", |
| 258 | }, |
| 259 | en: { |
| 260 | ph: 'Type here… (@ attaches a file)', |
| 261 | thinking: 'Elffuss is thinking', writing: 'Elffuss writes · {n} chars', using: 'Elffuss uses {name}', |
| 262 | modelLoading: 'Downloading AI model · {pct}% · {loaded}/{total} MB', |
| 263 | modelReady: 'AI model ready', modelReadyBadge: 'AI model ready ✳', |
| 264 | welcome: '👋 Project “{name}” open. Ask me about the code, request changes, or say “tree”. Everything stays on your machine.', |
| 265 | mindTitle: 'ELFFUSS MIND', avatarTitle: 'Elffuss Mind — autonomous brain', |
| 266 | tagline: 'Open your code folder and program with an elf by your side.', |
| 267 | tagline2: 'VS Code–style editor + agent <b>in your browser</b>. Nothing leaves your machine. 😉', |
| 268 | openProject: '📁 Open code folder', resume: 'Resume', discard: 'Discard', cloneOpen: 'Download & open', |
| 269 | clonePh: 'paste the URL of a public repo (GitHub/Bitbucket)…', |
| 270 | searchPh: 'Search files by name (: go to line, @ symbol, > commands, # search in code)', |
| 271 | tFiles: 'Explorer', tSearch: 'Search (Cmd/Ctrl+P)', tSearchBar: 'Search files, symbols and commands', tArch: 'Architecture (dependency graph)', |
| 272 | tCity: '3D City', tTerm: 'Terminal (Ctrl+`)', tSkills: 'Skills', tActSettings: 'Settings & model', |
| 273 | tGitBranch: 'current branch', tHistory: 'Conversation history', tTopSettings: 'Settings, model & API keys', |
| 274 | tTermClose: 'close (Ctrl+`)', tTermResize: 'drag to resize', |
| 275 | tCtx: 'context accumulated in the conversation', tPlus: 'Attach a project file (@)', |
| 276 | tAutoedit: 'Edit files automatically', |
| 277 | tHardwork: 'Hard Work: reads your whole project in chunks — audits, summarises or searches code that does not fit in the model', |
| 278 | tGoal: 'Goal mode: breaks the message into tasks and runs them one by one (planner + executor)', |
| 279 | tFlip: 'switch between chat and editor', tSlash: 'Commands', |
| 280 | tabClose: 'Close tab (doesn’t delete the conversation)', newConv: 'New conversation', |
| 281 | histEmpty: 'No saved conversations yet.', histDel: 'Delete forever', |
| 282 | confirmDel: 'Delete “{title}” forever?', thisConv: 'this conversation', |
| 283 | cmdsSep: 'Commands', slTree: 'project tree', slSearch: 'search the code', |
| 284 | slSkills: 'manage skills', slModel: 'providers & model', slClear: 'new conversation', |
| 285 | pTree: 'tree', pSearch: 'search ', pCommit: 'summarize the changes and prepare my commit message', |
| 286 | pProposal: 'Implement this improvement proposal with real changes to the code:\n\n', |
| 287 | attachSep: 'Attach to message (@)', attachOpen: 'open file', openProjFirst: 'Open a project first', |
| 288 | attachChips: 'Files attached to the message', attachRemove: 'Remove @{path} from the message', |
| 289 | autoTxt: 'Auto', reviewTxt: 'Review', |
| 290 | autoOn: 'Edit files automatically (click to review first)', |
| 291 | autoOff: 'Ask before writing (click for automatic)', |
| 292 | pSearchCode: 'Search the code…', pManageSkills: 'Manage skills', pToggleExplorer: 'Toggle explorer', |
| 293 | pToggleTerm: 'Toggle terminal', pSave: 'Save ({k})', palCmd: 'command', |
| 294 | palGotoSym: 'Go to symbol in editor…', palEmpty: 'No results', |
| 295 | mNewFile: 'New file…', promptNewPath: 'New file path:', mSave: 'Save', mOpenFolder: 'Open folder…', |
| 296 | mSearchCode: 'Search the code', mGotoFile: 'Go to file…', mGotoSym: 'Go to symbol…', |
| 297 | mTerminal: 'Terminal', mArch: 'Architecture', mAbout: 'About Elffuss Code (GitHub)', |
| 298 | gNotRepo: 'Not a git repository', gBranch: 'Branch: {b}', gLast: 'Latest: {m}', gCommit: 'Draft the commit message', |
| 299 | nExec: '▶ Run', nView: 'View in the Mind', |
| 300 | notifExecWaiting: '▶ The proposal from the notification runs as soon as a model is loaded (not in Basic mode: pick one in ⚙️ Settings → Brain).', |
| 301 | notifExecLost: "I can't find the proposal from the notification (maybe it already ran in another window): opening the Mind, where they all are.", |
| 302 | fallbackToast: 'That Gemma didn’t load (memory/GPU) — using the light one…', |
| 303 | setStoreTitle: 'Downloaded model (cached in your browser)', setClear: 'Clear cache', setClearing: 'Clearing…', |
| 304 | setCached: '{gb} of stored models', setNone: 'No model stored yet', |
| 305 | setBrToken: 'Token (printed by the program on startup)', brTokenPh: 'paste the token here…', |
| 306 | setFeedbackPh: 'Tell us what happened or what you’d like it to do…', |
| 307 | lblModel: 'Model', lblApiKey: 'API key', |
| 308 | setCalc: 'Calculating space…', setPersist: '✓ persistent storage (won’t be auto-cleared)', |
| 309 | setNoPersist: '⚠ not persistent: the browser could evict it', setLimit: ' · limit ~{gb}', |
| 310 | setModelPh: 'model (e.g. gpt-4o-mini)', keyNeeded: 'key (not needed)', |
| 311 | wsTitle: "Workspace (your disk)", |
| 312 | wsDesc: "Your conversations and skills live in this browser, which can wipe them. Save them to a folder and they stay as normal files.", |
| 313 | wsNoSupport: "This browser can't pick a folder. Use «Download copy».", |
| 314 | wsNoFolder: "No folder: they only live in this browser.", |
| 315 | wsFolder: "Folder: {name}", |
| 316 | wsNeedsPerm: "«{name}» needs permission again (happens after a reload).", |
| 317 | wsPick: "Pick a folder", |
| 318 | wsUseProject: "Use the project's", |
| 319 | wsRegrant: "Grant permission", |
| 320 | wsSaveNow: "Save now", |
| 321 | wsSaved: "Saved ({n} stores)", |
| 322 | wsAuto: "Save automatically", |
| 323 | wsForget: "Forget folder", |
| 324 | wsDownload: "Download copy", |
| 325 | wsWhat: "What's stored", |
| 326 | setTitle: "Settings", |
| 327 | setModelCards: 'Model cards:', setModelCardFor: '{name} model card on Hugging Face', |
| 328 | close: "close", |
| 329 | setBrainTitle: "Brain (model)", |
| 330 | setModelE4bSub: "The best · local WebGPU · ~2.8 GB", |
| 331 | setModelE2bSub: "Light · local WebGPU · ~2 GB", |
| 332 | setModelOnnxSub: "Light · WebGPU · ~600 MB", |
| 333 | 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.", |
| 334 | setModelRulesSub: "Direct commands, zero download", |
| 335 | setBridgeTitle: "🔌 Local bridge (real execution on your machine)", |
| 336 | setBridgeDisconnected: "disconnected", |
| 337 | setBridgeFolderPh: "/full/path/to/your/project", |
| 338 | setBridgeConnect: "Connect", |
| 339 | setBridgeOnStatus: "✓ connected — real execution active", |
| 340 | setBridgeNoToken: "⚠️ paste the token the program printed on startup", |
| 341 | setBridgeConnecting: "Connecting…", |
| 342 | setBridgeConnectedMsg: "✔ connected — real execution on your machine", |
| 343 | setPermTitle: "✅ Execution permissions", |
| 344 | setGoalTitle: "🎯 Goal mode", |
| 345 | setTelTitle: "📨 Errors and feedback", |
| 346 | setTelEmpty: "type something first", |
| 347 | setTelThanks: "sent, thanks!", |
| 348 | setProvTitle: "External providers (optional · the key stays in your browser)", |
| 349 | setProvUse: "Use", |
| 350 | setManageSkillsBtn: "Manage Skills for Elffuss", |
| 351 | skRemove: "Remove", |
| 352 | skBrowse: "Browse", |
| 353 | skAddRepoPh: "owner/repo or GitHub URL (e.g. OpenClaude/…)", |
| 354 | skAddRepo: "Add repo", |
| 355 | hwPlaceholder: "⛏ Hard Work: ask something about the WHOLE project…", |
| 356 | hwNeedBrain: "Hard Work needs a loaded brain: pick a model in Settings and try again.", |
| 357 | hwNeedProject: "Hard Work works on your project. Open a folder first, then press ⛏ Hard Work again.", |
| 358 | hwReading: "Hard Work · reading the project…", |
| 359 | hwNoFiles: "I found no readable text/code files in the project.", |
| 360 | hwTrimmed: " — trimmed", |
| 361 | hwPhaseReduce: "Hard Work · synthesizing…", |
| 362 | hwResultTrunc: " Project trimmed to the max — narrow it down to a subfolder.", |
| 363 | planPlanning: "planning…", |
| 364 | planRunning: "running…", |
| 365 | planDone: "completed", |
| 366 | planFailed: "with failures", |
| 367 | planStopped: "stopped", |
| 368 | stopping: "Stopping…", |
| 369 | stopped: "Stopped.", |
| 370 | stoppedNote: "(Stopped.)", |
| 371 | rulesHello: "Hello!", |
| 372 | 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).", |
| 373 | wsOpfsName: "OPFS (browser)", |
| 374 | send: "Send", |
| 375 | stop: "Stop", |
| 376 | stModelLoadingAI: "Loading the AI model…", |
| 377 | termCapsBridge: "🔌 Local bridge: real node/npm/python", |
| 378 | termCapsNoBridge: "project shell · node/npm/python → Local bridge (⚙ Settings)", |
| 379 | setBridgeFolderLabel: "Working folder (optional — otherwise the folder you started the bridge from; it runs nothing outside it)", |
| 380 | 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.", |
| 381 | setBridgeShaHow: 'To check the download: shasum -a 256 -c, with the file', |
| 382 | setBridgeDownload: "⬇ Download for {os}", |
| 383 | setBridgeOtherOS: "another operating system", |
| 384 | 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.", |
| 385 | 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.", |
| 386 | setModelRulesName: "Basic (no model)", |
| 387 | // UX round 2026-10: queue, save, honest notices |
| 388 | queuedTitle: "Queued: it goes out as soon as the current work ends", |
| 389 | queuedCancelled: "Dropped: you pressed ■ before its turn", |
| 390 | hwPhasePlan: "Hard Work · {n} chunks ({k}k){trim}", |
| 391 | hwPhaseMap: "Hard Work · reading {i}/{n}", |
| 392 | hwPhaseGroup: "Hard Work · merging {g}/{n}", |
| 393 | hwResult: "⛏ Hard Work (RLM): {n} chunks, {k} with signal.", |
| 394 | hwFailed: "Hard Work failed: {e}", |
| 395 | // editor: save, close with changes, tabs and tree |
| 396 | saved: "💾 {path} saved", saveFailed: "Couldn't save {path}: {e}", noFileOpen: "Open a file first", |
| 397 | openFailed: "Couldn't open {path}: {e}", |
| 398 | dirtyTitle: "Save the changes to “{name}”?", dirtyBody: "If you don't save them, they are lost.", |
| 399 | dirtySave: "Save", dirtyDiscard: "Don't save", dirtyCancel: "Cancel", |
| 400 | editorTabs: "Open files", closeFile: "Close {name}", closeFileDirty: "Close {name} (unsaved changes)", tabUnsaved: "(unsaved changes)", |
| 401 | fileDeletedDirty: "deleted from disk; save it to recreate it", |
| 402 | tmClose: "Close", tmCloseOthers: "Close others", tmCloseRight: "Close to the right", tmCloseAll: "Close all", |
| 403 | tmCopyPath: "Copy path", tmViewSource: "View source", tmPreview: "Preview", |
| 404 | tmNewFile: "New file…", tmNewFolder: "New folder…", tmOpen: "Open", tmRename: "Rename…", tmDelete: "Delete", |
| 405 | promptNewFile: "Name of the new file:", promptNewFolder: "Name of the new folder:", promptRename: "New name:", |
| 406 | confirmDelete: "Delete “{name}”?", opFailed: "Couldn't do it: {e}", |
| 407 | created: "Created “{name}”", renamed: "Renamed “{from}” → “{to}”", deleted: "Deleted “{name}”", |
| 408 | pathCopied: "Path copied: {path}", pathCopyFailed: "Couldn't copy the path (the browser blocked the clipboard)", |
| 409 | explorer: "Project explorer", treeMore: "… and {n} more (not shown)", |
| 410 | editorEmpty: "Open a file from the explorer, or ask the elf for something.", |
| 411 | mPalette: "Command palette", |
| 412 | // landing |
| 413 | openFolderFailed: "Couldn't open the folder: {e}", openingIde: "Opening the editor…", |
| 414 | 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.", |
| 415 | tryBrowser: "Try it in the browser (no folder)", |
| 416 | clonePasteUrl: "Paste the URL of a public GitHub or Bitbucket repo.", |
| 417 | cloneBadUrl: "Unrecognised URL. Use github.com/user/repo or bitbucket.org/user/repo", |
| 418 | cloneListing: "Listing the repo…", cloneHalf: "Half-finished download of {repo} ({n}/{total} files)", |
| 419 | reopenFolder: "Reopen “{name}”", |
| 420 | openFolderBusy: "The elf is working on this project. Open another folder anyway?", |
| 421 | // Mind and autonomous brain |
| 422 | mindThought: "thought", mindEmpty: "(no content)", mindOpenProposal: "Open the proposal {name}", |
| 423 | mindOpenPath: "open {path} in the editor", mindExec: "▶ Run this proposal", mindOpenEditor: "Open in the editor", |
| 424 | mindFlyTo: "Fly the camera to {name}", mindLegend: "Brain profiles", |
| 425 | mindMusic: "♪ Play music", mindMusicTitle: "Loads a SoundCloud player (this does go to the internet)", |
| 426 | mindMusicPlayer: "music", mindMusicOff: "■ Remove music", |
| 427 | mindActivate: "▶ turn on the autonomous brain", mindResume: "▶ resume brain", mindPause: "⏸ pause brain", |
| 428 | 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.", |
| 429 | mindPauseTitle: "Pause: stop working on its own", |
| 430 | mindConfig: "⚙ brain", mindConfigTitle: "reprogram the brain", mindHistory: "≡ history", mindHistoryTitle: "see everything that came in", |
| 431 | mindClose: "✕ exit", mindCloseTitle: "exit (Esc)", mindLogTitle: "Full history", |
| 432 | cfgTitle: "⚙ Reprogram the brain", cfgNotif: "🔔 Browser notifications:", cfgNotifAsk: "Turn on", |
| 433 | cfgNotifUnsupported: "not supported by this browser", cfgNotifGranted: "✓ granted — I'll let you know when I find something good", |
| 434 | cfgNotifDenied: "✕ blocked — turn them on in the browser's site settings", cfgNotifDefault: "not asked yet", |
| 435 | cfgMission: "Mission (what you want it to do on its own)", cfgDir: "Soul folder (inside the project)", |
| 436 | cfgProfiles: "Profiles — each one thinks in parallel, with the colour of its star", cfgAddProf: "+ new profile", |
| 437 | cfgColor: "Colour", cfgName: "Name", cfgFocus: "What it focuses on", cfgRemove: "remove", |
| 438 | cfgThink: "Think now", cfgSave: "Reprogram", |
| 439 | cfgNote: "The elf will work on this when you are idle and put everything in that folder.", |
| 440 | 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.", |
| 441 | cfgCant_workspace: "Open a project folder first.", |
| 442 | cfgCant_running: "I'm already thinking: wait for this cycle to end.", |
| 443 | cfgCant_leader: "Another tab runs the brain: do it from there.", |
| 444 | avatarLabel: "Elffuss Mind", |
| 445 | setTelSend: "Send", setTelSending: "Sending…", |
| 446 | mLab: "Elffuss Lab (test bench)", |
| 447 | // Settings: bridge, permissions, providers and model |
| 448 | setBridgeName: "Local bridge", setBridgeSource: "Bridge source code", |
| 449 | setBridgeDisconnect: "Disconnect", setBridgeForget: "Forget token", |
| 450 | setBridgeDisconnectedMsg: "Disconnected. It won't reconnect by itself until you press Connect.", |
| 451 | setBridgeForgotMsg: "Token forgotten: this browser no longer stores it.", |
| 452 | setPermLabel: "Write and edit files without asking", |
| 453 | 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.", |
| 454 | provToggle: "Turn on {name}", setModelLoadingCard: "loading…", |
| 455 | provDocs: 'docs ↗', provDocsFor: '{name} API documentation', |
| 456 | modelDot: "Model: {name} · {state} — click to change it", modelDotBasic: "Basic mode, no AI model — click to pick one", |
| 457 | modelState_off: "not loaded", modelState_loading: "loading…", modelState_on: "ready", modelState_error: "couldn't load", |
| 458 | // keyboard, menus and tabs |
| 459 | menubarLabel: "Menu", menu_file: "File", menu_edit: "Edit", menu_view: "View", menu_git: "Git", |
| 460 | gNoRemote: "no remote", |
| 461 | modesLabel: "Work modes", modesBtn: "Modes", |
| 462 | modeReview: "review before writing", modeAuto: "Auto, writes without asking", modeGoal: "goal", modeHard: "Hard Work", |
| 463 | goalPlaceholder: "🎯 Describe the goal: I'll break it into tasks and do them one by one…", |
| 464 | convTabs: "Open conversations", convBusy: "working", tabCloseNamed: "Close the “{title}” tab (doesn't delete the conversation)", |
| 465 | convRename: "Rename…", convRenamePrompt: "Conversation name (empty = automatic):", |
| 466 | convCopyLink: 'Copy link', convLinkCopied: '🔗 Link to the conversation copied', convLinkMissing: 'That conversation is no longer in this browser.', |
| 467 | histDelNamed: "Delete “{title}” forever", |
| 468 | palSearchHint: "Type at least 2 letters to search inside the code", |
| 469 | termResizeLabel: "Terminal height (↑/↓)", |
| 470 | ctxFull: "Context almost full ({pct}%). Old messages are compressed automatically; to start clean, open a new conversation with “+”.", |
| 471 | ctxUse: "Context: {tok} of ~{max} tokens ({free}% free)", |
| 472 | openPathTitle: "open {path} in the editor", proposalSent: "▶ sent to the queue…", |
| 473 | retry: "Retry", |
| 474 | modelLoadFailed: "⚠️ Couldn't load the model: {e}", |
| 475 | 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", |
| 476 | 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", |
| 477 | 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.", |
| 478 | skInstalled: "Installed ({n})", skRemoveNamed: "Remove {name}", skRemoveRepo: "Remove the {repo} catalog", |
| 479 | skLoading: "Loading {repo}…", skFound: "{repo} — {n} skills", skInstall: "Install", skInstalledOne: "Installed ✓", |
| 480 | skNoNet: "Couldn't reach {repo}: no connection to GitHub (or rate limited). Try again in a moment.", skLoadFailed: "Couldn't list {repo}: {e}", |
| 481 | skCatalogs: "Browse catalogs", skCatalogsHint: "Open a catalog to see its skills and install the one you need.", |
| 482 | skNone: "None yet. Open a catalog below and install the one you need.", |
| 483 | skHide: "Hide", skBrowseNamed: "Browse {repo}", skMore: "…and {n} more: look in the repo with the ↗ link.", |
| 484 | skInstalledMsg: "“{name}” installed. The chat shows how to use it.", skRemovedMsg: "“{name}” removed.", skRepoAdded: "Catalog {repo} added.", |
| 485 | 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}”", |
| 486 | 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.", |
| 487 | skErr_noRepo: "I can't find that repo: does it exist and is it public?", skErr_noMd: "Couldn't download its SKILL.md.", |
| 488 | "skSrc_bbgnsurftech/claude-skills-collection": "Community · Mega collection (1000+ skills)", |
| 489 | "skSrc_anthropics/skills": "Anthropic · Agent Skills (official)", |
| 490 | "skSrc_anthropics/claude-plugins-official": "Anthropic · Official plugins", |
| 491 | setGoalLabel: "Treat the next message as a goal: break it into tasks and run them one by one", |
| 492 | 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).", |
| 493 | setTelAuto: "Automatically send technical errors when they happen, so they can be fixed", |
| 494 | setTelNote: "Off by default — your code and your projects' content are NEVER included, only the technical error message, the stack and browser data.", |
| 495 | setTelManual: "Or send something yourself (a bug you saw, something you miss…)", |
| 496 | viewBuilding: "Building…", viewFailed: "Couldn't build the view: {e}", flipChat: "Chat", flipEditor: "Editor", |
| 497 | vlLabel: 'Files in this view', vlFilter: 'Find a file…', vlCount: '{n} of {total}', vlMore: '{n} not shown: narrow the search', |
| 498 | vlOpen: 'Open {name}', vlLocate: 'Show {name} in the view', vlLinks: '{n} connections', |
| 499 | termClear: "clear", tTermClear: "clear the terminal screen", |
| 500 | drawerTitle: "Files and tools", |
| 501 | chatLogLabel: "Conversation", |
| 502 | 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?", |
| 503 | clearModelsShared: "Note: Elffuss's shared store could not be checked from here; something may remain stored there.", |
| 504 | clearModelsDone: "💾 Freed {size}.", clearModelsFailed: "Couldn't clear: {what}.", |
| 505 | setSharedUnknown: " · the shared store could not be checked (there may be more stored)", |
| 506 | diskChipTitle: "Models stored in this browser: {size}{quota}. Click to clear them.", diskChipQuota: " of {quota} available", |
| 507 | setTelFailed: "⚠️ Couldn't send it (the server didn't accept it or there is no connection). Your text is still here: try again later.", |
| 508 | }, |
| 509 | }; |
| 510 | |
| 511 | // Idioma del chrome: 2 letras, ES por defecto. |
| 512 | export function uiLang() { |
| 513 | return (navigator.language || 'es').slice(0, 2).toLowerCase(); |
| 514 | } |
| 515 | |
| 516 | // Traduce una clave de runtime con sustitución {var}. Fallback: idioma → |
| 517 | // inglés → la propia clave. |
| 518 | export function t(key, vars) { |
| 519 | const s = (L[uiLang()] || L.en)[key] ?? L.en[key] ?? key; |
| 520 | return vars ? s.replace(/\{(\w+)\}/g, (_, k) => (vars[k] ?? '')) : s; |
| 521 | } |
| 522 | |
| 523 | // Textos estáticos del HTML (landing, placeholders, tooltips) que no pasan por |
| 524 | // t() en runtime. Se cablean una vez al arrancar; ES es el HTML por defecto. |
| 525 | export function applyI18n() { |
| 526 | document.documentElement.lang = uiLang(); |
| 527 | const set = (sel, prop, key) => { const e = document.querySelector(sel); if (e) e[prop] = t(key); }; |
| 528 | set('#prompt', 'placeholder', 'ph'); |
| 529 | const tag = document.querySelector('#landing .tag'); |
| 530 | if (tag) tag.innerHTML = `${t('tagline')}<br>${t('tagline2')}`; |
| 531 | set('#open-project', 'textContent', 'openProject'); |
| 532 | set('#resume-clone-btn', 'textContent', 'resume'); |
| 533 | set('#discard-clone-btn', 'textContent', 'discard'); |
| 534 | set('#clone-btn', 'textContent', 'cloneOpen'); |
| 535 | set('#clone-url', 'placeholder', 'clonePh'); |
| 536 | set('#try-browser', 'textContent', 'tryBrowser'); |
| 537 | set('#term-clear', 'textContent', 'termClear'); |
| 538 | set('#pal-input', 'placeholder', 'searchPh'); |
| 539 | set('#top-search .ts-txt', 'textContent', 'tSearchBar'); |
| 540 | const titles = { |
| 541 | '#act-files': 'tFiles', '#top-search': 'tSearch', '#act-arch': 'tArch', '#act-city': 'tCity', |
| 542 | '#act-term': 'tTerm', '#act-skills': 'tSkills', '#act-settings': 'tActSettings', |
| 543 | '#git-branch': 'tGitBranch', '#btn-history': 'tHistory', '#btn-settings': 'tTopSettings', |
| 544 | '#term-close': 'tTermClose', '#term-resize': 'tTermResize', '#ctx-meter': 'tCtx', |
| 545 | '#btn-plus': 'tPlus', '#btn-autoedit': 'tAutoedit', '#btn-goal': 'tGoal', |
| 546 | '#btn-hardwork': 'tHardwork', |
| 547 | '#code-flip': 'tFlip', '#btn-slash': 'tSlash', '#btn-send': 'send', |
| 548 | '#term-clear': 'tTermClear', |
| 549 | }; |
| 550 | for (const [sel, key] of Object.entries(titles)) set(sel, 'title', key); |
| 551 | document.getElementById('chat-log')?.setAttribute('aria-label', t('chatLogLabel')); |
| 552 | } |