mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-12 08:04:09 +02:00
fix automatic language detector for Web version
This commit is contained in:
@@ -114,7 +114,9 @@
|
||||
|
||||
function getLanguage() {
|
||||
var lang = navigator.languages && navigator.languages[0] || navigator.language || navigator.userLanguage;
|
||||
if (!lang) return;
|
||||
var id = 0;
|
||||
lang = lang.substring(0, 2);
|
||||
if (lang == "fr") {
|
||||
id = 1;
|
||||
} else if (lang == "de") {
|
||||
|
Reference in New Issue
Block a user