DEV Community

Discussion on: Help: How to display my website according to country

Collapse
 
iainfreestone profile image
Iain Freestone

You could look at window.navigator.language

The NavigatorLanguage.language read-only property returns a string representing the preferred language of the user, usually the language of the browser UI.

Link