Elffuss BraidHub

utopia-ia/elffuss-code public

main · 22.6 KiBRawPermalink
1// Textos del panel de extensiones (ES/EN). Van aparte de js/i18n.js para no
2// tocar ese fichero; mismo idioma (uiLang) y misma sustitución {var}.
3import { uiLang } from '../i18n.js';
4
5const L = {
6 es: {
7 title: 'Extensiones', sub: 'Open VSX',
8 intro: 'Temas de color, gramáticas, snippets y ajustes de lenguaje de extensiones de VS Code. El código de una extensión no se ejecuta salvo que lo enciendas para ella, y entonces solo en un recinto sellado sin internet; tu proyecto no sale del navegador: a Open VSX solo va lo que buscas y lo que instalas.',
9 paused: 'Extensiones en pausa en esta sesión (?noext): no se aplica ninguna. Puedes desactivarlas o desinstalarlas.',
10 searchPh: 'Buscar extensiones en Open VSX…',
11 catAll: 'Todo', catThemes: 'Temas', catSnippets: 'Snippets', catLangs: 'Lenguajes',
12 vsix: 'Instalar .vsix…', themeBtn: 'Tema de color…',
13 installedH: 'Instaladas ({n})', none: 'Ninguna todavía. Busca arriba o instala un .vsix.',
14 popular: 'Populares', results: '{n} resultado|{n} resultados', noResults: 'Sin resultados.', searching: 'Buscando…', more: 'Más resultados',
15 onlyWorks: 'Solo las que funcionan en Code',
16 hiddenN: '{n} oculta porque no funciona en Code|{n} ocultas porque no funcionan en Code',
17 showHidden: 'mostrar', showHiddenNamed: 'Mostrar también la que no funciona en Code|Mostrar también las {n} que no funcionan en Code',
18 checking: 'Comprobando cuáles funcionan en Code…',
19 noneWork: 'Ninguno de los resultados funciona en Code.', noneWorkYet: 'Ninguna de las {n} primeras funciona en Code.',
20 popularH: 'Populares que funcionan en Code', popularCount: '{n} extensión popular que funciona en Code|{n} extensiones populares que funcionan en Code',
21 popularNote: 'Se instalan y se ven al momento: temas de color, lenguajes que Code no resalta todavía y snippets. Busca arriba para ver el resto de Open VSX.',
22 popularFailed: 'No se pudo cargar la lista de populares. Busca arriba.',
23 kind_theme: 'Tema', kind_language: 'Lenguaje', kind_snippets: 'Snippets',
24 install: 'Instalar', installing: 'Instalando…', downloading: 'Descargando… {pct}%', installedOk: 'Instalada ✓', update: 'Actualizar a {v}',
25 enable: 'Activar', disable: 'Desactivar', disabled: 'desactivada', uninstall: 'Desinstalar', confirmUninstall: '¿Desinstalar «{name}»?',
26 details: 'Detalles', loadingDetails: 'Leyendo el manifiesto…',
27 nothing: 'Nada de esta extensión se puede aplicar aquí.',
28 pack: 'Es un paquete de {n} extensiones: instálalas una a una.',
29 andMore: '{n} más', quoted: '«{x}»',
30 fFormat: 'formatear código', fLint: 'avisar de errores', fDebug: 'depurar', fPreview: 'vistas previas propias', fNotebooks: 'cuadernos',
31 fTesting: 'ejecutar tests', fScm: 'control de versiones', fData: 'herramientas de datos', fAI: 'asistente de IA', fKeys: 'atajos de teclado',
32 fLangPack: 'traducir la interfaz', fCloud: 'servicios en la nube', fCommands: 'sus propias acciones', fPanels: 'paneles propios', fTasks: 'tareas',
33 fSettings: 'sus ajustes', fJsonCheck: 'validar ficheros JSON', fSemantic: 'colorear según el significado del código', fIcons: 'iconos',
34 fTerminal: 'terminal', fAccounts: 'iniciar sesión en servicios', fWalk: 'guías de inicio', fStatus: 'avisos en la barra de estado',
35 fCodeActions: 'arreglos rápidos', fLangServer: 'ayudas del lenguaje', fOther: 'otras funciones', fOwn: 'lo que hace su propio código',
36 pThemes: 'el tema {list}|los temas {list}', pThemesCount: 'un tema de color|{n} temas de color', pHighlight: 'el resaltado de {list}', pSettings: 'comentarios y corchetes de {list}',
37 pSnippetsN: '{n} snippet para {list}|{n} snippets para {list}', pSnippets: 'snippets para {list}',
38 vFull: 'Funciona en Code: añade {list}.', vPartial: 'Funciona en parte: añade {list}.',
39 vMainBroken: 'Lo principal de esta extensión ({what}) no funciona en Code: necesita ejecutar su propio código.',
40 vOnly: 'Solo se aplicaría {list}.',
41 vNextVersion: 'Eso llegará con la siguiente versión de Code.',
42 vNever: 'Y no está previsto: usa ventanas o programas propios que Code no puede abrir.',
43 vMissingNext: 'No funciona: {list}. Necesita ejecutar su propio código; llegará con la siguiente versión de Code.',
44 vMissingNever: 'No funciona: {list}. Necesita ejecutar su propio código, y eso no está previsto en Code.',
45 vMissingLater: 'Aún no se aplica: {list}.',
46 keepsBuiltin: 'Code ya resalta {list} a su manera y lo mantiene.',
47 installOnlyThemes: 'Instalar solo los temas', installOnlyHighlight: 'Instalar solo el resaltado', installOnlySnippets: 'Instalar solo los snippets',
48 installOnlyWorking: 'Instalar solo lo que funciona', notHere: 'No funciona en Code', nothingHere: 'Nada que aplicar',
49 vBrowserCode: 'Trae código para el navegador, que puede ejecutarse en el recinto de Code. Abre su detalle para ver si aquí corre.',
50 // las cuentas de lo declarativo que usa el nivel 2 (ext2/manage.js)
51 themes: '{n} tema|{n} temas', grammars: '{n} gramática|{n} gramáticas', languages: '{n} lenguaje|{n} lenguajes',
52 errCodeOnly: '«{name}» no se ha instalado.',
53 cThemeApplied: 'Tema «{name}» aplicado.', cThemeReady: 'Tema «{name}» listo para usar.', cThemesReady: '{n} temas listos: {list}.',
54 bApplyNow: 'Aplicar ahora', bUndo: 'Deshacer', bPickTheme: 'Elegir tema…',
55 cHighlight: 'Resaltado para {list}.', cHighlightOpen: 'Ya se ve en {files}, que está abierto.|Ya se ve en {files}, que están abiertos.',
56 cHighlightTry: 'Abre un fichero {exts} para verlo.',
57 bGoto: 'Ir a {file}', bOpenFile: 'Abrir {file} de ejemplo', bTry: 'Probar', bTryIn: 'Probar en {file}',
58 cSettings: 'En {lang}: {what}.', sComment: 'comentar con {c} (Ctrl+/)', sBrackets: 'corchetes {b}', sAutoClose: 'cierre automático de {p}',
59 cSnippets: '{n} snippet para {list}.|{n} snippets para {list}.',
60 cSnippetsTry: 'Prueba: escribe {prefixes} y elige la sugerencia con Tab o Enter.',
61 nThemeActive: 'Tema activo: «{name}».', nThemeIdle: 'Ningún tema suyo está activo: pulsa uno para aplicarlo.',
62 nHighlighting: 'Resaltando {n} fichero abierto ({list}).|Resaltando {n} ficheros abiertos ({list}).',
63 nHighlightIdle: 'Resalta {list}; ahora no hay ninguno abierto.',
64 nSnippets: '{n} snippet listo ({list}).|{n} snippets listos ({list}).', nSettings: 'Comentarios y corchetes de {list}.',
65 nOff: 'Desactivada: ahora no aplica nada.',
66 tryHighlightNamed: 'Probar el resaltado de {name}', trySnippetsNamed: 'Probar los snippets de {name}',
67 statusTrySnippets: 'Snippets: escribe {prefixes} y elige la sugerencia con Tab o Enter.',
68 license: 'Licencia: {l}', viewLicense: 'ver licencia', noLicense: 'sin licencia declarada',
69 verified: 'suma SHA-256 comprobada', unverified: 'Open VSX no publica suma SHA-256', fromFile: 'desde fichero',
70 downloads: '{n} descargas',
71 bigConfirm: 'Esta extensión pesa {mb} MB. ¿Descargarla igualmente?',
72 errNet: 'No pude hablar con Open VSX: {e}', errRate: 'Open VSX está limitando peticiones: espera un momento y reintenta.',
73 errSha: 'La suma SHA-256 del paquete no coincide con la publicada: no se instala.',
74 errNothing: 'Esta extensión no trae nada que se pueda aplicar aquí (temas, gramáticas, snippets o lenguajes).',
75 errNotVsix: 'Eso no es un .vsix de VS Code.',
76 errNotFound: 'Open VSX no tiene esa extensión o esa versión.',
77 errHttp: 'Open VSX respondió con un error{status}.',
78 errBig: 'El paquete es demasiado grande para instalarlo aquí.',
79 errMismatch: 'El paquete dice ser {got}, no {want}: no se instala.',
80 errCorrupt: 'El paquete está dañado o usa un formato zip que no se admite{entry}.',
81 errBadManifest: 'No se pudo leer el package.json del paquete: {e}',
82 errNoName: 'El package.json del paquete no dice su nombre (name) y su editor (publisher).',
83 errUnreadable: 'No se pudo leer ninguna de las partes de esta extensión. {w}',
84 errBlocked: 'Otra pestaña de Elffuss Code tiene ocupada la base de extensiones: ciérrala y vuelve a intentarlo.',
85 errQuota: 'No queda espacio en el almacenamiento del navegador para instalarla.',
86 err: 'No se pudo: {e}', cancelled: 'Cancelado.',
87 installedMsg: '«{name}» instalada.',
88 warnSummary: '{n} parte no se pudo usar|{n} partes no se pudieron usar',
89 warn_theme: 'Tema «{name}»: {why}', warn_grammar: 'Gramática {name}: {why}', warn_snippets: 'Snippets {name}: {why}',
90 warn_config: 'Configuración de {name}: {why}', warn_regex: 'Expresión descartada en {name}, podría congelar la pestaña: {why}',
91 whyMissing: 'el fichero no está en el paquete', whyCorrupt: 'el fichero está dañado', whyBig: 'el fichero es demasiado grande',
92 whyJson: 'no es JSON válido ({e})', whyPlist: 'no es un plist válido', whyNotGrammar: 'no es una gramática TextMate',
93 whyNotTheme: 'no es un tema válido', whyScope: 'nombre de ámbito no válido', whyOutside: 'la ruta sale del paquete',
94 installNamed: 'Instalar {name}', updateNamed: 'Actualizar {name} a {v}', installedNamed: '{name} ya está instalada',
95 enableNamed: 'Activar {name}', disableNamed: 'Desactivar {name}', uninstallNamed: 'Desinstalar {name}',
96 close: 'Cerrar', themeList: 'Temas de color',
97 pickPh: 'Tema de color (↑↓ para previsualizar, Enter para elegir)', builtinGroup: 'Integrados',
98 builtinDark: 'Oscuro (por defecto)', builtinLight: 'Claro', builtinHc: 'Alto contraste oscuro', builtinHcLight: 'Alto contraste claro',
99 current: 'actual', palExt: 'Extensiones…', palTheme: 'Tema de color…',
100 // nivel 2: lo que el panel enseña a todos (lo demás, en ../ext2/strings.js)
101 introCode: 'Los temas, gramáticas, snippets y ajustes de lenguaje de las extensiones de VS Code se aplican directamente. Las que traen código para navegador pueden ejecutarlo si lo permites, pero solo en un recinto sellado en otro sitio: no tiene internet, no puede leer el almacenamiento de Code (tus proyectos, conversaciones o claves), solo ve los ficheros que tienes abiertos y no puede guardar nada; sus cambios quedan sin guardar hasta que tú guardas. Los enlaces que quiera abrir te preguntan antes y muestran la dirección completa. A Open VSX solo va lo que buscas y lo que instalas, y, con el filtro «Funciona en Code», los manifiestos de los resultados que comprueba.',
102 isoTitle: 'Cómo se aíslan las extensiones',
103 iso1: 'El código de una extensión corre en un recinto en otro sitio web, sin ningún host en su política de seguridad: no puede pedir nada a internet, ni a Open VSX, ni a este servidor.',
104 iso2: 'Es otro sitio: no puede leer el almacenamiento de Code (proyectos, conversaciones, claves, modelos).',
105 iso3: 'Solo ve los ficheros que tienes abiertos; sus cambios quedan sin guardar hasta que guardas tú. No puede guardar.',
106 iso4: 'Lo que enseña (avisos, ayudas, diagnósticos) se pinta como texto: sin imágenes remotas ni enlaces que salgan solos.',
107 iso5: 'Abrir una dirección siempre pregunta antes y enseña la dirección entera. La vista previa de un fichero que cambió una extensión, y las peticiones web del agente, también preguntan.',
108 iso6: 'Quitar una extensión borra sus ficheros; apagar su código lo para en el acto, sin recargar (el recinto vuelve a arrancar con las demás, si las hay).',
109 chipWorks: 'Funciona en Code',
110 worksPrivacy: 'A Open VSX también le llegan las consultas de los manifiestos de estos resultados.',
111 worksChecked: '{k} funcionan · comprobadas {n} de {total}',
112 worksNone: 'Ninguna funciona en Code (comprobadas {n} de {total}).',
113 errCodeonly: 'Solo trae código: usa «Instalar y ejecutar su código…».',
114 },
115 en: {
116 title: 'Extensions', sub: 'Open VSX',
117 intro: 'Color themes, grammars, snippets and language settings from VS Code extensions. No extension code runs unless you turn it on for one extension, and then only in a sealed sandbox with no internet; your project never leaves the browser: Open VSX only sees what you search for and what you install.',
118 paused: 'Extensions are paused for this session (?noext): none is applied. You can still disable or uninstall them.',
119 searchPh: 'Search extensions on Open VSX…',
120 catAll: 'All', catThemes: 'Themes', catSnippets: 'Snippets', catLangs: 'Languages',
121 vsix: 'Install .vsix…', themeBtn: 'Color Theme…',
122 installedH: 'Installed ({n})', none: 'None yet. Search above or install a .vsix.',
123 popular: 'Popular', results: '{n} result|{n} results', noResults: 'No results.', searching: 'Searching…', more: 'More results',
124 onlyWorks: 'Only ones that work in Code',
125 hiddenN: '{n} hidden because it does not work in Code|{n} hidden because they do not work in Code',
126 showHidden: 'show', showHiddenNamed: 'Also show the one that does not work in Code|Also show the {n} that do not work in Code',
127 checking: 'Checking which ones work in Code…',
128 noneWork: 'None of the results works in Code.', noneWorkYet: 'None of the first {n} works in Code.',
129 popularH: 'Popular ones that work in Code', popularCount: '{n} popular extension that works in Code|{n} popular extensions that work in Code',
130 popularNote: 'They install and show at once: colour themes, languages Code does not highlight yet, and snippets. Search above for the rest of Open VSX.',
131 popularFailed: 'The popular list could not be loaded. Search above.',
132 kind_theme: 'Theme', kind_language: 'Language', kind_snippets: 'Snippets',
133 install: 'Install', installing: 'Installing…', downloading: 'Downloading… {pct}%', installedOk: 'Installed ✓', update: 'Update to {v}',
134 enable: 'Enable', disable: 'Disable', disabled: 'disabled', uninstall: 'Uninstall', confirmUninstall: 'Uninstall “{name}”?',
135 details: 'Details', loadingDetails: 'Reading the manifest…',
136 nothing: 'Nothing in this extension can be applied here.',
137 pack: 'This is a pack of {n} extensions: install them one by one.',
138 andMore: '{n} more', quoted: '“{x}”',
139 fFormat: 'formatting code', fLint: 'flagging errors', fDebug: 'debugging', fPreview: 'its own previews', fNotebooks: 'notebooks',
140 fTesting: 'running tests', fScm: 'version control', fData: 'data tools', fAI: 'an AI assistant', fKeys: 'keyboard shortcuts',
141 fLangPack: 'translating the interface', fCloud: 'cloud services', fCommands: 'its own actions', fPanels: 'its own panels', fTasks: 'tasks',
142 fSettings: 'its settings', fJsonCheck: 'checking JSON files', fSemantic: 'colouring by what the code means', fIcons: 'icons',
143 fTerminal: 'a terminal', fAccounts: 'signing in to services', fWalk: 'getting-started guides', fStatus: 'status bar items',
144 fCodeActions: 'quick fixes', fLangServer: 'language help', fOther: 'other features', fOwn: 'what its own code does',
145 pThemes: 'the theme {list}|the themes {list}', pThemesCount: 'a colour theme|{n} colour themes', pHighlight: 'highlighting for {list}', pSettings: 'comments and brackets for {list}',
146 pSnippetsN: '{n} snippet for {list}|{n} snippets for {list}', pSnippets: 'snippets for {list}',
147 vFull: 'Works in Code: adds {list}.', vPartial: 'Partly works: adds {list}.',
148 vMainBroken: 'The main thing this extension does ({what}) does not work in Code: it needs to run its own code.',
149 vOnly: 'Only {list} would apply.',
150 vNextVersion: 'That comes with the next version of Code.',
151 vNever: 'And it is not planned: it uses its own windows or programs, which Code cannot open.',
152 vMissingNext: 'Does not work: {list}. It needs to run its own code; that comes with the next version of Code.',
153 vMissingNever: 'Does not work: {list}. It needs to run its own code, and that is not planned for Code.',
154 vMissingLater: 'Not applied yet: {list}.',
155 keepsBuiltin: 'Code already highlights {list} its own way and keeps it.',
156 installOnlyThemes: 'Install only the themes', installOnlyHighlight: 'Install only the highlighting', installOnlySnippets: 'Install only the snippets',
157 installOnlyWorking: 'Install only what works', notHere: 'Does not work in Code', nothingHere: 'Nothing to apply',
158 vBrowserCode: 'Ships browser code, which can run in Code’s sandbox. Open its details to see whether it runs here.',
159 themes: '{n} theme|{n} themes', grammars: '{n} grammar|{n} grammars', languages: '{n} language|{n} languages',
160 errCodeOnly: '“{name}” was not installed.',
161 cThemeApplied: 'Theme “{name}” applied.', cThemeReady: 'Theme “{name}” is ready to use.', cThemesReady: '{n} themes ready: {list}.',
162 bApplyNow: 'Apply now', bUndo: 'Undo', bPickTheme: 'Choose theme…',
163 cHighlight: 'Syntax highlighting for {list}.', cHighlightOpen: 'Already visible in {files}, which is open.|Already visible in {files}, which are open.',
164 cHighlightTry: 'Open a {exts} file to see it.',
165 bGoto: 'Go to {file}', bOpenFile: 'Open {file} as an example', bTry: 'Try it', bTryIn: 'Try in {file}',
166 cSettings: 'In {lang}: {what}.', sComment: 'comment with {c} (Ctrl+/)', sBrackets: 'brackets {b}', sAutoClose: 'auto-closing {p}',
167 cSnippets: '{n} snippet for {list}.|{n} snippets for {list}.',
168 cSnippetsTry: 'Try it: type {prefixes} and pick the suggestion with Tab or Enter.',
169 nThemeActive: 'Active theme: “{name}”.', nThemeIdle: 'None of its themes is active: click one to apply it.',
170 nHighlighting: 'Highlighting {n} open file ({list}).|Highlighting {n} open files ({list}).',
171 nHighlightIdle: 'Highlights {list}; none is open right now.',
172 nSnippets: '{n} snippet ready ({list}).|{n} snippets ready ({list}).', nSettings: 'Comments and brackets for {list}.',
173 nOff: 'Disabled: nothing applied right now.',
174 tryHighlightNamed: 'Try the {name} highlighting', trySnippetsNamed: 'Try the {name} snippets',
175 statusTrySnippets: 'Snippets: type {prefixes} and pick the suggestion with Tab or Enter.',
176 license: 'Licence: {l}', viewLicense: 'view licence', noLicense: 'no licence declared',
177 verified: 'SHA-256 checked', unverified: 'Open VSX publishes no SHA-256', fromFile: 'from file',
178 downloads: '{n} downloads',
179 bigConfirm: 'This extension is {mb} MB. Download it anyway?',
180 errNet: 'Could not reach Open VSX: {e}', errRate: 'Open VSX is rate-limiting requests: wait a moment and retry.',
181 errSha: 'The package SHA-256 does not match the published one: not installed.',
182 errNothing: 'This extension brings nothing that can be applied here (themes, grammars, snippets or languages).',
183 errNotVsix: 'That is not a VS Code .vsix.',
184 errNotFound: 'Open VSX does not have that extension or version.',
185 errHttp: 'Open VSX answered with an error{status}.',
186 errBig: 'The package is too large to install here.',
187 errMismatch: 'The package says it is {got}, not {want}: not installed.',
188 errCorrupt: 'The package is damaged or uses an unsupported zip format{entry}.',
189 errBadManifest: 'The package.json could not be read: {e}',
190 errNoName: 'The package.json does not give its name and publisher.',
191 errUnreadable: 'None of the parts of this extension could be read. {w}',
192 errBlocked: 'Another Elffuss Code tab is holding the extensions database: close it and try again.',
193 errQuota: 'There is no browser storage left to install it.',
194 err: 'Could not do it: {e}', cancelled: 'Cancelled.',
195 installedMsg: '“{name}” installed.',
196 warnSummary: '{n} part could not be used|{n} parts could not be used',
197 warn_theme: 'Theme “{name}”: {why}', warn_grammar: 'Grammar {name}: {why}', warn_snippets: 'Snippets {name}: {why}',
198 warn_config: 'Settings for {name}: {why}', warn_regex: 'Expression discarded in {name}, it could freeze the tab: {why}',
199 whyMissing: 'the file is not in the package', whyCorrupt: 'the file is damaged', whyBig: 'the file is too large',
200 whyJson: 'not valid JSON ({e})', whyPlist: 'not a valid plist', whyNotGrammar: 'not a TextMate grammar',
201 whyNotTheme: 'not a valid theme', whyScope: 'invalid scope name', whyOutside: 'the path leaves the package',
202 installNamed: 'Install {name}', updateNamed: 'Update {name} to {v}', installedNamed: '{name} is installed',
203 enableNamed: 'Enable {name}', disableNamed: 'Disable {name}', uninstallNamed: 'Uninstall {name}',
204 close: 'Close', themeList: 'Color themes',
205 pickPh: 'Color theme (↑↓ to preview, Enter to select)', builtinGroup: 'Built-in',
206 builtinDark: 'Dark (default)', builtinLight: 'Light', builtinHc: 'Dark High Contrast', builtinHcLight: 'Light High Contrast',
207 current: 'current', palExt: 'Extensions…', palTheme: 'Color Theme…',
208 // level 2: what the panel shows everyone (the rest is in ../ext2/strings.js)
209 introCode: 'Themes, grammars, snippets and language settings from VS Code extensions apply directly. Extensions that bring browser code can also run it if you allow it, but only in a sealed sandbox on a separate site: it has no internet access, can’t read Code’s storage (your projects, conversations or keys), sees only the files you have open and can’t save anything; its changes stay unsaved until you save them. Links it wants to open ask you first and show the full address. Open VSX only sees what you search for and what you install, and, with the “Works in Code” filter on, the manifests of the results it checks.',
210 isoTitle: 'How extensions are isolated',
211 iso1: 'An extension’s code runs in a sandbox on another website, with no host in its security policy: it can’t request anything from the internet, from Open VSX or from this server.',
212 iso2: 'It is another site: it can’t read Code’s storage (projects, conversations, keys, models).',
213 iso3: 'It sees only the files you have open; its changes stay unsaved until you save. It can’t save.',
214 iso4: 'What it shows (notifications, hovers, diagnostics) is drawn as text: no remote images and no links that open on their own.',
215 iso5: 'Opening an address always asks first and shows the whole address. Previewing a file an extension changed, and the agent’s web requests, ask too.',
216 iso6: 'Uninstalling an extension deletes its files; turning its code off stops it at once, without a reload (the sandbox starts again with the others, if any).',
217 chipWorks: 'Works in Code',
218 worksPrivacy: 'Open VSX also sees the manifest lookups for these results.',
219 worksChecked: '{k} work · checked {n} of {total}',
220 worksNone: 'None of them works in Code (checked {n} of {total}).',
221 errCodeonly: 'It only brings code: use “Install and run its code…”.',
222 },
223};
224
225// los del nivel 2 (../ext2/strings.js) se añaden al cargarse
226export function addStrings(t) { for (const lang of Object.keys(L)) Object.assign(L[lang], t[lang] || {}); }
227export const STRINGS = L; // para comprobar en las pruebas que ES y EN tienen las mismas claves
228
229export function tx(key, vars) {
230 const tabla = L[uiLang()] || L.en;
231 let s = tabla[key] ?? L.en[key] ?? key;
232 if (s.includes('|') && vars && 'n' in vars) s = s.split('|')[Number(vars.n) === 1 ? 0 : 1];
233 return vars ? s.replace(/\{(\w+)\}/g, (_, k) => (vars[k] ?? '')) : s;
234}