Reputation: 1023
In my Android app several languages uses sms verification from firebase.
In the app several languages can be selected in order to set the app in the selected language.
It would be a nice bonus if it where possible to, apart from making the request to firebase, pass to it a parameter that depending on it would return a sms in the same language that this parameter indicates.
But I cannot even find any reference to start with, it seems non-existent.
Is there some way to do that?
Upvotes: 1
Views: 4856
Reputation: 12005
If you go in Authentication in the Firebase console you'll see this:
Here you can see the template for the SMS message sent, including templates for different languages. The locale will be decided by the sdk in the user's phone. As per the docs:
The SMS message sent by Firebase can also be localized by specifying the auth language via the setLanguageCode method on your Auth instance.
FirebaseAuth.getInstance().setLanguageCode("fr");
This is also valid for the email messages.
Upvotes: 4