Multi-Language site->visit() with data

What is the best way to push data to a template in a multi-language setup?

site()->visit('some/page', 'en')

has no option to push data.

You can use $page->render():

Thanks for your quick response. I know this option, but Iā€™m not sure how to pass the current language to the controller. :frowning:

This should actually do the job.

$page = page('some/page');
site()->visit($page, 'en');
return $page->render($data)
1 Like

Mille Grazie!

Con piacere!