fix(weather): show correct wind speed and unit for imperial units

When OPENWEATHER_UNITS=imperial, OpenWeatherMap returns wind speed in
mph directly — the server was incorrectly multiplying by 3.6 (m/s→km/h)
on top of that. All locale strings also hardcoded the unit label instead
of using a {{windUnit}} placeholder, so the label always read km/h.

Resolves #79

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Ulas Kalayci
2026-04-22 07:39:13 +02:00
parent 6a4ef09912
commit e1ea0bdb7e
17 changed files with 21 additions and 17 deletions
+1 -1
View File
@@ -65,7 +65,7 @@
"weatherRefresh": "Hava durumunu yenile",
"weatherRefreshTitle": "Yenile",
"weatherUpdated": "Hava durumu güncellendi",
"weatherFeelsLike": "Hissedilen {{temp}}° · {{humidity}}% · Rüzgar {{wind}} km/s",
"weatherFeelsLike": "Hissedilen {{temp}}° · {{humidity}}% · Rüzgar {{wind}} {{windUnit}}",
"fabTaskLabel": "Görev ekle",
"fabCalendarLabel": "Etkinlik ekle",
"fabShoppingLabel": "Alışveriş ekle",