New issue
Advanced search Search tips

Issue 602039 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 101138
Owner: ----
Closed: Apr 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

navigator.languages[0] != navigator.language

Reported by galambal...@gmail.com, Apr 9 2016

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36

Steps to reproduce the problem:
Here is my output:

> navigator.languages
["hu-HU", "hu", "en-US", "en"]

navigator.language
> "en-US"

(note that navigator.languages[0] seems the correct one for me because it's in the same order as I can see it's sent with Accept-Language HTTP headers)

What is the expected behavior?
navigator.language should be the same as navigator.languages[0]

https://developer.mozilla.org/en-US/docs/Web/API/NavigatorLanguage/languages

What went wrong?
The navigator.language is something else from the languages list (not the first element).

Did this work before? N/A 

Chrome version: 49.0.2623.110  Channel: n/a
OS Version: OS X 10.11.4
Flash Version: Shockwave Flash 21.0 r0
 
Mergedinto: 101138
Status: Duplicate (was: Unconfirmed)

Sign in to add a comment