# Access user language user\_metadata.lang in email template

**URL:** <https://community.auth0.com/t/access-user-language-user-metadata-lang-in-email-template/44932>\
**Category:** Get Help\
**Tags:** customize, password-reset\
**Created:** [June 18, 2020, 5:29pm UTC](https://community.auth0.com/t/access-user-language-user-metadata-lang-in-email-template/44932 "2020-06-18T17:29:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabriel.r](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gabriel.r/32/22028_2.png) [@gabriel.r](https://community.auth0.com/u/gabriel.r)\
**Post date:** [June 18, 2020, 5:29pm UTC](https://community.auth0.com/t/access-user-language-user-metadata-lang-in-email-template/44932/1 "2020-06-18T17:29:17Z")

</div>

Hello Auth0 folk!

I’m trying to implement a multi-language email template, specifically the password change email. The documentation [here](https://auth0.com/docs/email/templates#multilingual-email-templates) says:

> You can use Liquid syntax along with properties from the user object to alter the content based on the user preferred language. For example:

```auto
{% if user.user_metadata.lang == 'es' %}
{% else %}
  Hi {{ user.name }}, ...
{% endif %}

```

… but it just doesn’t do it for me. Also when using `{% debug %}`, the `user` object only has these variables:

 ![image](https://global.discourse-cdn.com/auth0/original/3X/b/3/b36d5e1b60a7fc5d2199c29954b849279ad77290.png)

How is the language set?

Thanks!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [June 19, 2020, 9:45am UTC](https://community.auth0.com/t/access-user-language-user-metadata-lang-in-email-template/44932/3 "2020-06-19T09:45:17Z")

</div>

Hmm thanks for reporting that!

It seems that you’re doing everything right according to the doc. Let me reach out to the team to find out more about that!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [September 11, 2020, 1:14pm UTC](https://community.auth0.com/t/access-user-language-user-metadata-lang-in-email-template/44932/4 "2020-09-11T13:14:56Z")

</div>

Hey there!

Terribly sorry for huge delay in response but sometimes we struggle with the bandwidth in our team. We’re doing our best to provide you with the best developer support experience we can but sometimes the number of incoming questions is too huge.

I did some research and it seems that you’re doing everything correctly and there’s some bug on our side. I reported the issue internally and as soon as they fix it I will share it with you. Sorry for the inconvenience!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [September 11, 2020, 1:14pm UTC](https://community.auth0.com/t/access-user-language-user-metadata-lang-in-email-template/44932/5 "2020-09-11T13:14:58Z")

</div>


