Set locale and language of the browser

A new version of the ScreenshotOne API has been just deployed. It allows you to set both locale and language of the browser when rendering screenshots with one simple option.

1 min read

Written by

Dmytro Krasun

Published on

In order to set locale and language of the browser, you only need to specify the Accept-Language header in the request, like this:

https://api.screenshotone.com/take?headers=accept-language:de-DE&url...&access_key=...

The API is smart enough to understand that the Accept-Language header is a locale and language header and will set the locale and language of the browser accordingly:

  1. It will send the Accept-Language header to the website.
  2. It will set the locale and language of the browser.

All dates, numbers, and currencies will be displayed in the specified locale and language.

If you are curious about how it works under the hood, you can check out the Puppeteer guide with working examples on how to set the locale and language of the browser. The solution is based on the same approach.

In case you encounter any issues, or have any questions, please feel free to reach out to us at support@screenshotone.com.

Read more product updates

New features, bug fixes, and optimizations...

View all product updates
Improved uploading and error handling to S3-compatible storage

Improved uploading and error handling to S3-compatible storage

Today, the new version of ScreenshotOne API was deployed to production that enables a retries mechanism when uploading to an S3 storage and more granular error handling.

Read more

1 min read

An improved screenshot history page

An improved screenshot history page

Daily, I work as hard as I can to ensure that ScreeenshotOne is the best screenshot API out there possible. But I rarely share updates but trust me, a ton of them might go unnoticed. Let's fix this situation.

Read more

1 min read

Async, Webhooks, and Extra Limits

Async, Webhooks, and Extra Limits

May was a great month and full of new and exciting updates. Let's check them out quickly.

Read more

1 min read

Automate website screenshots

Exhaustive documentation, ready SDKs, no-code tools, and other automation to help you render website screenshots and outsource all the boring work related to that to us.