I need 2 languages in the switcher to link to an external URL. The website has 6 languages in total, but only 4 of them are managed on the website domain, the other 2 need to link to different websites.
Is there any documentation that you are following?
The code shared on that ticket is just an example code, that you can use and adapt further to your needs. We do not provide or support custom coding, for this we advise hiring WPML contractors: