To transform a Kirby site into a static one, I use $page->render() to grab the complete html of a single page – unfortunately this doesn’t seem to work for translations!? It always returns the html of the default language. Any ideas how the render a translation of a page?
I can grab the translated content with $site->visit() … but once used, I can’t switch (back) to another language again. That means it is not possible for me to export all languages in one step. But my workaround is now to export each language separately.
Don’t know your exact context, but what if you loop through all languages, each time visiting the site in the correct language and then export the stuff?