Magic Link - Localization on email template

Hi,

I’m looking for a way to identify which is the language used by the user that is claiming for a magical link, on the login page I’m able to display based on the param I send from react side, so lock.js displays the correct language, so then when the user wants to log/signup the email is sent correctly, however it is always displayed on English.

The doc says I can do using the user metadata, however, in this case when I debug my template, there is no user metadata object in the context variables, so I don’t have a way to detect which is the language used on the login page, and for the first time the user is on the sign up there is no user object.

This is how my context looks like

{
  "application": {
    "name": "New Broccoli ",
    "sso_disabled": false,
    "clientID": "",
    "allowed_clients": [],
    "allowed_logout_urls": [
      "http://localhost:3000"
    ],
    "callbacks": [],
    "custom_login_page_preview": "htmlcode..."
  },
  "tenant": "dev-mgfjtk1z",
  "client": {
    "name": "New Broccoli ",
    "sso_disabled": false,
    "clientID": "",
    "allowed_clients": [],
    "allowed_logout_urls": [
      "http://localhost:3000"
    ],
    "callbacks": [],
    "custom_login_page_preview": "htmlcode"
  },
  "friendly_name": "dev-mgfjtk1z",
  "support_email": "{{ application.name }} <vinicio@gpdcode.net>",
  "logo_url": "http://cdn.auth0.com/styleguide/latest/lib/logos/img/logo-blue.png",
  "home_url": "about:blank",
  "send": "link",
  "connection": {
    "name": "email"
  },
  "code": "982063",
  "link": "link",
  "user": {
    "email": "test@yopmail.com",
    "email_verified": true,
    "name": "test@yopmail.com",
    "nickname": "vinicio",
    "picture": "https://s.gravatar.com/avatar/4d9e377883ce84e8261180c1f4e5788d?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fvi.png",
    "logins_count": 1
  },
  "organization": {}
}

Is there any way to send a magic link email based on the user which I’m displaying in the login?