Force debug update on language change to refresh digital clock

This commit is contained in:
Richard Zink committed 2026-10-07 13:29:43 +02:00
1 parent bbff9b9874
commit baafbcf760
1 file changed
+7
+7
View File
@@ -1407,6 +1407,13 @@ window.weatherThemes = {
applyI18n(); applyI18n();
// Trigger weather refresh to update day labels // Trigger weather refresh to update day labels
if (typeof fetchWeather === 'function') fetchWeather(); if (typeof fetchWeather === 'function') fetchWeather();
// Force a debug update so the digital clock shows the new language
if (typeof updateDebug === 'function') {
var now = new Date();
updateDebug(0, null,
{ sky: 0, cloud: 0, light: 0, bg: 0 },
currentWeatherThemeName, realDayProgress);
}
} }
function populateDebugSelects() { function populateDebugSelects() {