javascript get the language of the browser code example
Example 1: react chrome get language
<script type="text/javascript">
var userLang = navigator.language || navigator.userLanguage;
alert ("The language is: " + userLang);
</script>
Example 2: check browser locale javascript
check locale using js