Skip to content

Commit

Permalink
feat(service): prefer detecting language by navigator.languages ang…
Browse files Browse the repository at this point in the history
  • Loading branch information
wongkwl authored and knalli committed Sep 18, 2014
1 parent ec84a7b commit 2204f4f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/service/translate.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ angular.module('pascalprecht.translate').provider('$translate', ['$STORAGE_KEY',
var getLocale = function () {
var nav = window.navigator;
return ((
angular.isArray(nav.languages) ? nav.languages[0] :
nav.language ||
nav.browserLanguage ||
nav.systemLanguage ||
Expand Down

0 comments on commit 2204f4f

Please sign in to comment.