Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting Language Location #17

Open
diego-lutke opened this issue Nov 29, 2023 · 1 comment
Open

Setting Language Location #17

diego-lutke opened this issue Nov 29, 2023 · 1 comment

Comments

@diego-lutke
Copy link

diego-lutke commented Nov 29, 2023

Hi!

Is there some way to set the language of chromium with the from_url method? If I check the language in C:\Users\my_username\AppData\Local\ms-playwright\chromium-1091\chrome-win\chrome.exe (it's a Microsoft Windows 10 Pro OS), it is already configured for my local language. I believe it is taking from the whole system, but pwhtmltopdf is ignoring it.

I took a look into the package files and didn't find anything related to language settings. I hope the question is not too dumb. I myself am unfamiliar with playwright. Maybe would be interesting to add some language setting feature if there is none?

@vvanglro
Copy link
Owner

Is that what you are referring to?
https://playwright.dev/python/docs/api/class-browser#browser-new-page-option-locale

Playwright defaults to the system default locale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants