mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
Fix #30551: Added snowfall option to weather status
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
This commit is contained in:
parent
c98206bd7a
commit
1826ba2357
1 changed files with 14 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue