How do I update user metadata in signup flow?

Hi @dnationalwala,

To update the user_metadata in the signup flow, please use a Pre-User Registration Action.

For example:

/**
 * @param {Event} event - Details about registration event.
 * @param {PreUserRegistrationAPI} api
 */
exports.onExecutePreUserRegistration = async (event, api) => {
  api.user.setUserMetadata("locale", "fr-CA");  
};

(Reference: Pre User Registration Flow)

Then to set your preferred language in the email template, please refer to this solution here.

Please let me know if you have any questions.

Thanks,
Rueben