So let’s start from the beginning. Each language is given its own special two letter country code, just like in this example:
- French: fr
- German: de
- Italian: it
- Japanese: ja
So the key to figuring out what language the user is using, is finding out these two letter country code. To do that in the quickest in most efficient way just use this line of code in your work:
It’s just as simple as that. Sorry that today’s post is rather short. Next time we are going to tackle more complex problems. Stay tuned!