Hi @BrandonSeerene (sorry to jump in @Anton
). You could do this:
const lang = navigator.language
if (lang.includes('de')) {
window.location = 'https://www.example.com/de'
}
The navigator language code for German in Germany/Austria/Switzerland all include ‘de’ (e.g. de-CH for Swiss German) so you just test if the navigator language includes that substring or not; if it does, load your German site.