Skip to content

Commit 2bb4db5

Browse files
committed
update
1 parent 71dc7b8 commit 2bb4db5

File tree

1 file changed

+11
-7
lines changed
  • src/app/components/DownloadDataDialog

1 file changed

+11
-7
lines changed

src/app/components/DownloadDataDialog/index.tsx

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export interface DownloadDataDialogProps {
4848
const DownloadDataDialog = (props: DownloadDataDialogProps) => {
4949
const { open, setOpen, configuration, menus, combinations, mode } = props;
5050

51-
const { t } = useTranslation();
51+
const { t, i18n } = useTranslation();
5252
const dispatch = useDispatch();
5353
const actions = useMapSlice();
5454

@@ -84,9 +84,11 @@ const DownloadDataDialog = (props: DownloadDataDialogProps) => {
8484
if (searchconf['aggregation_period'] === 'annual') {
8585
delete searchconf['time_window'];
8686
}
87-
api.getForecastData(searchconf, dataSet.current).then((finds: any) => {
88-
setList(finds);
89-
});
87+
api
88+
.getForecastData(searchconf, dataSet.current, i18n.language)
89+
.then((finds: any) => {
90+
setList(finds);
91+
});
9092
} else {
9193
if (searchconf['aggregation_period'].indexOf('ten') >= 0) {
9294
//searchconf['decade'] = searchconf['reference_period'];
@@ -115,9 +117,11 @@ const DownloadDataDialog = (props: DownloadDataDialogProps) => {
115117
delete searchconf['time_window'];
116118
} catch (ex) { }
117119
}
118-
api.getHistoricalData(searchconf, dataSet.current).then((finds: any) => {
119-
setList(finds);
120-
});
120+
api
121+
.getHistoricalData(searchconf, dataSet.current, i18n.language)
122+
.then((finds: any) => {
123+
setList(finds);
124+
});
121125
}
122126
};
123127

0 commit comments

Comments
 (0)