I want to detect the language of the browser that is entering my site, if it's En or Fr. So I can redirect to the En page or the other page.
Also, can I detect mobile language?
Try this script to get your browser language
var lang = navigator.language || navigator.userLanguage; //no ?s necessary
©2020 All rights reserved.