diff --git a/dashboard/public/jarvis.html b/dashboard/public/jarvis.html index d83955a..aab4025 100644 --- a/dashboard/public/jarvis.html +++ b/dashboard/public/jarvis.html @@ -363,6 +363,22 @@ body.low-perf .ticker-wrap::-webkit-scrollbar-thumb{background:rgba(100,240,200, `; + html = html.replace('', `${localeScript}\n`); + + res.type('html').send(html); } }); @@ -263,6 +272,15 @@ app.get('/api/health', (req, res) => { llmProvider: config.llm.provider, telegramEnabled: !!(config.telegram.botToken && config.telegram.chatId), refreshIntervalMinutes: config.refreshIntervalMinutes, + language: currentLanguage, + }); +}); + +// API: available locales +app.get('/api/locales', (req, res) => { + res.json({ + current: currentLanguage, + supported: getSupportedLocales(), }); });