diff --git a/public/index.html b/public/index.html index a303c95..9fc270a 100644 --- a/public/index.html +++ b/public/index.html @@ -9,6 +9,7 @@ + @@ -622,8 +623,8 @@

About

- - + + diff --git a/public/js/i18n.js b/public/js/i18n.js index 223248f..189069d 100644 --- a/public/js/i18n.js +++ b/public/js/i18n.js @@ -667,6 +667,12 @@ function applyTranslations() { if (selector) selector.value = currentLang; } +// Expose i18n helpers for deferred scripts and inline handlers. +window.t = t; +window.setLanguage = setLanguage; +window.applyTranslations = applyTranslations; +window.translations = translations; + // Initial application applyTranslations(); document.addEventListener('DOMContentLoaded', applyTranslations); diff --git a/src/auth/login.html b/src/auth/login.html index 065b77a..db49ff0 100644 --- a/src/auth/login.html +++ b/src/auth/login.html @@ -270,7 +270,7 @@ color: var(--text); } - + @@ -352,4 +352,4 @@

ClawBridge

- \ No newline at end of file + diff --git a/src/auth/middleware.js b/src/auth/middleware.js index 8a70fad..36f00df 100644 --- a/src/auth/middleware.js +++ b/src/auth/middleware.js @@ -33,7 +33,7 @@ function authMiddleware(req, res, next) { } // 4. Static assets passthrough - if (req.path.match(/\.(png|jpg|jpeg|svg|gif|ico|css)$/)) return next(); + if (req.path.match(/\.(js|png|jpg|jpeg|svg|gif|ico|css)$/)) return next(); if (req.path === '/manifest.json') return next(); if (req.path === '/login.html') return res.redirect(302, '/');