From 1826ba235707a927ee960b7586d4aa7cd5262e9a Mon Sep 17 00:00:00 2001 From: XxTysweezyxX Date: Tue, 3 Sep 2024 02:23:01 +0100 Subject: Fix #30551: Added snowfall option to weather status Signed-off-by: Julien Veyssier --- apps/weather_status/src/App.vue | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/apps/weather_status/src/App.vue b/apps/weather_status/src/App.vue index dce45f5872b..e086aa0391b 100644 --- a/apps/weather_status/src/App.vue +++ b/apps/weather_status/src/App.vue @@ -98,6 +98,20 @@ const weatherOptions = { ? t('weather_status', '{temperature} {unit} cloudy later today', { temperature, unit }) : t('weather_status', '{temperature} {unit} cloudy', { temperature, unit }), }, +// Added snowfall weather conditions for both day and night on line 101 + snowfall_day: { + icon: 'icon-snowfall-day', + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} snowfall later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} snowfall', { temperature, unit }), + }, + snowfall_night: { + icon: 'icon-snowfall-night', + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} snowfall later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} snowfall', { temperature, unit }), + }, + fair_day: { icon: 'icon-fair-day', text: (temperature, unit, later = false) => later -- cgit v1.2.3