Default to en if browser does not provide a language
This commit is contained in:
parent
df921ad658
commit
c6950b9b56
|
@ -441,7 +441,7 @@ jQuery.PrivateBin = (function($, sjcl, Base64, RawDeflate) {
|
||||||
|
|
||||||
// auto-select language based on browser settings
|
// auto-select language based on browser settings
|
||||||
if (newLanguage.length === 0) {
|
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
|
// if language is already used skip update
|
||||||
|
|
Loading…
Reference in New Issue