Created
January 23, 2015 13:06
-
-
Save ksol/d1b9481c6ea8bcc9828f to your computer and use it in GitHub Desktop.
Javascript one-liner for finding user language
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var langage = (navigator.language || navigator.browserLanguage).split('-')[0]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment