15

Hello all !

There is a service provided with Firebase (and all its awesomeness) that gives the possibility for an authenticated user to reset his password. But this service is taking only one text into account - the one defined on the dashboard.

Is it possible to get this in many languages ? I'm going to need this functionnality !

@Firebase Friends, since I think you will see this question - do you plan to add this in the future ? Or else give the possibility to pass a text as an argument to the function ?

Thanks ahead !

Jeremy Belolo
  • 4,319
  • 6
  • 44
  • 88
  • @rob-diMarco may help you (he is backend engineer in Firebase) http://stackoverflow.com/users/879295/rob-dimarco – ahmed hamdy Dec 07 '14 at 15:14
  • Please reach out to support@firebase com for this feature request. Stackoverflow is not the right forum for it. – Frank van Puffelen Dec 07 '14 at 21:48
  • 1
    This question appears to be off-topic because it is about adding a feature to Firebase. – Frank van Puffelen Dec 07 '14 at 21:49
  • Sure, for the feature request I will try and reach them... But Stackoverflow is definitely the place for an eventual workaround, right ? :) – Jeremy Belolo Dec 08 '14 at 09:10
  • Sure. But I can't think of anything besides sending a single multi-lingual email (the typical "scroll down for english"). I'm also quite sure you won't find that acceptable (I wouldn't). – Frank van Puffelen Dec 09 '14 at 02:30
  • No, it's not acceptable. Actually the only way I could think of would be coding again the functionnality, upon request sending the email to a dedicated adress watched by a program, that would take the new temporary password, integrate it into a text of the wanted language, and send it to the right person. But it's a lot of work for something that should be straightforward (I contacted Firebase and they have no plan to add this feature in the near future...) – Jeremy Belolo Dec 09 '14 at 06:20
  • Hey, this post is quite old. Did they do something about it? I would need the same feature. – cherry-wave Feb 15 '17 at 09:59
  • @cherry-wave I gave up on this long time ago, and didn't check for at least a year if they did something... I guess from your answer they didn't. Good luck. – Jeremy Belolo Feb 16 '17 at 10:43
  • I need this too! Is the feature already available? – mesqueeb Oct 04 '17 at 03:00
  • I have added an answer to this post describing how you can have multilingual password reset mails, but only for pre-defined templates – eikooc Nov 19 '18 at 15:41
  • What if the user uses the app on multiple devices and each device has a different language. Then this will work `auth.useAppLanguage();` or `auth.setLanguageCode("fr");` – Deepak Goyal May 21 '20 at 15:53

1 Answers1

22

If you are using the standard Firebase email service you can currently have multilingual emails only if you use the standard template provided by Firebase. If you have a customised template you can reset it in the console. To send locale specific mails you should manually call the function to use the device language or set it with a string. These scenarios are provided as examples below:

Web SDK:

firebase.auth().useDeviceLanguage(); // set with function
firebase.auth().languageCode = 'fr'; // set with string

Android SDK:

auth.useAppLanguage(); // set with function
auth.setLanguageCode("fr"); // set with string

Swift SDK:

Auth.auth().useAppLanguage(); // set with function
Auth.auth().languageCode = "fr"; // set with string

The Google Groups mailing list has a nice discussion of these issues.

Another solution is to use custom email action handlers. The setup is more difficult but it is well documented in the Firebase documentation.

eikooc
  • 2,363
  • 28
  • 37
  • Hey, thanks but you do realize I asked this 4 years ago ? :D Everything has changed since ! Thanks again anyway, I will have a look at the new capabilities of FB – Jeremy Belolo Nov 19 '18 at 15:41
  • 6
    Sure. I just stumbled upon it because I wanted to do the same, and now I figured out how. So for anyone else coming along it might be nice for them not to search so much for it :-) – eikooc Nov 19 '18 at 15:42
  • 1
    Well, since no one had answered this question, there you get some points I guess – Jeremy Belolo Nov 19 '18 at 15:44
  • @eikooc or JeremyBelolo do you know if the hosted reset password google page identifies the browser language? – Kevin Danikowski Mar 15 '21 at 16:11
  • @eikooc I suppose there is no way to remove the project name in the standard email, which appears like this: project-2345234523? Right? – Fotios Tsakiris Jun 15 '22 at 08:29