Use English unit names when needed (#755)

This commit is contained in:
Igor Chubin 2022-10-22 19:57:03 +02:00
parent 25797c21d5
commit 5a22d31839

View file

@ -298,7 +298,7 @@ var (
func unitWind(unit int, lang string) string {
translation, ok := localizedWind[lang]
if !ok {
translation = localizedWind[lang]
translation = localizedWind["en"]
}
return translation[unit]
}
@ -306,7 +306,7 @@ func unitWind(unit int, lang string) string {
func unitVis(unit bool, lang string) string {
translation, ok := localizedVis[lang]
if !ok {
translation = localizedVis[lang]
translation = localizedVis["en"]
}
return translation[unit]
}
@ -314,7 +314,7 @@ func unitVis(unit bool, lang string) string {
func unitRain(unit bool, lang string) string {
translation, ok := localizedRain[lang]
if !ok {
translation = localizedRain[lang]
translation = localizedRain["en"]
}
return translation[unit]
}