How to check the device's language in javascript? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 15

How to check the device's language in javascript?

How to know the language that used in our device

30th Mar 2019, 11:51 AM
Jingga Sona
Jingga Sona - avatar
2 Answers
+ 1
I'm pretty sure you can also use navigator.languages, it returns all the set languages. I have only tested this in Chrome, I don't know if it works in other browsers
19th Apr 2019, 9:35 PM
RadiatedMonkey
RadiatedMonkey - avatar
- 3
Καλό!
31st Mar 2019, 5:54 PM
Konstantinos Galogavras
Konstantinos Galogavras - avatar