SysOps: voice-agy-webbuilder-backup — 2026-06-23 10:04 UTC

This commit is contained in:
sysops
2026-06-23 10:04:23 +00:00
parent 3bf15c4850
commit 26fe76afdd
165 changed files with 47427 additions and 1264 deletions
+9 -2
View File
@@ -17,7 +17,14 @@ window.I18n = (function () {
function applyDom() {
document.querySelectorAll('[data-i18n]').forEach(function (el) {
var k = el.getAttribute('data-i18n');
if (k) el.textContent = t(k);
if (!k) return;
var text = t(k);
/* Sidebar nav: never replace whole link (destroys icons) */
if (el.classList && el.classList.contains('nav-pill')) {
var lbl = el.querySelector('.sidebar-nav-label');
if (lbl) { lbl.textContent = text; return; }
}
el.textContent = text;
});
document.querySelectorAll('[data-i18n-placeholder]').forEach(function (el) {
var k = el.getAttribute('data-i18n-placeholder');
@@ -31,7 +38,7 @@ window.I18n = (function () {
}
async function loadBundle(loc) {
var r = await fetch('/static/i18n/' + loc + '.json?v=2');
var r = await fetch('/static/i18n/' + loc + '.json?v=3');
if (!r.ok) throw new Error('Locale ' + loc + ' not found');
strings = await r.json();
}