Skip to content

Commit f937871

Browse files
fix: allow i18n assets before auth
1 parent 510234c commit f937871

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

public/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<link rel="icon" href="app-icon.png" type="image/png">
1010
<link rel="apple-touch-icon" href="app-icon.png">
1111
<meta name="apple-mobile-web-app-capable" content="yes">
12+
<meta name="mobile-web-app-capable" content="yes">
1213
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
1314
<link rel="stylesheet" href="css/dashboard.css?v=20260315-07">
1415
</head>

public/js/i18n.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -671,6 +671,7 @@ function applyTranslations() {
671671
window.t = t;
672672
window.setLanguage = setLanguage;
673673
window.applyTranslations = applyTranslations;
674+
window.translations = translations;
674675

675676
// Initial application
676677
applyTranslations();

src/auth/middleware.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function authMiddleware(req, res, next) {
3333
}
3434

3535
// 4. Static assets passthrough
36-
if (req.path.match(/\.(png|jpg|jpeg|svg|gif|ico|css)$/)) return next();
36+
if (req.path.match(/\.(js|png|jpg|jpeg|svg|gif|ico|css)$/)) return next();
3737
if (req.path === '/manifest.json') return next();
3838
if (req.path === '/login.html') return res.redirect(302, '/');
3939

0 commit comments

Comments
 (0)