diff --git a/debian/changelog b/debian/changelog index 8df29a1b..2b4f9f6a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -hedera-web (1.390-deb8) stable; urgency=low +hedera-web (1.391-deb8) stable; urgency=low * Initial Release. diff --git a/js/vn/locale.js b/js/vn/locale.js index e1fdde23..1c706be5 100644 --- a/js/vn/locale.js +++ b/js/vn/locale.js @@ -10,11 +10,18 @@ module.exports = ,init: function () { - if (!this.language) - { - var language = navigator.language.substr (0, 2); - this.language = language ? language : 'en'; - } + if (this.language) + return; + + var language = 'en'; + var languages = navigator.languages; + + if (languages && languages.length > 0) + language = languages[0]; + else if (navigator.language) + language = navigator.language; + + this.language = language.substr (0, 2); } ,load: function (path, callback)