I have a site that is translated in 18 languages (with 18 translated domains). It also has dynamic content based on language, i.e. different products some of which are only available in specific languages. While there is a language selector and people can use that to switch language and thus site, the chances of the guy finding the language selector in a language he doesn't know are not too high. This is vital to solve, especially with paid ad traffic which is being wasted if not handled.
I use Akamai as a CDN and wanted to do the detection and redirection in JS and ideally on the Edge Server layer so it's not another call that has to go back to the origin server. After going through all of their documentation, configuration options in their UI, etc. I didn't see a way to do this.
While I did get with my Akamai representative and worked with one of their engineers to come up with a solution, I don't know if it's the best one and am open to other solutions.