Skip to content

Commit aed54bb

Browse files
committed
lang fix
1 parent ccebd46 commit aed54bb

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/app/Services/API/Requests/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export interface iNetcdfDownload {
3434
const zip = (a, b) => a.map((k, i) => [k, b[i]]);
3535

3636
export 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',

src/app/pages/MapPage/index.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)