Detect preferred language and switch to corresponding page.