You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
With LANGUAGE=fr env integrated (issue #107 ), the weather widget still display english informations...
In fact, lang is already in the openweathermap request parameter (API/Weather.php line 44). https://api.openweathermap.org/data/2.5/weather?units=metric&lat=47.860879&lon=-1.801214&lang=fr&appid=my_key
You use the xpath /weather/0/main to display the weather widget. this is not a translated part.. but the xpath /weather/0/description is : "couvert" is the french word...
Same for lang=de: "main":"Clouds","description":"Bedeckt"
Could you select the appropriate xpath to display for the next tag ?
jumpapp/assets/js/src/classes/Weather.js line 58: description: data.weather[0].main,
replaced by description: data.weather[0].description.charAt(0).toUpperCase() + data.weather[0].description.slice(1),
Thanks :)
The text was updated successfully, but these errors were encountered:
For information, list of openweathermap main and description can be found here: Weather condition codes.
Seems that you use 'main' vs 'description' because of string length..
One way is to translate the 'main' but requiere to integrate parts in translate files..
Here are the 'main' openweathermap' response with first google translate from english to french, the corrected word specific to the weather:
Hello,
With LANGUAGE=fr env integrated (issue #107 ), the weather widget still display english informations...
In fact, lang is already in the openweathermap request parameter (API/Weather.php line 44).
https://api.openweathermap.org/data/2.5/weather?units=metric&lat=47.860879&lon=-1.801214&lang=fr&appid=my_key
Response is :
You use the xpath
/weather/0/main
to display the weather widget. this is not a translated part.. but the xpath/weather/0/description
is : "couvert" is the french word...Same for lang=de:
"main":"Clouds","description":"Bedeckt"
Could you select the appropriate xpath to display for the next tag ?
jumpapp/assets/js/src/classes/Weather.js line 58:
description: data.weather[0].main,
replaced by
description: data.weather[0].description.charAt(0).toUpperCase() + data.weather[0].description.slice(1),
Thanks :)
The text was updated successfully, but these errors were encountered: