# Same language from template to virtual page

**URL:** https://forum.getkirby.com/t/same-language-from-template-to-virtual-page/27681
**Category:** Questions
**Tags:** v3
**Created:** [January 25, 2023, 8:04pm UTC](https://forum.getkirby.com/t/same-language-from-template-to-virtual-page/27681 "2023-01-25T20:04:25Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![claraloustau](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/claraloustau/32/12322_2.png) [@claraloustau](https://forum.getkirby.com/u/claraloustau)
#### Post date: [January 25, 2023, 8:04pm UTC](https://forum.getkirby.com/t/same-language-from-template-to-virtual-page/27681/1 "2023-01-25T20:04:25Z")

</div>

Hello there,

I made a virtual page from my page article,  
How can I keep de translation in english or spanish from an article to the virtual page ?  
Actually it only display in french

```auto
 'routes' => [
    [
      'pattern' => '(:any)/print/(:all)',
      'action' => function ($lang, $page_id) {
        $p = page('print');
        return $p->render([
          'article' => page($lang, $page_id)
        ]);
      }
    ],
  ]

```

---

<div class="post-metadata">

### Author: ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)
#### Post date: [January 25, 2023, 8:15pm UTC](https://forum.getkirby.com/t/same-language-from-template-to-virtual-page/27681/2 "2023-01-25T20:15:12Z")

</div>

I don’t really understand your code or what you are trying to do.

If you want to visit a page in a given language, you have to use `$site-visit($page, $lang)` before returning the page.

Or you set the language scope: [Routing | Kirby CMS](https://getkirby.com/docs/guide/routing#multi-language-setup__language-scope)

But

> [@claraloustau](#):
>
> `page($lang, $page_id)`

This is not correct syntax, the page helper doesn’t accept a language code.

---

<div class="post-metadata">

### Author: ![claraloustau](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/claraloustau/32/12322_2.png) [@claraloustau](https://forum.getkirby.com/u/claraloustau)
#### Post date: [January 26, 2023, 12:42pm UTC](https://forum.getkirby.com/t/same-language-from-template-to-virtual-page/27681/3 "2023-01-26T12:42:06Z")

</div>

Thank you Texnixe for your help, in fact I had to use  
`return site()->visit($p, $lang)->render(['article' => page($page_id)]);`
