File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ export interface iNetcdfDownload {
3434const zip = ( a , b ) => a . map ( ( k , i ) => [ k , b [ i ] ] ) ;
3535
3636export class RequestApi extends Http {
37- downloadScreenshot ( href : string , filename : string ) {
37+ downloadScreenshot ( href : string , filename : string , lang : string ) {
3838 href = href . replaceAll (
3939 'http://localhost:3000' ,
4040 'https://arpav.geobeyond.dev' ,
@@ -43,7 +43,7 @@ export class RequestApi extends Http {
4343 this . instance
4444 . get < any > ( BACKEND_API_URL + '/maps/map-screenshot' , {
4545 params : {
46- url : href + '&op=screenshot' ,
46+ url : href + '&op=screenshot&lang=' + lang ,
4747 delay_seconds : '15' ,
4848 } ,
4949 responseType : 'blob' ,
Original file line number Diff line number Diff line change @@ -629,9 +629,11 @@ export function MapPage(props: MapPageProps) {
629629 } `;
630630 filename = filename . replaceAll ( '_' , '' ) ;
631631
632- api . downloadScreenshot ( window . location . href , filename ) . then ( ( ) => {
633- setInProgress ( false ) ;
634- } ) ;
632+ api
633+ . downloadScreenshot ( window . location . href , filename , i18n . language )
634+ . then ( ( ) => {
635+ setInProgress ( false ) ;
636+ } ) ;
635637 //mapScreen
636638 // .takeScreen(format, {
637639 // captionFontSize: isMobile ? 10 : 12,
You can’t perform that action at this time.
0 commit comments