Skip to content

Commit

Permalink
Fix #30551: Added snowfall option to weather status
Browse files Browse the repository at this point in the history
  • Loading branch information
XxTysweezyxX authored and julien-nc committed Sep 24, 2024
1 parent 12ed773 commit 3bd3574
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 3bd3574

Please sign in to comment.