Default to en if browser does not provide a language
This commit is contained in:
parent
df921ad658
commit
c6950b9b56
1 changed files with 1 additions and 1 deletions
|
@ -441,7 +441,7 @@ jQuery.PrivateBin = (function($, sjcl, Base64, RawDeflate) {
|
|||
|
||||
// auto-select language based on browser settings
|
||||
if (newLanguage.length === 0) {
|
||||
newLanguage = (navigator.language || navigator.userLanguage).substring(0, 2);
|
||||
newLanguage = (navigator.language || navigator.userLanguage || 'en').substring(0, 2);
|
||||
}
|
||||
|
||||
// if language is already used skip update
|
||||
|
|
Loading…
Reference in a new issue