mirror of
https://github.com/chubin/wttr.in
synced 2025-01-26 02:34:59 +00:00
Fix #449
This commit is contained in:
parent
92d1629f8d
commit
9ecb369e9e
1 changed files with 4 additions and 1 deletions
|
@ -155,7 +155,10 @@ def add_translations(content, lang):
|
|||
return {}
|
||||
|
||||
try:
|
||||
weather_condition = d['data']['current_condition'][0]['weatherDesc'][0]['value']
|
||||
weather_condition = d['data']['current_condition'
|
||||
][0]['weatherDesc'][0]['value'].capitalize()
|
||||
d['data']['current_condition'][0]['weatherDesc'][0]['value'] = \
|
||||
weather_condition
|
||||
if lang in languages_to_translate:
|
||||
d['data']['current_condition'][0]['lang_%s' % lang] = \
|
||||
[{'value': translate(weather_condition, lang)}]
|
||||
|
|
Loading…
Reference in a new issue