DevSite locale var update for hl url param.

Change-Id: I083009804d08246ffce4d4fe87fa9906ba5aaccc
This commit is contained in:
Neil Fuller 2016-01-15 16:35:54 +00:00 committed by Amanda Kassay
parent 1c2d8c41ba
commit 61522762f0

View file

@ -3370,7 +3370,7 @@ window.changeLangPref = changeLangPref;
* Current locale.
*/
var locale = (function() {
var lang = window.readCookie('pref_lang');
var lang = window.devsite ? window.devsiteLang : window.readCookie('pref_lang');
if (lang === 0 || LANGUAGES.indexOf(lang) === -1) {
lang = 'en';
}