# Localize email verification message

**URL:** <https://community.auth0.com/t/localize-email-verification-message/56510>\
**Category:** Get Help\
**Tags:** email-template, email-verification, auth0\
**Created:** [January 20, 2021, 1:38pm UTC](https://community.auth0.com/t/localize-email-verification-message/56510 "2021-01-20T13:38:37Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [January 26, 2021, 5:59pm UTC](https://community.auth0.com/t/localize-email-verification-message/56510/11 "2021-01-26T17:59:27Z")

</div>

Sure, you will want to create a pre-registration hook like this:

```auto
/**
@param {object} user - The user being created
@param {string} user.tenant - Auth0 tenant name
@param {string} user.username - user name
@param {string} user.password - user's password
@param {string} user.email - email
@param {boolean} user.emailVerified - is e-mail verified?
@param {string} user.phoneNumber - phone number
@param {boolean} user.phoneNumberVerified - is phone number verified?
@param {object} context - Auth0 connection and other context info
@param {string} context.renderlanguage - language used by signup flow
@param {string} context.request.ip - ip address
@param {string} context.request.language - language of the client agent
@param {object} context.connection - information about the Auth0 connection
@param {object} context.connection.id - connection id
@param {object} context.connection.name - connection name
@param {object} context.connection.tenant - connection tenant
@param {object} context.webtask - webtask context
@param {function} cb - function (error, response)
*/
module.exports = function (user, context, cb) {
  var response = {};
  response.user = user;
  response.user.user_metadata = { lang: context.renderLanguage };
  cb(null, response);
};

```

The ui\_locales param isn’t available directly in the hook. Instead, we use the renderLanguage of the login page. Whatever language the Universal Login page is rendered in will be set as user\_metadata.lang.

---

_[View the full topic](https://community.auth0.com/t/localize-email-verification-message/56510)._
