Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<link rel="icon" href="app-icon.png" type="image/png">
<link rel="apple-touch-icon" href="app-icon.png">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link rel="stylesheet" href="css/dashboard.css?v=20260315-07">
</head>
Expand Down Expand Up @@ -622,8 +623,8 @@ <h3 style="margin-top:0" data-i18n="about">About</h3>
</a>
</nav>

<script src="js/i18n.js?v=20260317-03"></script>
<script src="js/dashboard.js?v=20260317-03" defer></script>
<script src="js/i18n.js?v=20260319-02"></script>
<script src="js/dashboard.js?v=20260319-02" defer></script>
</body>

</html>
6 changes: 6 additions & 0 deletions public/js/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
4 changes: 2 additions & 2 deletions src/auth/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@
color: var(--text);
}
</style>
<script src="js/i18n.js?v=20260317-03"></script>
<script src="js/i18n.js?v=20260319-02"></script>
</head>

<body>
Expand Down Expand Up @@ -352,4 +352,4 @@ <h1>ClawBridge</h1>
</script>
</body>

</html>
</html>
2 changes: 1 addition & 1 deletion src/auth/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, '/');

Expand Down
Loading