aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXxTysweezyxX <txd2017@gmail.com>2024-09-03 02:23:01 +0100
committerJulien Veyssier <julien-nc@posteo.net>2024-09-25 17:24:17 +0200
commit1826ba235707a927ee960b7586d4aa7cd5262e9a (patch)
tree61d91609844db6e2c54739696a923ce6ed1a95e4
parentc98206bd7a89211314b687f49a94db815f96d1ca (diff)
downloadnextcloud-server-1826ba235707a927ee960b7586d4aa7cd5262e9a.tar.gz
nextcloud-server-1826ba235707a927ee960b7586d4aa7cd5262e9a.zip
Fix #30551: Added snowfall option to weather status
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
-rw-r--r--apps/weather_status/src/App.vue14
1 files changed, 14 insertions, 0 deletions
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