File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ()
You can’t perform that action at this time.
0 commit comments