feat(weather-widget): add imperial windspeed option (#4253)

This commit is contained in:
Meier Lukas
2025-10-10 19:59:05 +02:00
committed by GitHub
parent 6d0a1452a6
commit 50a23d76e3
6 changed files with 44 additions and 6 deletions

View File

@@ -47,3 +47,8 @@ export const humanFileSize = (size: number, concat = ""): string => {
}
return "∞";
};
const IMPERIAL_MULTIPLIER = 1.609344;
export const metricToImperial = (metricValue: number) => metricValue / IMPERIAL_MULTIPLIER;
export const imperialToMetric = (imperialValue: number) => imperialValue * IMPERIAL_MULTIPLIER;