Skip to content

Commit

Permalink
Fix nextcloud#30551: Added snowfall option to weather status
Browse files Browse the repository at this point in the history
  • Loading branch information
XxTysweezyxX committed Sep 3, 2024
1 parent 69f4a39 commit b772699
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions apps/weather_status/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b772699

Please sign in to comment.