mirror of
https://github.com/chubin/wttr.in
synced 2025-01-26 02:34:59 +00:00
Use English unit names when needed (#755)
This commit is contained in:
parent
25797c21d5
commit
5a22d31839
1 changed files with 3 additions and 3 deletions
|
@ -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]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue