Back to Browsershot

Changing the language of the browser

docs/miscellaneous-options/changing-the-language-of-the-browser.md

5.3.0253 B
Original Source

You can use setEnvironmentOptions to change the language of the browser. In order to load a page in a specific language for example.

php
Browsershot::url('https://example.com')
   ->setEnvironmentOptions([
      'LANG' => 'en-GB',
   ])
   ...