mirror of
https://github.com/ansible/awx.git
synced 2026-01-21 14:38:00 -03:30
Merge pull request #5368 from shanemcd/tweak-ui-language-lookup-logic
Tweak logic used by UI to detect language
This commit is contained in:
commit
31eda05231
@ -19,8 +19,10 @@ export default
|
||||
.factory('I18NInit', ['$window', 'gettextCatalog',
|
||||
function ($window, gettextCatalog) {
|
||||
return function() {
|
||||
var langInfo = $window.navigator.language ||
|
||||
$window.navigator.userLanguage;
|
||||
var langInfo = ($window.navigator.languages || [])[0] ||
|
||||
$window.navigator.language ||
|
||||
$window.navigator.userLanguage ||
|
||||
'';
|
||||
var langUrl = langInfo.replace('-', '_');
|
||||
//gettextCatalog.debug = true;
|
||||
gettextCatalog.setCurrentLanguage(langInfo);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user