check browser locale javascript

JavaScript
<script type="text/javascript">
var userLang = navigator.language || navigator.userLanguage; 
alert ("The language is: " + userLang);
</script>check locale using js
Source

Also in JavaScript: