Elffuss BraidHub

utopia-ia/elffuss-code public

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