[bug] navigator.languages returns only first language

Description of the issue:
The navigator.languages property returns an array of only one language, even though more languages are specified in preferred languages. It may cause translation issues. This property only returns multiple languages when checked in brave://settings.

How can this issue be reproduced?

  1. Have more than one preferred language set in the brave settings.
  2. Go to a random website such as google.com.
  3. Open debugger (F12) and read navigator.languages property. It will print an array with only one language.

Expected result:
The navigator.languages prints all preferred languages.

Brave Version( check About Brave):

Additional Information:
It is broken both for mobile and desktop. When used in an installed app (PWA), the navigator.languages is set to the language of brave UI (OS setting) rather than the specified list.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.