# Show translated blueprint options on final site?

**URL:** https://forum.getkirby.com/t/show-translated-blueprint-options-on-final-site/13676
**Category:** Questions
**Tags:** v3
**Created:** [April 5, 2019, 1:15pm UTC](https://forum.getkirby.com/t/show-translated-blueprint-options-on-final-site/13676 "2019-04-05T13:15:44Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![luap](https://avatars.discourse-cdn.com/v4/letter/l/45deac/32.png) [@luap](https://forum.getkirby.com/u/luap)
#### Post date: [April 5, 2019, 1:15pm UTC](https://forum.getkirby.com/t/show-translated-blueprint-options-on-final-site/13676/1 "2019-04-05T13:15:44Z")

</div>

I’m creating a multilanguage site (my first kirby site btw) and it works quite well, but the translated “options” from my blueprint do not get translated on the website itself.

My blueprint looks like this

```ini
options:
  monday: 
    en: monday
    fr: lundi
  tuesday: 
    en: tuesday
    fr: mardi

```

I already understood that they only appear when a panel user uses the specific language. But how can I access the translation on the site or solve my problem otherwise?

Thanks!

---

<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: [April 5, 2019, 1:36pm UTC](https://forum.getkirby.com/t/show-translated-blueprint-options-on-final-site/13676/2 "2019-04-05T13:36:49Z")

</div>

Hey @luap,

Welcome to the Kirby forum.

> [@luap](#):
>
> but the translated “options” from my blueprint do not get translated on the website itself.

The translated labels are only displayed in the Panel, they are not stored in your content files (only the value is, in this case `monday` and `tuesday`.

There are at least two ways to get the translations into the frontend:

- use the [`translations` property](https://getkirby.com/docs/guide/languages/custom-language-variables) in your language files
- [query the page blueprint](https://getkirby.com/docs/cookbook/templating/using-blueprints-in-frontend)

The first option requires you to define these translations manually again.  
If you use the second option, Kirby has to read the blueprints, so this might be a bit slower.

---

<div class="post-metadata">

### Author: ![luap](https://avatars.discourse-cdn.com/v4/letter/l/45deac/32.png) [@luap](https://forum.getkirby.com/u/luap)
#### Post date: [April 8, 2019, 8:15am UTC](https://forum.getkirby.com/t/show-translated-blueprint-options-on-final-site/13676/3 "2019-04-08T08:15:45Z")

</div>

Hey @texnixe, thanks for the quick reply before the weekend!  
I am not only new to kirby but also to php, to be honest.

Your first proposal looks good, translating seven “days” is no problem. But I couldn’t figure out where to put my “day” variable there (for the seven days of the week…). My guess is, it’s not possible…  
This is my code right now

```php
<?= $event->day()->kirbytext() ?>

```

With the second solution I wouldn’t even know where to start!

Thanks!

---

<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: [April 8, 2019, 8:20am UTC](https://forum.getkirby.com/t/show-translated-blueprint-options-on-final-site/13676/4 "2019-04-08T08:20:34Z")

</div>

For the first option, you would define the variables in your language files:

```auto
return [
  'code' => 'fr',
  'default' => false,
  'direction' => 'ltr',
  'locale' => 'fr_Fr',
  'name' => 'Français',
  'translations' => [
    'monday' => 'lundi',
    'tuesday' => 'mardi',
    'wednesday' => 'mercredi'
  ]
];

```

Then in your template, you use the `t()` helper function to get the translation for the string stored in your `day` field:

```auto
<?= t($event->day()->value()) ?>

```

So if the value of the day field was `tuesday` and the user is on the French version of the site, it would render `mardi`.

Edit: You have to set the translations in each language file, including the default language.

---

<div class="post-metadata">

### Author: ![luap](https://avatars.discourse-cdn.com/v4/letter/l/45deac/32.png) [@luap](https://forum.getkirby.com/u/luap)
#### Post date: [April 8, 2019, 9:09am UTC](https://forum.getkirby.com/t/show-translated-blueprint-options-on-final-site/13676/5 "2019-04-08T09:09:31Z")

</div>

Thank you! That worked! I had missed the `->value` before. But I still had to “translate” the days in my english default language file.

---

<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: [April 8, 2019, 9:41am UTC](https://forum.getkirby.com/t/show-translated-blueprint-options-on-final-site/13676/6 "2019-04-08T09:41:41Z")

</div>

Yes, you have to do that for every language. Sorry for being unclear.

---

<div class="post-metadata">

### Author: ![luap](https://avatars.discourse-cdn.com/v4/letter/l/45deac/32.png) [@luap](https://forum.getkirby.com/u/luap)
#### Post date: [April 8, 2019, 10:06am UTC](https://forum.getkirby.com/t/show-translated-blueprint-options-on-final-site/13676/7 "2019-04-08T10:06:01Z")

</div>

No Problem, since you mentioned it in another question I had read before.

---

<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: [February 7, 2021, 9:23pm UTC](https://forum.getkirby.com/t/show-translated-blueprint-options-on-final-site/13676/8 "2021-02-07T21:23:29Z")

</div>

A post was merged into an existing topic: [Kirby Tags multilanguage](https://forum.getkirby.com/t/kirby-tags-multilanguage/21070/4)
