Enhancement: Add formatting options to weather widgets (#3093)

This commit is contained in:
Ben Phelps 2024-03-10 08:52:57 +02:00 committed by GitHub
parent 83d1ea5ec4
commit b5258c5200
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 9 additions and 1 deletions

View file

@ -46,6 +46,7 @@ function Widget({ options }) {
value: data.current_weather.temperature,
style: "unit",
unit,
...options.format,
})}
</PrimaryText>
<SecondaryText>{t(`wmo.${data.current_weather.weathercode}-${timeOfDay}`)}</SecondaryText>