From bdc83addd5c3335f75c5ce5594bab10b87296c06 Mon Sep 17 00:00:00 2001 From: Stefan Zweifel Date: Tue, 3 Jan 2023 18:57:43 +0100 Subject: [PATCH] Use setEnvironmentOptions to set Browser Language --- .../changing-the-language-of-the-browser.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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', + ]) ... ```