Store language in session

Hello everyone. Two questions regarding the multilingual features.

  1. Is it possible to store chosen language somwhere in session and when the user comes back force Kirby to show the page in the stored language?

  2. I have multiple aliases for the same site in local domains, for example,,, etc. Is it possible to dynamically set the default language? I want to set English as default on .com, and Russian on .ru. I read about the default Language in config. But I need to detect the domain and then set the default language via PHP.

Yes, that’s possible, but you probably want to store the language in a cookie instead of the session.

Yes, you could set up multiple language folders with language definitions and set the language root based on domain in your main index.php.

Thanks. Solved. Kirby is a really amazing!