Search code examples
swiftxcodefirebase-authentication

How can I change the Google Firebase Email confirmation message from within my Swift app?


I have been trying to localise my app by allowing for language translation for forgotten password emails. I tried using the firebase "Auth.auth().languageCode = "es"" method, however I found an issue where I am only able to localise the link that is included in the email. Am I able to make a custom email message prompt within my app (so that if a user selects Spanish as the default language in my app, the message will automatically convert to a hardcoded Spanish message written in a string in my app?)

This is the message I want to change -

The message in question.

I tried using the Language code, and even tried the "useAppLanguage()" method, however these didn't help me in localising the message, only the link.

Here is the email - enter image description here

and here is the results of the link - enter image description here


Solution

  • Firebase doesn’t allow you to directly change the email message due to spam prevention measures. However, you can change the language of the template using the option in the bottom left corner of the image you posted (sorry, I’m not able to post images yet, but here is the link of it). I hope this helps you.