We have a portal site, that is embedded via iframe inside a typo3 website. We want the portal inside the iframe to show the content in the same language as the parent typo3 page does. Therefore we planned to pass a url parameter to the portal page inside the iframe, i.e. "?lcid=1031" or "?lang=en". Inside the portal page we then want to process the url parameter and switch the language. But how to do this? I didn't find any documentation about that topic and it is not quite obvious what that default language switcher control does.
What happens technically when another language is selected and how to emulate that behavior manually? Is there maybe an official url parameter that can be used?
Now I have it. There is a website setting called "MultiLanguage/DisplayLanguageCodeInURL". If it is "true" then you can swtich languages by extending the url by "/de-DE" or "/en-US" and so on.
Nah, for non-Marketing-portals "ContextLanguageCode" seems to be the right cookie. Setting it to either "en-US" or "de-DE" and so on successfully changes the language after refreshing the page. Supported?
Oh, I found something. It's handled by a cookie.
Would it be a supported implementation to set that cookie manually? I will try to do this in the liquid code, so there hopefully is no need for a reload inside the iframe.