Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

Mozilla Destek’te Ara

Destek dolandırıcılığından kaçının. Mozilla sizden asla bir telefon numarasını aramanızı, mesaj göndermenizi veya kişisel bilgilerinizi paylaşmanızı istemez. Şüpheli durumları “Kötüye kullanım bildir” seçeneğini kullanarak bildirebilirsiniz.

Daha Fazlasını Öğren

Bu başlık kapatıldı ve arşivlendi. Yardıma ihtiyacınız varsa lütfen yeni bir soru sorun.

Firefox not picking up the locale passed through the header through selenium preferences in Linux system

  • 1 yanıt
  • 0 kişi bu sorunu yaşıyor
  • 136 gösterim
  • Son yanıtı yazan: cor-el
  • Kilitli

I am trying to set the Firefox language to French in Linux system using the below code(Before running the above code, I am setting the system language to fr_FR): FirefoxOptions firefoxOptions = new FirefoxOptions(); firefoxOptions.setHeadless(isHeadless); FirefoxProfile firefoxProfile = new FirefoxProfile(); firefoxProfile.setPreference("intl.accept_languages", "fr-FR"); firefoxOptions.setProfile(firefoxProfile); driver = new FirefoxDriver(firefoxOptions);

But Firefox Accept-Languages header shows just "fr" as the code.

I need Firefox to pick up both the code and the region i.e. "fr-FR".

Please help.

I am trying to set the Firefox language to French in Linux system using the below code(Before running the above code, I am setting the system language to fr_FR): FirefoxOptions firefoxOptions = new FirefoxOptions(); firefoxOptions.setHeadless(isHeadless); FirefoxProfile firefoxProfile = new FirefoxProfile(); firefoxProfile.setPreference("intl.accept_languages", "fr-FR"); firefoxOptions.setProfile(firefoxProfile); driver = new FirefoxDriver(firefoxOptions); But Firefox Accept-Languages header shows just "fr" as the code. I need Firefox to pick up both the code and the region i.e. "fr-FR". Please help.

Tüm Yanıtlar (2)

Maybe try the subreddit Selenium forum.

This question has been locked because the original author has deleted their account. While you can no longer post new replies, the existing content remains available for reference.