<p>You could choose which value to translate your content into using the <code>|t($lang)</code> filter based on some condition. You condition could be a lightswitch field on each entry saying whether it's been translated or not, or check if a content field is empty or not.</p>

<p>So something like</p>

<pre><code>set lang = entry.lang

if entry.isTranslated == false {
   set lang = 'english'
}

{{ content|t(lang) }}
</code></pre>

CC BY-SA 4.0
2019-01-29T17:18:08.400Z
It would be really easy if this work, but it does not. But my theoretical Idea was like this. If Text Field is empty get English Text.
adsfgfhg
CC BY-SA 4.0
2019-01-29T10:07:52.343Z
2019-01-29T10:07:52.343Z
mijewe
<p>I think it have something to do with <code>.handle('spanish')</code> or <code>.siteId('2')</code>. I tried it but seems to be more complicated than I thought.</p>

CC BY-SA 4.0
2019-01-30T10:41:06.320Z
2019-01-30T10:41:06.320Z
Markus
<p>Is it possible to get the english content on the, for example, Spanish site if the Text for the specific language is not defined yet?</p>

<p>I do not mean a redirect! The English version should be displayed until the Spanish content has been inserted. </p>

<p>It would be great if someone has a Idea! Thanks!</p>

<craft3><localization><multi-site>
If other languages are not defined show english
# If other languages are not defined show english

(Asked by: username_0 on 2019-01-27)

Is it possible to get the english content on the, for example, Spanish site if the Text for the specific language is not defined yet?

I do not mean a redirect! The English version should be displayed until the Spanish content has been inserted.

It would be great if someone has a Idea! Thanks!

**Tags:** craft3, localization, multi-site


---

## 2 answers

### Answer by username_1 on 2019-01-29. Score: 1

You could choose which value to translate your content into using the |t($lang) filter based on some condition. You condition could be a lightswitch field on each entry saying whether it's been translated or not, or check if a content field is empty or not.
So something like
set lang = entry.lang

if entry.isTranslated == false {
   set lang = 'english'
}

{{ content|t(lang) }}

> **Comments:**
> **username_0**: It would be really easy if this work, but it does not. But my theoretical Idea was like this. If Text Field is empty get English Text.  

---

### Answer by username_2 on 2019-01-30. Score: 0

I think it have something to do with `.handle('spanish')` or `.siteId('2')`. I tried it but seems to be more complicated than I thought.


---

