kalkih / simple-weather-card

Minimalistic weather card for Home Assistant
MIT License
283 stars 33 forks source link

Issue with translations #30

Closed jasr1 closed 4 years ago

jasr1 commented 4 years ago

I updated to 0.109 and in this card the states are not showing up properly formatted. I think this is because of a new update in the way translations are dealt with in 0.109.

I have attached an image to this post. As you can see, instead of showing up as "Partly cloudy", it shows "partlycloudy".

Screen Shot 2020-04-29 at 1 53 02 PM
ronaldheft commented 4 years ago

Also seeing this issue since 0.109.

jackwilsdon commented 4 years ago

We should be using the translations from component.weather.state._, as these provide a mapping from state to name (i.e. component.weather.state._.partlycloudy -> Partly cloudy).