mirror of
https://github.com/mue/mue.git
synced 2026-06-11 11:08:45 +02:00
feat: language support for weather description
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user