I need to switch user's language programmatically. The issue is I don't want it as an url part, and unable to switch it even with the regular language switcher block.
What I've try:
- admin/config/regional/language/detection: Disable url, Enable Session
- Now the Language Switcher core block adds ?language= to the current path. But this setting does not persist between pages, and does not appears in the session.
- manual setup of $_SESSION['language'] does nothing
Drupal version is 8.beta2