Obtenha a linguagem do navegador
var userLang = navigator.language || navigator.userLanguage;
alert ("The language is: " + userLang);
dcbert
var userLang = navigator.language || navigator.userLanguage;
alert ("The language is: " + userLang);
//detect the language preference of the user's browser
var userLanguage = window.navigator.userLanguage || window.navigator.language;
<script type="text/javascript">
var userLang = navigator.language || navigator.userLanguage;
alert ("The language is: " + userLang);
</script>