# Looking for help understanding translations

**URL:** https://zola.discourse.group/t/looking-for-help-understanding-translations/1337
**Category:** Support
**Created:** [May 31, 2022, 5:10pm UTC](https://zola.discourse.group/t/looking-for-help-understanding-translations/1337 "2022-05-31T17:10:56Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![phayes](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/phayes/32/763_2.png) [@phayes](https://zola.discourse.group/u/phayes)
#### Post date: [May 31, 2022, 5:10pm UTC](https://zola.discourse.group/t/looking-for-help-understanding-translations/1337/1 "2022-05-31T17:10:56Z")

</div>

I’m trying to build a multi-lingual website and am having some trouble getting it to work.

This is my `config.toml`

```auto
default_language = "en"

[languages.en.translations]
home_title = "My Website"
home_desc = "Welcome to my website"

[languages.fr.translations]
home_title = "Mon site internet"
home_desc = "Bienvenue sur mon site"

```

And this is my index.html

```auto
<h1>{{ trans(key="home_title") }}</h1>
<p>{{ trans(key="home_desc") }} </p>

```

Zola generates both an `index.html` and `/fr/index.html`, however, both generated pages contain english text. It seems to me that Zola is not picking up my `[languages.fr.translations]` section. Any suggestions?

---

<div class="post-metadata">

### Author: ![keats](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@keats](https://zola.discourse.group/u/keats)
#### Post date: [June 3, 2022, 9:39pm UTC](https://zola.discourse.group/t/looking-for-help-understanding-translations/1337/2 "2022-06-03T21:39:33Z")

</div>

You need to pass a `lang` attribute, otherwise it defaults to the default one. Do `{{ trans(key="home_desc", lang=lang) }}` and that should work
