Skip to content

Commit 87ad865

Browse files
authored
set default browser locale to none (#4564)
1 parent 912d8df commit 87ad865

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

skyvern/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class Settings(BaseSettings):
126126
SMTP_PASSWORD: str = "password"
127127

128128
# browser settings
129-
BROWSER_LOCALE: str = "en-US"
129+
BROWSER_LOCALE: str | None = None # "en-US"
130130
BROWSER_TIMEZONE: str = "America/New_York"
131131
BROWSER_WIDTH: int = 1920
132132
BROWSER_HEIGHT: int = 1080

skyvern/webeye/browser_factory.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,6 @@ def build_browser_args(
237237
LOG.info("Extensions added to browser args", extensions=joined_paths)
238238

239239
args = {
240-
"locale": settings.BROWSER_LOCALE,
241240
"color_scheme": "no-preference",
242241
"args": browser_args,
243242
"ignore_default_args": [
@@ -251,6 +250,8 @@ def build_browser_args(
251250
},
252251
"extra_http_headers": extra_http_headers,
253252
}
253+
if settings.BROWSER_LOCALE:
254+
args["locale"] = settings.BROWSER_LOCALE
254255

255256
if settings.ENABLE_PROXY:
256257
proxy_config = setup_proxy()

0 commit comments

Comments
 (0)