New issue
Advanced search Search tips

Issue 802006 link

Starred by 4 users

Issue metadata

Status: Assigned
Owner:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

navigator.language result differs between english and other languages

Reported by p.codou...@gmail.com, Jan 15 2018

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36

Steps to reproduce the problem:
1. put the language setting in "en-US" (Google Chrome is displayed in this language) and restart
2. in the console, type "navigator.language", you obtain "en-US"
3. put the language setting in "fr-CH" (Google Chrome is displayed in this language) and restart
4. in the console, type "navigator.language", you obtain "fr"

What is the expected behavior?
the expected result is "fr-CH"

What went wrong?
the regional setting is lost for languages different than english.

Did this work before? Yes no idea

Does this work in other browsers? Yes

Chrome version: 63.0.3239.84  Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version: 

that's a main problem for internationalization of webapplicationa
 
Labels: Needs-Triage-M63

Comment 2 by dacs...@gmail.com, Jan 16 2018

I am having same issue than you. Looking for a response
Components: Platform>DevTools
Labels: -Type-Bug-Regression Triaged-ET M-65 OS-Linux OS-Mac Type-Bug
Status: Untriaged (was: Unconfirmed)
Able to reproduce this issue on Mac 10.12.6, Win-10 and Ubuntu 14.04 using chrome reported version #63.0.3239.132 and latest canary #65.0.3323.0.
This is a non-regression issue as it is observed from M50 old builds. 

Hence, marking it as untriaged to get more inputs from dev team.

Thanks...!!

Comment 4 by kozy@chromium.org, Jan 17 2018

Components: -Platform>DevTools
Owner: mlamouri@chromium.org
Status: Assigned (was: Untriaged)
This bug is not related to Chrome DevTools. Reassigned to author of navigator.language implementation for further triage.

Mounir please take a look.
Same issue for me. Looking for response.
This problem is seen in both Chrome for Windows and Android.

Chrome for Windows : 70.0.3538.67 (Official Build) beta (64-bit)
Chrome for Android : 69.0.3497.100

I tried clear all data of Chrome app, and start fresh. Even after that Chrome load pages in Hindi. There is no Hindi in the list of languages in my settings. Only language is English-US. 

In desktop version dev console, 
      navigator.languages returns ["hi-IN", "en-US"]
      navigator.language returns "hi-IN"

In settings, only English(US) is listed under languages. Attached the screenshot of language setting in Chrome for Windows. I have verified my Google account too.

When I see the source of a page loading in Hindi language, header is as below 
    <html lang="hi">

Where is this language setting coming from? How do I change it permanently?
chrome-language-problem.PNG
23.7 KB View Download

Sign in to add a comment