feat: language support for weather description

This commit is contained in:
David Ralph
2021-06-16 23:30:50 +01:00
parent c2ca979971
commit b0da5cfa75

View File

@@ -60,7 +60,7 @@ export default class Weather extends React.PureComponent {
};
if (!this.state.weather.temp) {
data = await (await fetch (window.constants.WEATHER_URL + `/current?city=${this.state.location}`)).json();
data = await (await fetch (window.constants.WEATHER_URL + `/current?city=${this.state.location}&lang=${localStorage.getItem('language')}`)).json();
}
if (data.cod === '404') {