Skip to content

Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.

feat(i18n): add es as a third built-in catalog to match dev

uygnoeya56e4b3a842f
diff --git a/README.md b/README.md
index 0df7962c..e0945515 100644
--- a/README.md
+++ b/README.md
@@ -332,7 +332,7 @@ Settings:
}
```
-`meta.locale` localizes page title, Legend, states/errors, a11y, HTML/SVG `lang`—never authored content. `en`/`zh-CN` are built in; any other tag needs `meta.translations` (canonical message key → translated string; see `examples/locales/ko.json`), or the renderer falls back to English and discloses it. Static omits `animation`; `classic` defaults.
+`meta.locale` localizes page title, Legend, states/errors, a11y, HTML/SVG `lang`—never authored content. `en`/`zh-CN`/`es` are built in; any other tag needs `meta.translations` (canonical message key → translated string; see `examples/locales/ko.json`), or the renderer falls back to English and discloses it. Static omits `animation`; `classic` defaults.
</details>
diff --git a/README_EN.md b/README_EN.md
index 0df7962c..e0945515 100644
--- a/README_EN.md
+++ b/README_EN.md
@@ -332,7 +332,7 @@ Settings:
}
```
-`meta.locale` localizes page title, Legend, states/errors, a11y, HTML/SVG `lang`—never authored content. `en`/`zh-CN` are built in; any other tag needs `meta.translations` (canonical message key → translated string; see `examples/locales/ko.json`), or the renderer falls back to English and discloses it. Static omits `animation`; `classic` defaults.
+`meta.locale` localizes page title, Legend, states/errors, a11y, HTML/SVG `lang`—never authored content. `en`/`zh-CN`/`es` are built in; any other tag needs `meta.translations` (canonical message key → translated string; see `examples/locales/ko.json`), or the renderer falls back to English and discloses it. Static omits `animation`; `classic` defaults.
</details>
diff --git a/archify.zip b/archify.zip
index 2dff41a2..8c3ab81f 100644
Binary files a/archify.zip and b/archify.zip differ
diff --git a/archify/SKILL.md b/archify/SKILL.md
index 254f0009..21a4e08e 100644
--- a/archify/SKILL.md
+++ b/archify/SKILL.md
@@ -79,7 +79,7 @@ Read Mermaid for topology and meaning, then author fresh Archify JSON; do not me
- Omit `meta.subtitle` by default. Never invent a subtitle that restates the title, nodes, or cards; include one short supporting line only when the user explicitly asks for it.
- Treat the standalone desktop viewer as a first-screen artifact by default, not a shallow strip. Generate one responsive artifact for laptops and external displays—never device-specific HTML or alternate topology. The viewer may adapt only the outer reading width from the live viewport height; it must preserve the authored SVG/viewBox, proportions, semantic geometry, and normal document flow. On a wide or tall desktop, use enough authored vertical rhythm that the diagram panel and its necessary conclusion cards occupy the screen as a balanced whole; runtime scaling cannot repair an over-compressed Y layout or an undersized explicit `meta.viewBox`. Before handoff, open the real HTML at 1440×900, 1600×1000, and 1920×1080; additionally check 2048×1320 whenever the composition is intended for a large desktop display. Require `document.documentElement.scrollWidth <= window.innerWidth` and `scrollHeight <= window.innerHeight` at every checked size, while visually checking that the diagram remains comfortably readable and vertically balanced at the largest checked viewport. Repair overflow by removing only genuinely redundant content or compacting spacing before shrinking nodes, labels, or the main panel. If the largest viewport still has a conspicuous empty lower band at the viewer's width cap, redistribute authored Y positions and increase the viewBox height proportionally; do not add filler copy or decorative cards. Never counterfeit a pass with `overflow: hidden`, clipped content, an internal diagram scroller, stretched SVG height, or smaller typography. Narrow/mobile layouts may scroll vertically when containment requires it.
- Omit `meta.legend` for the truthful `auto` default. When needed, use only `mode: auto|all|hidden` and renderer-supported `entries.<kind>.label|visible`; labels never change semantics.
-- Choose one primary authored language from an explicit user choice; otherwise follow the request or conversation's dominant language. `meta.locale` controls only renderer-owned Viewer UI: `"en"` and `"zh-CN"` are built in; any other language tag needs `meta.translations` supplying the renderer-owned message catalog as data (see "Localizing the Viewer UI with meta.translations" below), or the fixed Viewer UI and `<html lang>` fall back to English — disclose that fallback explicitly when it applies. The renderer never translates authored content. See `references/authoring-contract.md` for details.
+- Choose one primary authored language from an explicit user choice; otherwise follow the request or conversation's dominant language. `meta.locale` controls only renderer-owned Viewer UI: `"en"`, `"zh-CN"`, and `"es"` are built in; any other language tag needs `meta.translations` supplying the renderer-owned message catalog as data (see "Localizing the Viewer UI with meta.translations" below), or the fixed Viewer UI and `<html lang>` fall back to English — disclose that fallback explicitly when it applies. The renderer never translates authored content. See `references/authoring-contract.md` for details.
- Preserve exact product names, code identifiers, commands, protocols, API paths, and environment names. They may remain English inside localized copy, but never justify leaving the surrounding explanatory prose in another language.
- Brand identity is optional and explicit. Put a canonical built-in ID in `brand` when the node names that real product. If no preset matches and the user supplied the official HTTP(S) URL, first run `node bin/archify.mjs brands capture "<url>" --json`, then author the returned digest-pinned `brand` object. Render and validate never perform an unpinned capture. Otherwise omit `brand`. Never infer a brand from a vague role such as "database", and never let a badge replace the semantic `type`, label, or relationship facts.
- For sequence diagrams, omit `meta.column_fit` for the stable `fixed` layout. Set it to `"spread"` when a wide viewBox would otherwise leave unused horizontal space or when meaningful participant labels do not fit the fixed boxes; do not shorten semantic labels before trying `spread`.
@@ -123,7 +123,7 @@ Read `references/viewer-runtime.md` only when the user explicitly asks for Share
## Localizing the Viewer UI with meta.translations
-`en` and `zh-CN` ship as built-in Viewer-chrome catalogs (`renderers/shared/i18n.mjs`); every other locale is supplied as translation *data*, not a renderer code change. Set `meta.locale` to any well-formed language tag and, unless it is `en` or `zh-CN`, also set `meta.translations` to an object mapping canonical message keys (see `catalogKeys()`, or any key in `examples/locales/ko.json`) to translated strings whose `{placeholder}` tokens match the English source exactly. `validate`/`render`/`deliver` report coverage to stderr (`archify: meta.translations for locale "…" covers N/519 renderer-owned messages…`); a key that is missing, unknown, or has mismatched placeholders falls back to its English string rather than breaking the render. `meta.locale` without a built-in catalog or `meta.translations` falls back entirely to English Viewer UI and `<html lang="en">`, with the same disclosure on stderr — never a half-translated page.
+`en`, `zh-CN`, and `es` ship as built-in Viewer-chrome catalogs (`renderers/shared/i18n.mjs`); every other locale is supplied as translation *data*, not a renderer code change. Set `meta.locale` to any well-formed language tag and, unless it is `en`, `zh-CN`, or `es`, also set `meta.translations` to an object mapping canonical message keys (see `catalogKeys()`, or any key in `examples/locales/ko.json`) to translated strings whose `{placeholder}` tokens match the English source exactly. `validate`/`render`/`deliver` report coverage to stderr (`archify: meta.translations for locale "…" covers N/519 renderer-owned messages…`); a key that is missing, unknown, or has mismatched placeholders falls back to its English string rather than breaking the render. `meta.locale` without a built-in catalog or `meta.translations` falls back entirely to English Viewer UI and `<html lang="en">`, with the same disclosure on stderr — never a half-translated page.
`examples/locales/ko.json` is a complete, checked-in Korean catalog (519/519 keys) — the worked example for this contract. `examples/locales/fr.partial.json` is a small, deliberately partial French catalog proving the mechanism needs no renderer or schema change to support a new, previously-unsupported language: only translation data.
diff --git a/archify/references/authoring-contract.md b/archify/references/authoring-contract.md
index 01ec16ae..336e0e14 100644
--- a/archify/references/authoring-contract.md
+++ b/archify/references/authoring-contract.md
@@ -47,8 +47,8 @@ Choose one primary authored language. An explicit user choice wins; otherwise
use the language of the request, or the conversation's dominant language when
the request itself is language-neutral. Separately choose the Viewer locale.
Always write the matching `meta.locale` as a well-formed language tag: `"en"`
-for English, `"zh-CN"` for Simplified Chinese, or any other tag for another
-language. The renderer consumes the authored locale without inferring language
+for English, `"zh-CN"` for Simplified Chinese, `"es"` for Spanish, or any
+other tag for another language. The renderer consumes the authored locale without inferring language
from diagram strings. Documents that omit it remain valid and default to
English.
@@ -61,7 +61,7 @@ guided views, legend label overrides, and cards. A bilingual diagram still
chooses one primary locale for the Viewer; follow an explicit primary-language
request, then prompt order or conversation dominance.
-`en` and `zh-CN` are built-in Viewer catalogs and need nothing further. For
+`en`, `zh-CN`, and `es` are built-in Viewer catalogs and need nothing further. For
every other `meta.locale`, also set `meta.translations`: an object mapping the
renderer's canonical message keys (`catalogKeys()` in
`renderers/shared/i18n.mjs`; `examples/locales/ko.json` is a complete worked
diff --git a/archify/renderers/shared/i18n.mjs b/archify/renderers/shared/i18n.mjs
index 0127083a..06c0023b 100644
--- a/archify/renderers/shared/i18n.mjs
+++ b/archify/renderers/shared/i18n.mjs
@@ -1,5 +1,5 @@
// One base (English) catalog defines every renderer-owned message key and
-// its interpolation placeholders. Built-in catalogs (currently just zh-CN)
+// its interpolation placeholders. Built-in catalogs (currently zh-CN and es)
// ship as complete, code-reviewed translations of that base. Any other
// locale — including Korean — is supplied by the caller as translation DATA
// through registerLocale(), validated against the same base, and rendered
@@ -11,7 +11,7 @@
// fr.partial.json demonstrates the same contract with a second, previously
// unsupported language and intentionally partial coverage (missing keys fall
// back to English; see registerLocale()/validateTranslations()).
-export const SUPPORTED_LOCALES = ['en', 'zh-CN'];
+export const SUPPORTED_LOCALES = ['en', 'zh-CN', 'es'];
export const DEFAULT_LOCALE = 'en';
const ESCAPE_MAP = { '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' };
@@ -1065,6 +1065,527 @@ const BUILTIN_CATALOGS = {
'viewer.common.clear': '清除',
'viewer.common.close': '关闭',
},
+ es: {
+ 'page.title': '{title} · Diagrama',
+ 'diagram.description.architecture': 'Un diagrama de arquitectura generado por Archify.',
+ 'diagram.description.workflow': 'Un diagrama de flujo de trabajo generado por Archify.',
+ 'diagram.description.sequence': 'Un diagrama de secuencia generado por Archify.',
+ 'diagram.description.dataflow': 'Un diagrama de flujo de datos generado por Archify.',
+ 'diagram.description.lifecycle': 'Un diagrama de ciclo de vida generado por Archify.',
+ 'node.focus': 'Enfocar {label}',
+ 'node.focus.detail': 'Enfocar {label}, {detail}',
+ 'node.context.architecture': 'Componente de arquitectura',
+ 'node.context.workflow': 'Nodo de flujo de trabajo',
+ 'node.context.sequence': 'Participante de secuencia',
+ 'node.context.dataflow': 'Nodo de flujo de datos',
+ 'node.context.lifecycle': 'Estado del ciclo de vida',
+ 'legend.title': 'Leyenda',
+ 'legend.architecture.frontend': 'Frontend',
+ 'legend.architecture.backend': 'Backend',
+ 'legend.architecture.database': 'Base de datos',
+ 'legend.architecture.cloud': 'Nube',
+ 'legend.architecture.security': 'Seguridad',
+ 'legend.architecture.messagebus': 'Bus de mensajes',
+ 'legend.architecture.external': 'Externo',
+ 'legend.workflow.frontend': 'Interfaz de usuario',
+ 'legend.workflow.backend': 'Lógica del agente',
+ 'legend.workflow.security': 'Política',
+ 'legend.workflow.messagebus': 'Acción de herramienta',
+ 'legend.workflow.database': 'Contexto / traza',
+ 'legend.workflow.cloud': 'Servicio en la nube',
+ 'legend.workflow.external': 'Sistema externo',
+ 'legend.sequence.emphasis': 'solicitud',
+ 'legend.sequence.return': 'respuesta',
+ 'legend.sequence.security': 'seguridad',
+ 'legend.sequence.dashed': 'traza asíncrona',
+ 'legend.sequence.default': 'mensaje por defecto',
+ 'legend.dataflow.emphasis': 'datos primarios',
+ 'legend.dataflow.security': 'política / PII',
+ 'legend.dataflow.dashed': 'lote asíncrono',
+ 'legend.dataflow.database': 'almacén de datos',
+ 'legend.dataflow.default': 'flujo de datos',
+ 'legend.lifecycle.start': 'inicio',
+ 'legend.lifecycle.active': 'estado activo',
+ 'legend.lifecycle.waiting': 'en espera',
+ 'legend.lifecycle.decision': 'decisión',
+ 'legend.lifecycle.success': 'éxito terminal',
+ 'legend.lifecycle.failure': 'fallo / salida',
+ 'legend.lifecycle.neutral': 'neutral',
+ 'legend.lifecycle.external': 'externo',
+ 'viewer.kind.frontend': 'Frontend',
+ 'viewer.kind.backend': 'Backend',
+ 'viewer.kind.database': 'Base de datos',
+ 'viewer.kind.cloud': 'Nube',
+ 'viewer.kind.security': 'Seguridad',
+ 'viewer.kind.messagebus': 'Bus de mensajes',
+ 'viewer.kind.external': 'Externo',
+ 'viewer.kind.neutral': 'Neutral',
+ 'viewer.kind.node': 'Nodo',
+ 'viewer.kind.start': 'Inicio',
+ 'viewer.kind.active': 'Activo',
+ 'viewer.kind.waiting': 'En espera',
+ 'viewer.kind.decision': 'Decisión',
+ 'viewer.kind.success': 'Éxito',
+ 'viewer.kind.failure': 'Fallo',
+ 'viewer.toolbar.actions': 'Acciones del diagrama',
+ 'viewer.theme.toggle.title': 'Cambiar tema (T)',
+ 'viewer.theme.toggle': 'Cambiar tema de color',
+ 'viewer.theme.dark': 'Oscuro',
+ 'viewer.theme.light': 'Claro',
+ 'viewer.preset.choose.title': 'Elegir estilo visual (S alterna)',
+ 'viewer.preset.choose': 'Elegir estilo visual',
+ 'viewer.preset.style': 'Estilo',
+ 'viewer.preset.menu': 'Estilo visual',
+ 'viewer.preset.identity': 'Identidad visual',
+ 'viewer.preset.cycles': 'S alterna',
+ 'viewer.preset.classic': 'Clásico',
+ 'viewer.preset.classic.short': 'Clásico',
+ 'viewer.preset.classic.hint': 'Predeterminado técnico estable',
+ 'viewer.preset.flow': 'Flujo de señal',
+ 'viewer.preset.flow.short': 'Flujo',
+ 'viewer.preset.flow.hint': 'Presentación con énfasis en el movimiento',
+ 'viewer.preset.blueprint': 'Plano',
+ 'viewer.preset.blueprint.hint': 'Revisión de ingeniería',
+ 'viewer.preset.editorial': 'Editorial',
+ 'viewer.preset.editorial.hint': 'Notas de publicación y lanzamiento',
+ 'viewer.preset.badge.signalFlow': 'FLUJO DE SEÑAL',
+ 'viewer.preset.badge.blueprint': 'PLANO / REV 01',
+ 'viewer.preset.badge.editorial': 'EDITORIAL / NOTA DE CAMPO',
+ 'viewer.preset.badge.editorialPlate': 'ARCHIFY / LÁMINA 04',
+ 'viewer.preset.current': 'Estilo visual: {style}. Elegir estilo visual',
+ 'viewer.motion.live': 'Activa',
+ 'viewer.motion.still': 'Fija',
+ 'viewer.motion.pause': 'Pausar animación',
+ 'viewer.motion.resume': 'Reanudar animación',
+ 'viewer.motion.reduced': 'Animación pausada por la preferencia de movimiento reducido',
+ 'viewer.motion.hidden': 'Animación pausada mientras esta página está oculta',
+ 'viewer.motion.yielding': 'Pausar animación; cediendo a {owner}',
+ 'viewer.motion.yielding.title': 'Vista previa en vivo activada · cediendo a {owner}',
+ 'viewer.owner.story': 'la narrativa guiada',
+ 'viewer.owner.chapter': 'el capítulo activo',
+ 'viewer.owner.chapterPreview': 'la vista previa de cambios del capítulo',
+ 'viewer.owner.handoff': 'la transición del capítulo',
+ 'viewer.owner.route': 'Sonda de ruta',
+ 'viewer.owner.lens': 'Lente semántico',
+ 'viewer.owner.relationship': 'Vista previa de relación',
+ 'viewer.owner.intent': 'Traza de intención',
+ 'viewer.owner.focus': 'enfoque semántico',
+ 'viewer.owner.legend': 'vista previa de la leyenda',
+ 'viewer.owner.reader': 'interacción del lector',
+ 'viewer.present.enter': 'Entrar al modo presentación',
+ 'viewer.present.enter.title': 'Modo presentación (F)',
+ 'viewer.present.exit': 'Salir del modo presentación',
+ 'viewer.present.exit.title': 'Salir del modo presentación (F o Escape)',
+ 'viewer.present.present': 'Presentar',
+ 'viewer.present.exit.label': 'Salir',
+ 'viewer.export.button': 'Exportar',
+ 'viewer.export.button.title': 'Exportar diagrama (E)',
+ 'viewer.export.diagram': 'Exportar diagrama',
+ 'viewer.export.menu': 'Exportar',
+ 'viewer.export.subtitle': 'Salidas portables y limpias',
+ 'viewer.export.share': 'Compartir',
+ 'viewer.export.shareCard': 'Tarjeta para compartir',
+ 'viewer.export.routeShareCard': 'Tarjeta de ruta para compartir',
+ 'viewer.export.reachShareCard': 'Tarjeta de alcance para compartir',
+ 'viewer.export.copyShareCard': 'Copiar tarjeta para compartir',
+ 'viewer.export.copyDiagram': 'Copiar diagrama',
+ 'viewer.export.clipboardPng': 'PNG al portapapeles',
+ 'viewer.export.raster': 'Imágenes rasterizadas',
+ 'viewer.export.image': 'Imagen',
+ 'viewer.export.lossless': 'Imagen sin pérdida',
+ 'viewer.export.compact': 'Imagen compacta',
+ 'viewer.export.modern': 'Imagen moderna',
+ 'viewer.export.vectorMotion': 'Vector y movimiento',
+ 'viewer.export.vectorMotion.heading': 'Vector y movimiento',
+ 'viewer.export.editable': 'Vector editable',
+ 'viewer.export.motion6s': 'Movimiento de 6 s',
+ 'viewer.export.unsupported': 'No compatible con este navegador',
+ 'viewer.export.clipboardUnsupported': 'Este navegador no admite escribir imágenes en el portapapeles',
+ 'viewer.export.clipboardUnsupported.period': 'Este navegador no admite escribir imágenes en el portapapeles.',
+ 'viewer.export.clipboardUnsupported.short': 'Escritura de imágenes en el portapapeles no admitida en este navegador.',
+ 'viewer.export.motionUnavailable': 'Captura de movimiento no disponible en este navegador',
+ 'viewer.export.webmUnavailable': 'WebM no disponible en este navegador',
+ 'viewer.export.failed': 'Falló la exportación: {message}',
+ 'viewer.export.unknownVariant': 'Variante de tarjeta para compartir desconocida: {variant}',
+ 'viewer.export.routeRequired': 'Traza una ruta antes de exportar una tarjeta de ruta para compartir',
+ 'viewer.export.reachRequired': 'Traza el alcance definido antes de exportar una tarjeta de alcance para compartir',
+ 'viewer.export.unknown': 'desconocido',
+ 'viewer.export.routeFailed': 'Falló la exportación de la tarjeta de ruta para compartir: {message}',
+ 'viewer.export.reachFailed': 'Falló la exportación de la tarjeta de alcance para compartir: {message}',
+ 'viewer.export.copyFailed': 'Error al copiar: {message}',
+ 'viewer.export.copiedPng': 'PNG copiado al portapapeles',
+ 'viewer.export.copiedShare': 'Tarjeta para compartir copiada',
+ 'viewer.export.downloadedShare': 'Tarjeta para compartir descargada',
+ 'viewer.export.downloadedRoute': 'Tarjeta de ruta para compartir descargada',
+ 'viewer.export.downloadedReach': 'Tarjeta de alcance para compartir descargada',
+ 'viewer.export.downloadedWebm': 'WebM descargado',
+ 'viewer.export.recording': 'Grabando 6 segundos de movimiento…',
+ 'viewer.export.card.routeSummary.one': 'Ruta: {source} → {target} · {count} salto dirigido',
+ 'viewer.export.card.routeSummary.other': 'Ruta: {source} → {target} · {count} saltos dirigidos',
+ 'viewer.export.card.reachSummary': 'Alcance definido {direction} desde {origin} · {nodes} · {links} · máx {hops}',
+ 'viewer.export.card.node.one': '{count} nodo',
+ 'viewer.export.card.node.other': '{count} nodos',
+ 'viewer.export.card.link.one': '{count} enlace',
+ 'viewer.export.card.link.other': '{count} enlaces',
+ 'viewer.export.card.hop.one': '{count} salto',
+ 'viewer.export.card.hop.other': '{count} saltos',
+ 'viewer.export.card.routeBadge': 'ARCHIFY · RUTA · {hops}',
+ 'viewer.export.card.reachBadge': 'ARCHIFY · ALCANCE {direction}',
+ 'viewer.export.card.defaultBadge': 'ARCHIFY · {preset} · {theme}',
+ 'viewer.export.direction.upstream': 'Ascendente',
+ 'viewer.export.direction.downstream': 'Descendente',
+ 'viewer.export.error.canvasUnavailable': 'Lienzo no disponible para {label}',
+ 'viewer.export.error.contextUnavailable': 'Contexto de lienzo 2D no disponible para {label}',
+ 'viewer.export.error.toBlobUnavailable': 'canvas.toBlob no disponible para {label}',
+ 'viewer.export.error.toBlobNull': 'canvas.toBlob no devolvió datos para {label}',
+ 'viewer.export.error.variantsCombined': 'Las variantes de tarjeta para compartir no se pueden combinar',
+ 'viewer.export.error.viewerState': 'La exportación de la tarjeta para compartir no pudo quitar el estado temporal del visor',
+ 'viewer.export.error.routeState': 'La exportación de la tarjeta de ruta no pudo preservar la ruta resuelta de forma segura',
+ 'viewer.export.error.reachState': 'La exportación de la tarjeta de alcance no pudo preservar el alcance definido de forma segura',
+ 'viewer.export.error.webmRequirements': 'La exportación de movimiento WebM requiere una animación de traza y compatibilidad del navegador con MediaRecorder',
+ 'viewer.export.error.mediaRecorder': 'MediaRecorder falló',
+ 'viewer.export.error.emptyWebm': 'MediaRecorder produjo un WebM vacío',
+ 'viewer.export.error.webmBackground': 'No se pudo cargar el fondo SVG para la exportación WebM',
+ 'viewer.guided.region': 'Vistas guiadas del diagrama',
+ 'viewer.guided.previous': 'Vista guiada anterior',
+ 'viewer.guided.previous.title': 'Vista guiada anterior ([)',
+ 'viewer.guided.next': 'Vista guiada siguiente',
+ 'viewer.guided.next.title': 'Vista guiada siguiente (])',
+ 'viewer.guided.views': 'Vistas guiadas',
+ 'viewer.guided.explore': 'Explorar este sistema',
+ 'viewer.guided.intro': 'Recorre rutas curadas sin cambiar el diagrama de origen.',
+ 'viewer.guided.trail': 'Recorrido de la narrativa',
+ 'viewer.guided.beat': 'Momento',
+ 'viewer.guided.nextBeat': 'Siguiente',
+ 'viewer.guided.play': 'Reproducir narrativa guiada',
+ 'viewer.guided.play.title': 'Reproducir narrativa guiada (P)',
+ 'viewer.guided.pause': 'Pausar narrativa guiada',
+ 'viewer.guided.pause.title': 'Pausar narrativa guiada (P)',
+ 'viewer.guided.replay': 'Repetir narrativa guiada',
+ 'viewer.guided.replay.title': 'Repetir narrativa guiada (P)',
+ 'viewer.guided.playStory': 'Reproducir narrativa',
+ 'viewer.guided.pauseStory': 'Pausar',
+ 'viewer.guided.replayStory': 'Repetir narrativa',
+ 'viewer.guided.motionUnavailable': 'Reproducción de la narrativa no disponible mientras la animación está Fija',
+ 'viewer.guided.enableMotion': 'Cambia la animación a Activa para reproducir la narrativa guiada',
+ 'viewer.guided.selectBeatLink': 'Selecciona un momento de la narrativa para copiar su enlace exacto',
+ 'viewer.guided.copyMoment': 'Copiar momento',
+ 'viewer.guided.momentCopied': 'Enlace del momento copiado',
+ 'viewer.guided.momentCopyFailed': 'No se pudo copiar el enlace del momento de la narrativa',
+ 'viewer.guided.copied': 'Copiado',
+ 'viewer.guided.copyFailed': 'Error al copiar',
+ 'viewer.guided.showAll': 'Mostrar todo',
+ 'viewer.guided.showAll.aria': 'Mostrar el diagrama completo',
+ 'viewer.guided.chapters': 'Capítulos de la narrativa',
+ 'viewer.guided.storyTrail': 'Recorrido de la narrativa de {label}: {count} momentos',
+ 'viewer.guided.chapter.open': 'Abrir capítulo {index} de {total}: {label}, {count} paradas',
+ 'viewer.guided.chapter.current': 'Capítulo actual {index} de {total}: {label}, {count} paradas',
+ 'viewer.guided.chapter.selectedNodes': '{count} nodos seleccionados',
+ 'viewer.guided.chapter.stops': '{count} paradas',
+ 'viewer.guided.chapter.stop.one': '{count} parada',
+ 'viewer.guided.chapter.stop.other': '{count} paradas',
+ 'viewer.guided.chapter.current.title': '{label} — capítulo actual, {count} paradas',
+ 'viewer.guided.chapter.delta.expanded': '{stay} permanecen, {enter} entran, {leave} salen',
+ 'viewer.guided.chapter.delta.aria': 'Abrir capítulo {index} de {total}: {label}. Cambio de enfoque del capítulo: {delta}',
+ 'viewer.guided.chapter.delta.title': '{label} — {delta} de enfoque del capítulo',
+ 'viewer.guided.handoff': '{from} → {to} · vía {label}',
+ 'viewer.guided.share.chapter': 'Capítulo {index} / {total}',
+ 'viewer.guided.share.initial': 'Capítulo 01 / 01',
+ 'viewer.guided.share.default': 'Capítulo guiado',
+ 'viewer.guided.state.ready': 'Listo',
+ 'viewer.guided.state.playing': 'Reproduciendo',
+ 'viewer.guided.state.settled': 'Asentado',
+ 'viewer.guided.state.paused': 'Pausado',
+ 'viewer.guided.state.pinned': 'Fijado',
+ 'viewer.guided.state.still': 'Fijo',
+ 'viewer.guided.share.step': 'Paso {index} / {total} · {label}',
+ 'viewer.guided.share.staticMoment': '{step} · Momento estático',
+ 'viewer.guided.share.complete': '{count} pasos completados · {note}',
+ 'viewer.guided.share.settled': 'Ruta asentada para su lectura.',
+ 'viewer.guided.share.staticPath': '{count} pasos · Ruta estática',
+ 'viewer.guided.share.ready': '{count} pasos · Listo',
+ 'viewer.guided.share.aria': '{state} capítulo {index} de {total}: {label}. {beat}. {route}',
+ 'viewer.guided.beat.start': 'Momento {index} / {total} · {label} · punto de partida',
+ 'viewer.guided.beat.forward': 'Momento {index} / {total} · {from} → {to}',
+ 'viewer.guided.beat.reverse': 'Momento {index} / {total} · {from} → {to} · enlace definido en sentido inverso',
+ 'viewer.guided.beat.multiple': 'Momento {index} / {total} · {from} ⇄ {to} · {count} enlaces definidos',
+ 'viewer.guided.beat.group': 'Momento {index} / {total} · {from} · {to} · agrupado · sin enlace directo',
+ 'viewer.guided.beat.aria.prefix': 'Momento de la narrativa {index} de {total}: {label}. ',
+ 'viewer.guided.beat.aria.start': 'Punto de partida.',
+ 'viewer.guided.beat.aria.forward': 'Desde {from} a través de una relación definida hacia adelante.',
+ 'viewer.guided.beat.aria.reverse': 'Desde {from}; la relación definida apunta de {to} a {from}.',
+ 'viewer.guided.beat.aria.multiple': 'Desde {from} a través de {count} relaciones definidas; mostrado sin movimiento arbitrario.',
+ 'viewer.guided.beat.aria.group': 'Agrupado desde {from} sin relación directa definida.',
+ 'viewer.guided.caption.start': 'Punto de partida',
+ 'viewer.guided.caption.grouped': 'Transición agrupada · sin enlace directo definido',
+ 'viewer.guided.caption.more': ' +{count} más',
+ 'viewer.guided.caption.reverse': 'Relación definida en sentido inverso',
+ 'viewer.guided.caption.relationships': '{count} relaciones definidas',
+ 'viewer.guided.caption.relationship': 'Relación definida',
+ 'viewer.guided.caption.direction': 'sentido definido: {from} → {to}',
+ 'viewer.guided.caption.starting': 'Punto de partida definido',
+ 'viewer.guided.beatLink': 'Copiar enlace al momento actual de la narrativa: Momento {index} de {total}: {label}',
+ 'viewer.guided.noStory': 'Este diagrama no tiene una narrativa guiada definida.',
+ 'viewer.guide.eyebrow': 'Guía del diagrama',
+ 'viewer.guide.close': 'Cerrar la guía del diagrama',
+ 'viewer.guide.inspecting': 'Inspeccionando la semántica compilada',
+ 'viewer.guide.actions': 'Acciones de exploración del diagrama',
+ 'viewer.guide.find': 'Buscar cualquier nodo',
+ 'viewer.guide.find.hint': 'Busca por etiquetas, responsabilidades, tipos e IDs estables.',
+ 'viewer.guide.route': 'Trazar una ruta',
+ 'viewer.guide.route.aria': 'Trazar una ruta dirigida',
+ 'viewer.guide.route.hint': 'Pregunta cómo se conectan dos nodos semánticos en el sentido definido.',
+ 'viewer.guide.map': 'Ver todo el sistema',
+ 'viewer.guide.map.hint': 'Abre el Radar semántico con un viewport en vivo y nodos estables.',
+ 'viewer.guide.lens': 'Comparar tipos semánticos',
+ 'viewer.guide.lens.hint': 'Cuenta roles, revela su tráfico y compara enlaces directos definidos.',
+ 'viewer.guide.story': 'Reproducir la narrativa guiada',
+ 'viewer.guide.story.hint': 'Recorre los capítulos definidos y las relaciones reales.',
+ 'viewer.guide.present': 'Entrar al modo presentación',
+ 'viewer.guide.present.hint': 'Dale al diagrama en vivo todo el viewport sin cambiar la exportación.',
+ 'viewer.guide.shortcuts': 'Atajos de teclado adicionales',
+ 'viewer.guide.shortcut.export': 'Exportar',
+ 'viewer.guide.shortcut.theme': 'Tema',
+ 'viewer.guide.shortcut.style': 'Estilo',
+ 'viewer.guide.shortcut.reset': 'Restablecer',
+ 'viewer.guide.shortcut.zoomIn': 'Acercar',
+ 'viewer.guide.shortcut.zoomOut': 'Alejar',
+ 'viewer.guide.shortcut.close': 'Cerrar',
+ 'viewer.guide.facts': '{nodes} · {relationships} · {views}',
+ 'viewer.guide.fact.node.one': '{count} nodo semántico',
+ 'viewer.guide.fact.node.other': '{count} nodos semánticos',
+ 'viewer.guide.fact.relationship.one': '{count} relación',
+ 'viewer.guide.fact.relationship.other': '{count} relaciones',
+ 'viewer.guide.fact.view.one': '{count} vista guiada',
+ 'viewer.guide.fact.view.other': '{count} vistas guiadas',
+ 'viewer.guide.story.available.one': 'Recorre {count} capítulo definido y sus relaciones reales.',
+ 'viewer.guide.story.available.other': 'Recorre {count} capítulos definidos y sus relaciones reales.',
+ 'viewer.guide.story.unavailable': 'Este diagrama no tiene una narrativa guiada definida.',
+ 'viewer.guide.open': 'Abrir la guía del diagrama',
+ 'viewer.guide.noStory': 'Este diagrama no tiene una narrativa guiada definida.',
+ 'viewer.finder.title': 'Buscar un nodo',
+ 'viewer.finder.close': 'Cerrar el buscador de nodos',
+ 'viewer.finder.placeholder': 'Buscar etiquetas o IDs',
+ 'viewer.finder.search': 'Buscar nodos del diagrama',
+ 'viewer.finder.results': 'Nodos del diagrama',
+ 'viewer.finder.empty': 'No hay nodos coincidentes',
+ 'viewer.finder.result.focus': 'Enfocar {label}',
+ 'viewer.finder.result.routeStart': 'Elegir {label} como inicio de la ruta',
+ 'viewer.finder.result.routeTarget': 'Elegir {label} como destino de la ruta, {links}',
+ 'viewer.finder.status.empty': 'No hay nodos coincidentes',
+ 'viewer.finder.status.count.one': '{count} nodo coincidente',
+ 'viewer.finder.status.count.other': '{count} nodos coincidentes',
+ 'viewer.finder.noun.nodes': 'nodos',
+ 'viewer.finder.link.one': '{count} enlace',
+ 'viewer.finder.link.other': '{count} enlaces',
+ 'viewer.finder.result.focus.one': 'Enfocar {label}, {count} conexión relacionada',
+ 'viewer.finder.result.focus.other': 'Enfocar {label}, {count} conexiones relacionadas',
+ 'viewer.finder.status.filtered': '{visible} de {available} {noun}',
+ 'viewer.finder.status.all': '{available} {noun}',
+ 'viewer.passport.eyebrow': 'Pasaporte semántico',
+ 'viewer.passport.metadata': 'Metadatos del nodo',
+ 'viewer.passport.evidence': 'Evidencia de fuente verificada',
+ 'viewer.passport.verified': 'Fuente verificada',
+ 'viewer.passport.verificationScope': 'Verificado contra el Git local en la revisión fijada. No se ha comprobado el acceso remoto.',
+ 'viewer.passport.reach': 'Alcance definido',
+ 'viewer.passport.reach.trace': 'Trazar la alcanzabilidad definida',
+ 'viewer.passport.upstream': 'Ascendente',
+ 'viewer.passport.downstream': 'Descendente',
+ 'viewer.passport.upstream.trace': 'Trazar la alcanzabilidad definida ascendente',
+ 'viewer.passport.downstream.trace': 'Trazar la alcanzabilidad definida descendente',
+ 'viewer.passport.close': 'Cerrar el pasaporte semántico',
+ 'viewer.passport.copy': 'Copiar enlace',
+ 'viewer.passport.copy.focus': 'Copiar enlace al nodo enfocado',
+ 'viewer.passport.relations': 'Relaciones',
+ 'viewer.passport.relations.show': 'Mostrar relaciones conectadas',
+ 'viewer.passport.relations.hide': 'Ocultar relaciones conectadas',
+ 'viewer.passport.relations.list': 'Relaciones conectadas',
+ 'viewer.passport.copyRelation': 'Copiar relación',
+ 'viewer.passport.copyNode': 'Copiar nodo',
+ 'viewer.passport.copyPinned': 'Copiar enlace a la relación fijada',
+ 'viewer.passport.copySource': 'Copiar enlace al nodo de origen',
+ 'viewer.passport.copy.focused.success': 'Enlace del nodo enfocado copiado',
+ 'viewer.passport.copy.pinned.success': 'Enlace de la relación fijada copiado',
+ 'viewer.passport.copy.focused.failed': 'No se pudo copiar el enlace del nodo enfocado',
+ 'viewer.passport.copy.pinned.failed': 'No se pudo copiar el enlace de la relación fijada',
+ 'viewer.passport.relationship.none': 'No hay relaciones conectadas',
+ 'viewer.passport.relationship.count.one': '{count} relación',
+ 'viewer.passport.relationship.count.other': '{count} relaciones',
+ 'viewer.passport.relationship.show.one': 'Mostrar {count} relación conectada',
+ 'viewer.passport.relationship.show.other': 'Mostrar {count} relaciones conectadas',
+ 'viewer.passport.relationship.summary': '{out} salientes · {in} entrantes{loops}',
+ 'viewer.passport.relationship.loops': ' · {count} bucle',
+ 'viewer.passport.relationship.explorer': 'Explorador de relaciones directas',
+ 'viewer.passport.relationship.help': 'Usa las flechas para explorar las relaciones. Pulsa Enter o Espacio para fijar detalles; Escape las borra.',
+ 'viewer.passport.relationship.loopsBack': 'vuelve sobre sí mismo',
+ 'viewer.passport.relationship.connectsTo': 'conecta a',
+ 'viewer.passport.relationship.connectsFrom': 'conecta desde',
+ 'viewer.passport.relationship.pinned': 'Relación fijada · {from} → {to} · {label}',
+ 'viewer.passport.relationship.inspect': 'Inspeccionar relación {index} de {total}: {from} a {to}, {label}. Pulsa Enter para ver detalles.',
+ 'viewer.passport.relationship.group.out': 'Salientes',
+ 'viewer.passport.relationship.group.in': 'Entrantes',
+ 'viewer.passport.relationship.group.loop': 'Bucles propios',
+ 'viewer.passport.relationship.row': '{group}: {relationship}, {neighbor}',
+ 'viewer.passport.relationship.direction.out': 'SAL →',
+ 'viewer.passport.relationship.direction.in': '← ENT',
+ 'viewer.passport.relationship.direction.loop': 'BUCLE',
+ 'viewer.passport.sourceCount.one': '{count} referencia de fuente verificada',
+ 'viewer.passport.sourceCount.other': '{count} referencias de fuente verificadas',
+ 'viewer.passport.sourceMarker': 'SRC',
+ 'viewer.passport.beacon.one': '{count} fuente verificada; enfoca este nodo para inspeccionar',
+ 'viewer.passport.beacon.other': '{count} fuentes verificadas; enfoca este nodo para inspeccionar',
+ 'viewer.passport.repository.open': 'Abrir la revisión verificada del repositorio {revision}',
+ 'viewer.passport.source.open': 'Abrir la fuente verificada {path} en la revisión {revision}',
+ 'viewer.passport.source.openLink': 'Abrir ↗',
+ 'viewer.passport.reach.upstream.one': 'Trazar {count} nodo definido ascendente',
+ 'viewer.passport.reach.upstream.other': 'Trazar {count} nodos definidos ascendentes',
+ 'viewer.passport.reach.downstream.one': 'Trazar {count} nodo definido descendente',
+ 'viewer.passport.reach.downstream.other': 'Trazar {count} nodos definidos descendentes',
+ 'viewer.passport.reach.noUpstream': 'No hay nodos definidos ascendentes',
+ 'viewer.passport.reach.noDownstream': 'No hay nodos definidos descendentes',
+ 'viewer.passport.reach.status': '{direction} · {nodes} nodos · {links} enlaces · máx {hops} saltos',
+ 'viewer.route.eyebrow': 'Sonda de ruta',
+ 'viewer.route.start': 'Elegir un nodo de inicio',
+ 'viewer.route.start.find': 'Buscar inicio',
+ 'viewer.route.start.find.aria': 'Buscar un inicio de ruta',
+ 'viewer.route.copy': 'Copiar enlace',
+ 'viewer.route.copy.aria': 'Copiar enlace a la ruta trazada',
+ 'viewer.route.clear': 'Borrar',
+ 'viewer.route.clear.aria': 'Borrar la sonda de ruta',
+ 'viewer.route.traced': 'Ruta trazada',
+ 'viewer.route.pickTwo': 'Elige dos nodos semánticos en el diagrama',
+ 'viewer.route.pickOne': 'Elige un nodo semántico en el diagrama',
+ 'viewer.route.controls': 'Controles del recorrido de la ruta',
+ 'viewer.route.previous': 'Posición anterior de la ruta',
+ 'viewer.route.play': 'Reproducir el recorrido de la ruta',
+ 'viewer.route.pause': 'Pausar el recorrido de la ruta',
+ 'viewer.route.replay': 'Repetir el recorrido de la ruta',
+ 'viewer.route.next': 'Posición siguiente de la ruta',
+ 'viewer.route.journey': 'Recorrido',
+ 'viewer.route.pause.label': 'Pausar',
+ 'viewer.route.replay.label': 'Repetir',
+ 'viewer.route.overview': 'Vista general',
+ 'viewer.route.overview.aria': 'Mostrar la vista general completa de la ruta',
+ 'viewer.route.instructions': 'Elige el origen y luego el destino. El sentido importa.',
+ 'viewer.route.destination': 'Elige un destino desde {label}',
+ 'viewer.route.destination.find': 'Buscar destino',
+ 'viewer.route.destination.find.aria': 'Buscar un destino de ruta alcanzable',
+ 'viewer.route.differentDestination': 'Elige un destino diferente',
+ 'viewer.route.distinct': 'Una ruta necesita dos nodos semánticos distintos.',
+ 'viewer.route.unreachable': 'No hay ruta dirigida a {label}',
+ 'viewer.route.unreachable.detail': '{target} no es alcanzable desde {source}. Elige un destino resaltado.',
+ 'viewer.route.start.instructions': 'Selecciona el origen. El siguiente paso revelará solo los destinos dirigidos.',
+ 'viewer.route.copy.success': 'Enlace de la ruta trazada copiado',
+ 'viewer.route.copy.failed': 'No se pudo copiar el enlace de la ruta trazada',
+ 'viewer.route.position': 'Posición de la ruta {index} de {total}: {label}',
+ 'viewer.route.step': 'Paso {index} de {total} · {phase} · {label}',
+ 'viewer.route.motionRequired': 'El recorrido automático requiere la animación Activa',
+ 'viewer.route.trigger.clear': 'Borrar la ruta trazada',
+ 'viewer.route.overview.status': '{nodes} · {hops} · ruta definida más corta',
+ 'viewer.route.overview.node.one': '{count} nodo',
+ 'viewer.route.overview.node.other': '{count} nodos',
+ 'viewer.route.overview.hop.one': '{count} salto dirigido',
+ 'viewer.route.overview.hop.other': '{count} saltos dirigidos',
+ 'viewer.route.phase.playing': 'Reproduciendo',
+ 'viewer.route.phase.complete': 'Completo',
+ 'viewer.route.phase.inspecting': 'Inspeccionando',
+ 'viewer.route.destination.count.one': '{count} destino dirigido disponible. Elige un nodo resaltado.',
+ 'viewer.route.destination.count.other': '{count} destinos dirigidos disponibles. Elige un nodo resaltado.',
+ 'viewer.route.noOutgoing': 'Aquí no comienza ninguna ruta saliente. Borra y elige otro origen.',
+ 'viewer.route.result.title': '{source} a {target}',
+ 'viewer.route.finder.source.title': 'Elegir el inicio de la ruta',
+ 'viewer.route.finder.source.placeholder': 'Buscar orígenes de ruta',
+ 'viewer.route.finder.source.empty': 'No hay orígenes de ruta coincidentes',
+ 'viewer.route.finder.source.results': 'Nodos que pueden iniciar una ruta',
+ 'viewer.route.finder.source.noun': 'orígenes de ruta',
+ 'viewer.route.finder.source.badge': 'inicio',
+ 'viewer.route.finder.target.title': 'Destino desde {label}',
+ 'viewer.route.finder.target.placeholder': 'Buscar destinos alcanzables',
+ 'viewer.route.finder.target.empty': 'No hay destinos alcanzables coincidentes',
+ 'viewer.route.finder.target.results': 'Destinos de ruta alcanzables',
+ 'viewer.route.finder.target.noun': 'destinos alcanzables',
+ 'viewer.route.hop.one': '{count} salto',
+ 'viewer.route.hop.other': '{count} saltos',
+ 'viewer.lens.eyebrow': 'Lente semántico',
+ 'viewer.lens.title': 'Comparar roles del sistema',
+ 'viewer.lens.close': 'Cerrar el lente semántico',
+ 'viewer.lens.instruction': 'Elige hasta dos tipos semánticos. Uno revela su tráfico real; dos comparan solo las relaciones directas definidas.',
+ 'viewer.lens.kinds': 'Tipos semánticos',
+ 'viewer.lens.choose': 'Elige un tipo para inspeccionar sus nodos y las relaciones que lo tocan.',
+ 'viewer.lens.copy': 'Copiar enlace al lente semántico',
+ 'viewer.lens.clear': 'Borrar el lente semántico',
+ 'viewer.lens.open': 'Abrir el lente semántico',
+ 'viewer.lens.openActive': 'Abrir el lente semántico activo',
+ 'viewer.lens.legend': 'Leyenda semántica',
+ 'viewer.lens.legend.inspect.one': 'Inspeccionar {label}, {count} nodo',
+ 'viewer.lens.legend.inspect.other': 'Inspeccionar {label}, {count} nodos',
+ 'viewer.lens.kind.count.one': '{label}, {count} nodo',
+ 'viewer.lens.kind.count.other': '{label}, {count} nodos',
+ 'viewer.lens.compare.one': '{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} relación directa',
+ 'viewer.lens.compare.other': '{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} relaciones directas',
+ 'viewer.lens.single': '{nodes} · {relationships} · los pares conectados permanecen visibles',
+ 'viewer.lens.node.one': '{count} nodo {label}',
+ 'viewer.lens.node.other': '{count} nodos {label}',
+ 'viewer.lens.relationship.one': '{count} relación en contacto',
+ 'viewer.lens.relationship.other': '{count} relaciones en contacto',
+ 'viewer.radar.title': 'Radar semántico',
+ 'viewer.radar.building': 'Construyendo la vista general',
+ 'viewer.radar.openFull': 'Abrir el radar semántico completo',
+ 'viewer.radar.open': 'Abrir el radar',
+ 'viewer.radar.close': 'Cerrar el radar semántico',
+ 'viewer.radar.surface': 'Vista general del diagrama. Haz clic en un nodo para enfocarlo, o usa las flechas para desplazarte.',
+ 'viewer.radar.click': 'Clic en el nodo',
+ 'viewer.radar.drag': 'Arrastra para desplazar',
+ 'viewer.radar.space': 'El radar semántico necesita más espacio de MAPA.',
+ 'viewer.radar.nodes': 'Nodos del radar del diagrama semántico',
+ 'viewer.radar.focus': 'Enfocar {label} desde el Radar semántico',
+ 'viewer.radar.status': '{count} nodos · {viewport}',
+ 'viewer.radar.fullMap': '{count} nodos · mapa completo',
+ 'viewer.radar.compacted': 'Radar compactado para no tapar el Pasaporte semántico ni los controles de MAPA.',
+ 'viewer.radar.cancelWaiting': 'Cancelar la espera del radar semántico por más espacio de MAPA',
+ 'viewer.radar.needsSpace': 'El radar semántico necesita más espacio de MAPA visible',
+ 'viewer.radar.viewport.full': 'mapa completo',
+ 'viewer.radar.viewport.width': '{percent}% de ancho',
+ 'viewer.radar.viewport.scale': '{percent}% del viewport',
+ 'viewer.nav.controls': 'Controles de vista del diagrama',
+ 'viewer.nav.route': 'Trazar una ruta dirigida',
+ 'viewer.nav.route.title': 'Trazar ruta (R)',
+ 'viewer.nav.route.short': 'RUTA',
+ 'viewer.nav.radar': 'Abrir el radar semántico',
+ 'viewer.nav.radar.title': 'Radar semántico (M)',
+ 'viewer.nav.radar.short': 'MAPA',
+ 'viewer.nav.lens': 'Abrir el lente semántico',
+ 'viewer.nav.lens.title': 'Lente semántico (L)',
+ 'viewer.nav.lens.short': 'LENTE',
+ 'viewer.nav.find': 'Buscar un nodo',
+ 'viewer.nav.find.title': 'Buscar un nodo (/)',
+ 'viewer.nav.guide': 'Abrir la guía del diagrama',
+ 'viewer.nav.guide.title': 'Guía del diagrama (?)',
+ 'viewer.nav.zoomOut': 'Alejar',
+ 'viewer.nav.zoomOut.title': 'Alejar (-)',
+ 'viewer.nav.reset': 'Restablecer la vista del diagrama',
+ 'viewer.nav.reset.title': 'Restablecer vista (0)',
+ 'viewer.nav.read': 'LEER',
+ 'viewer.nav.zoomIn': 'Acercar',
+ 'viewer.nav.zoomIn.title': 'Acercar (+)',
+ 'viewer.nav.camera': '{hint}. Restablecer la vista del diagrama',
+ 'viewer.nav.camera.title': '{semantic}{hint} · restablecer vista (0)',
+ 'viewer.nav.camera.semantic': 'Cámara semántica activa · ',
+ 'viewer.nav.level.map': 'MAPA',
+ 'viewer.nav.level.read': 'LEER',
+ 'viewer.nav.level.full': 'COMPLETO',
+ 'viewer.nav.level.auto': 'AUTO',
+ 'viewer.nav.detail.map': 'Acerca para revelar las etiquetas de relación y el contexto de los nodos',
+ 'viewer.nav.detail.read': 'Acerca de nuevo para revelar etiquetas y anotaciones',
+ 'viewer.nav.detail.full': 'Detalle completo del diagrama',
+ 'viewer.intent.summary': '{label}. {out} salientes, {in} entrantes{loops}. {total} conexiones. Pulsa Enter para ver detalles.',
+ 'viewer.intent.loops': ', {count} bucle propio',
+ 'viewer.common.copied': 'Copiado',
+ 'viewer.common.copyFailed': 'Error al copiar',
+ 'viewer.common.copyLink': 'Copiar enlace',
+ 'viewer.common.clear': 'Borrar',
+ 'viewer.common.close': 'Cerrar',
+ },
};
for (const [locale, catalog] of Object.entries(BUILTIN_CATALOGS)) {
diff --git a/archify/schemas/README.md b/archify/schemas/README.md
index 0463af47..af6a4234 100644
--- a/archify/schemas/README.md
+++ b/archify/schemas/README.md
@@ -24,8 +24,8 @@ in generated HTML. Omit it, or set `"none"`, for the default static output.
It also accepts `locale`, any well-formed language tag (schema pattern
`^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$`). The field selects the fixed Viewer UI,
renderer-owned default legend and accessibility copy, document-title suffix,
-and `<html lang>` value; it does not translate authored strings. `en` and
-`zh-CN` are built-in catalogs; any other tag needs a matching `translations`
+and `<html lang>` value; it does not translate authored strings. `en`,
+`zh-CN`, and `es` are built-in catalogs; any other tag needs a matching `translations`
object (see below) or the renderer falls back to English and discloses it.
Omitting `locale` preserves legacy behavior and resolves to English.
Malformed locale tags fail schema validation instead of being guessed or
@@ -150,7 +150,7 @@ The five diagram schemas reference `common.schema.json#/$defs/...`:
- `point` — an `[x, y]` pair of numbers (used by `via` and `labelAt`)
- `componentType` — `frontend`, `backend`, `database`, `cloud`, `security`,
`messagebus`, `external`
-- `locale` — a well-formed renderer locale tag (`en` and `zh-CN` are built in;
+- `locale` — a well-formed renderer locale tag (`en`, `zh-CN`, and `es` are built in;
any other tag needs a matching `translations` object)
- `translations` — canonical message key → translated string, for a `locale`
with no built-in catalog
diff --git a/archify/test/i18n.test.mjs b/archify/test/i18n.test.mjs
index baaddd8e..f18b3ac6 100644
--- a/archify/test/i18n.test.mjs
+++ b/archify/test/i18n.test.mjs
@@ -151,7 +151,7 @@ async function loadArtifact(browser, artifactPath) {
}
test('zh-CN localizes renderer-owned output across all five modes without translating authored content', () => {
- assert.deepEqual(SUPPORTED_LOCALES, ['en', 'zh-CN']);
+ assert.deepEqual(SUPPORTED_LOCALES, ['en', 'zh-CN', 'es']);
for (const type of Object.keys(EXAMPLES)) {
const document = example(type);
const authoredTitle = document.meta.title;
@@ -173,6 +173,32 @@ test('zh-CN localizes renderer-owned output across all five modes without transl
}
});
+test('es localizes renderer-owned output across all five modes without translating authored content', () => {
+ // es must keep working as a built-in catalog: it ships on dev independently
+ // of meta.translations, and this PR's mechanism must not regress it to an
+ // English fallback once merged (see tt-a1i's review on #457).
+ for (const type of Object.keys(EXAMPLES)) {
+ const document = example(type);
+ const authoredTitle = document.meta.title;
+ document.meta.locale = 'es';
+ delete document.meta.subtitle;
+
+ const result = run(type, document);
+ assert.equal(result.status, 0, `${type}: ${result.stderr || result.stdout}`);
+ assert.match(result.html, /^<!DOCTYPE html>\n<html lang="es"/);
+ assert.match(result.html, /<svg\b[^>]*\blang="es"/);
+ assert.ok(result.html.includes(`<title>${authoredTitle} · Diagrama</title>`), `${type}: authored title changed`);
+ assert.ok(result.html.includes(`<h1>${authoredTitle}</h1>`), `${type}: authored heading changed`);
+ assert.match(result.html, /<text\b[^>]*>Leyenda<\/text>/);
+ assert.match(result.html, /aria-label="Enfocar /);
+ assert.match(result.html, /<desc id="archify-diagram-description">[^<]*generado por Archify/);
+ assert.match(result.html, /"locale":"es"/);
+ assert.match(result.html, />Exportar diagrama</);
+ assert.doesNotMatch(result.html, /\{\{i18n:/);
+ assert.doesNotMatch(result.stderr, /has no built-in catalog/, `${type}: es unexpectedly fell back to English`);
+ }
+});
+
test('ko localizes renderer-owned output across all five modes via meta.translations, without translating authored content', () => {
for (const type of Object.keys(EXAMPLES)) {
const document = example(type);
diff --git a/archify/test/skill-metadata.test.mjs b/archify/test/skill-metadata.test.mjs
index 0a734e76..d4fb6762 100644
--- a/archify/test/skill-metadata.test.mjs
+++ b/archify/test/skill-metadata.test.mjs
@@ -63,7 +63,7 @@ test('language behavior stays within the bounded locale contract', () => {
assert.match(skill, /one primary authored language/);
assert.match(skill, /explicit user choice; otherwise follow the request or conversation's dominant language/);
assert.match(skill, /`meta\.locale` controls only renderer-owned Viewer UI/);
- assert.match(skill, /`"en"` and `"zh-CN"` are built in/);
+ assert.match(skill, /`"en"`, `"zh-CN"`, and `"es"` are built in/);
assert.match(skill, /`meta\.translations` supplying the renderer-owned message catalog as data/);
assert.match(skill, /fixed Viewer UI and `<html lang>` fall back to English/);
assert.match(skill, /renderer never translates authored content/i);