Firebase Rest Api setting language for user or app?

167 views
Skip to first unread message

Emil A.

unread,
Jun 6, 2018, 1:06:51 PM6/6/18
to Firebase Google Group

Firebase has option to set language code or app language for current user in order to get verification, password reset emails in defined language like below. below is from Android SDK implementation

Additionally you can localize the verification email by updating the language code on the Auth instance before sending the email. For example:

auth.setLanguageCode("fr"); // To apply the default app language instead of explicitly setting it. // auth.useAppLanguage();

But i am using rest api within my uwp application and this option is not defined in rest api documentation

Does anybody know how to achieve this?

Kato Richardson

unread,
Jun 6, 2018, 3:28:49 PM6/6/18
to Firebase Google Group
Hi Emil,

Looks like you need to add a header, e.g. X-Firebase-Locale: 'fr' (thanks Bassam for the details).

We created an internal bug to update our docs. Thanks for letting us know!

☼, Kato

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/eca19dd2-b51f-4baf-8f64-361d8b1cf38f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

Kato Richardson | Developer Programs Eng | kato...@google.com | 775-235-8398

Emil A.

unread,
Jun 8, 2018, 10:38:20 AM6/8/18
to Firebase Google Group
Hi Kato,

awesome, it works like charm for me. Here I updated .net code on stackoverflow post

thanks,

Emil
Reply all
Reply to author
Forward
0 new messages