Is there a way to set the current language when I return a virtual page (using
new Page()) in a route? Right now all content in the template is returned in the default language.
By the way: I struggle a lot with getting a multi language site to work. I wish there was a ‘language starter kit’—or does something like that exist?
As far as I understand it, as soon as you start using custom routes, a lot needs to be hand-coded in order for the languages to work properly.
For example do I not understand the concept of the “language scope”, especially when the
'language' of the route is set to wildcard / asterisk. In my eyes it does nothing but handing the current language as a parameter to the
'action' method. I would have hoped that it would set the current language for all kirby methods like
page(), just as it happens in a template.
As always: thank you!