<script>
var userLang = navigator.language || navigator.userLanguage;
alert ("The language is: " + userLang);
</script>
https://stackoverflow.com/questions/8199760/how-to-get-the-browser-language-using-javascript