Use t() for all dynamic UI text (heute, morgen, weekdays)

This commit is contained in:
Richard Zink committed 2026-10-07 12:54:04 +02:00
1 parent d546124359
commit 1dc9b8a0ad
1 file changed
+1 -6
+1 -6
View File
@@ -1042,7 +1042,7 @@ var effect = (VANTA.CLOUDS2 || VANTA.CLOUDS)({
// Sun zenith (solar noon) - find next occurrence // Sun zenith (solar noon) - find next occurrence
var sunZenith = sunTimes.solarNoon; var sunZenith = sunTimes.solarNoon;
var sunZenithWhen = sunZenith > now ? 'heute' : 'morgen'; var sunZenithWhen = sunZenith > now ? t('heute') : t('morgen');
if (sunZenith <= now) { if (sunZenith <= now) {
var tomorrow = new Date(now); var tomorrow = new Date(now);
tomorrow.setDate(tomorrow.getDate() + 1); tomorrow.setDate(tomorrow.getDate() + 1);
@@ -1350,10 +1350,6 @@ window.weatherThemes = {
window.CONFIG.units = units; window.CONFIG.units = units;
} }
function setDebugLanguage(lang) {
window.CONFIG.language = lang;
}
function updateDebug(t, palette, vantaColors, themeName, realDayProgress) { function updateDebug(t, palette, vantaColors, themeName, realDayProgress) {
var now = new Date(); var now = new Date();
var hh = now.getHours(), mm = now.getMinutes(), ss = now.getSeconds(); var hh = now.getHours(), mm = now.getMinutes(), ss = now.getSeconds();
@@ -1596,7 +1592,6 @@ window.weatherThemes = {
// Forecast // Forecast
var forecastHtml = ''; var forecastHtml = '';
var dayNames = ['Heute', 'Morgen'];
for (var d = 0; d < 4; d++) { for (var d = 0; d < 4; d++) {
var dayDate = new Date(daily.time[d]); var dayDate = new Date(daily.time[d]);
var dayLabel = d === 0 ? t('heute') : t('morgen'); var dayLabel = d === 0 ? t('heute') : t('morgen');