<p>This is how to "translate" a slug:</p>

<pre><code>{% set enSlug = 'work' %}

{# Get the ID of an entry with that english slug #}
{% set enId = craft.entries.slug(enSlug).locale('en').first().id %}

{# Use the entry ID to get the german slug #}
{% set deSlug = craft.entries.id(enId).locale('de').first().slug %}
</code></pre>

CC BY-SA 3.0
2014-09-04T15:19:10.373Z
2014-09-04T16:18:02.847Z
2014-09-04T16:18:02.847Z
carlcs
<p>in a multilingual site, how can i place multilingual links to content.</p>

<p>i.e. in the footer i would place a Imprint but in anohter language the slug might be /de/germanImprint...is there an easy helper to always get the right url from the english slug?</p>

CC BY-SA 3.0
2014-09-04T15:20:42.837Z
I probably misunderstood you totally on this one, but I tried anyways.
carlcs
CC BY-SA 3.0
2014-09-08T09:06:26.087Z
nah i believe thats exactly what i needed, thx! :)
nexflo
<url>
How to localise page url
# How to localise page url

(Asked by: username_0 on 2014-09-04)

in a multilingual site, how can i place multilingual links to content.

i.e. in the footer i would place a Imprint but in anohter language the slug might be /de/germanImprint...is there an easy helper to always get the right url from the english slug?

**Tags:** url

> **Comments:**
> **username_1**: I probably misunderstood you totally on this one, but I tried anyways.  
> **username_0**: nah i believe thats exactly what i needed, thx! :)  

---

## 1 answers

### Answer by username_1 on 2014-09-04. Score: 3

This is how to "translate" a slug:
{% set enSlug = 'work' %}

{# Get the ID of an entry with that english slug #}
{% set enId = craft.entries.slug(enSlug).locale('en').first().id %}

{# Use the entry ID to get the german slug #}
{% set deSlug = craft.entries.id(enId).locale('de').first().slug %}


---

