Skip to content

Commit

Permalink
Added option to set language of sample screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
1ec5 committed Aug 27, 2024
1 parent 4c577be commit 3698921
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generate_samples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ async function createImage(screenshot: SampleSpecification) {
const pagePath: string = screenshot.controls ? "" : "bare_map.html";

await page.goto(
`http://localhost:1776/${pagePath}#map=${screenshot.location}`
`http://localhost:1776/${pagePath}#map=${screenshot.location}&language=${screenshot.language || "en"}`
);

// Wait for map to load, then wait two more seconds for images, etc. to load.
Expand Down

0 comments on commit 3698921

Please sign in to comment.