From b7726996c2b41e0d21625490f52c5a1c6eb5f000 Mon Sep 17 00:00:00 2001 From: XxTysweezyxX Date: Tue, 3 Sep 2024 02:23:01 +0100 Subject: [PATCH] Fix #30551: Added snowfall option to weather status --- 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 dce45f5872b22..e086aa0391b80 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