<p>Thx, this is how I used it to get the titles of all events in the current language:</p>

<pre><code>{% set locale = craft.i18n.getCurrentLocale() %}
{% set events = craft.entries.section('events').level(1).locale(locale) %}
{% for event in events %}
    &lt;p&gt;{{ event.title }}&lt;/p
{% endfor %}
</code></pre>

CC BY-SA 3.0
2017-06-15T13:18:07.773Z
2017-06-15T13:18:07.773Z
Pieter-Jan De Bruyne
<p>You can use the 'locale' and 'id' attributes in your query to request the same entry in another locale.</p>

<pre><code>{{ entry.title }}&lt;br&gt;
{{ craft.entries.id([entry.id]).locale('nl_nl').first.title }}
</code></pre>

<p><strong>Update.</strong> If there is any chance that the entry/section is disabled for that locale you can also check it first, like so.</p>

<pre><code>{% set nlEntry = craft.entries.id([entry.id]).locale('nl_nl').first %}
{% if nlEntry %}
    {{ nlEntry.title }}
{% endif %}
</code></pre>

CC BY-SA 3.0
2015-05-11T20:09:48.553Z
Had no idea i could use a twig command like this. It worked like a charm, thanks!
Kitsune
CC BY-SA 3.0
2015-05-12T04:55:29.950Z
Glad it worked. Btw... I thought I should add — to be safe you might also want to check to make sure the entry is enabled for the other locale. I added an example.
Douglas McDonald
CC BY-SA 3.0
2015-05-11T15:32:37.287Z
2015-05-12T04:52:37.960Z
2015-05-12T04:52:37.960Z
Douglas McDonald
<p>I'm trying to get the locale title (dutch: nl_nl) of an entry, in the english version of the same post. I want to do this so that on hover it shows the English title's Dutch version.</p>

<p>Any help is appreciated!</p>

<localization>
Get locale entry.title in other languages
# Get locale entry.title in other languages

(Asked by: username_0 on 2015-05-11)

I'm trying to get the locale title (dutch: nl\_nl) of an entry, in the english version of the same post. I want to do this so that on hover it shows the English title's Dutch version.

Any help is appreciated!

**Tags:** localization

---

## 2 answers

### Answer by username_2 on 2015-05-11. Score: 10 | Accepted answer

You can use the 'locale' and 'id' attributes in your query to request the same entry in another locale.
{{ entry.title }}
{{ craft.entries.id([entry.id]).locale('nl_nl').first.title }}

Update. If there is any chance that the entry/section is disabled for that locale you can also check it first, like so.
{% set nlEntry = craft.entries.id([entry.id]).locale('nl_nl').first %}
{% if nlEntry %}
    {{ nlEntry.title }}
{% endif %}

> **Comments:**
> **username_0**: Had no idea i could use a twig command like this. It worked like a charm, thanks!  
> **username_2**: Glad it worked. Btw... I thought I should add — to be safe you might also want to check to make sure the entry is enabled for the other locale. I added an example.  

---

### Answer by username_1 on 2017-06-15. Score: 2

Thx, this is how I used it to get the titles of all events in the current language:
{% set locale = craft.i18n.getCurrentLocale() %}
{% set events = craft.entries.section('events').level(1).locale(locale) %}
{% for event in events %}
    {{ event.title }}


---

