mirror of
https://github.com/mue/mue.git
synced 2026-07-28 03:01:10 +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) {
|
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') {
|
if (data.cod === '404') {
|
||||||
|
|||||||
Reference in New Issue
Block a user