Merge pull request #4804 from OZhurbenko/fix-edge-default-locale

Fixed a problem with the default locale selection in Edge
This commit is contained in:
Anton Georgiev 2017-12-12 16:16:38 -02:00 committed by GitHub
commit a30026a5ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,7 @@ class Settings {
});
// Sets default locale to browser locale
defaultValues.application.locale = navigator.languages[0] ||
defaultValues.application.locale = navigator.languages ? navigator.languages[0] : false ||
navigator.language ||
defaultValues.application.locale;