Redirect to language version

I’m using Babel and LangRouter for a dual language website. It seems users in Sweden now automatically get the Swedish version and other countries the English version, which is fine for the most part. I’m guessing this is due to <html lang="sv"> and <html lang="en"> being set.

However, how would I go about redirecting users from Norway to the Swedish site instead of the English version? They can read Swedish just fine so it would make more sense, although they most likely have their browser language set to Norwegian.

You’d most likely have to change the code of the LangRouter extra to make this work.
Probably in the function contextKeyDetect here: