Options
Locale

locale

locale is an optional property that sets the locale of the page before taking the screenshot. By default, the locale is not set by the browser.

api/routes/screenshot.ts
const { UrlToImage } from '@url2image/sdk'
 
const { data, success, message } = await UrlToImage({
    url: 'URL_TO_SCREENSHOT',
    token: 'YOUR_API_KEY',
    options: {
        locale: 'en-US'
    }
})