@@ -48,7 +48,7 @@ export interface DownloadDataDialogProps {
4848const 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