Fix #30551: Added snowfall option to weather status

Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
This commit is contained in:
XxTysweezyxX 2024-09-03 02:23:01 +01:00 committed by Julien Veyssier
parent c98206bd7a
commit 1826ba2357
No known key found for this signature in database
GPG key ID: 4141FEE162030638

View file

@ -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