diff --git a/docs/miscellaneous-options/changing-the-language-of-the-browser.md b/docs/miscellaneous-options/changing-the-language-of-the-browser.md index b1892f5c..2df54dd2 100644 --- a/docs/miscellaneous-options/changing-the-language-of-the-browser.md +++ b/docs/miscellaneous-options/changing-the-language-of-the-browser.md @@ -3,11 +3,13 @@ title: Changing the language of the browser weight: 3 --- -You can use `setOption` to change the language of the browser. +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') - ->setOption('args', '--lang=en-GB') + ->setEnvironmentOptions([ + 'LANG' => 'en-GB', + ]) ... ```