Set Language Code
Use the setLanguageCode method to set the user's preferred language for Firebase Authentication operations, such as email templates for password resets or sign-in links.
Method
final user = FirebaseApp.firebaseAuth?.setLanguageCode('languageCode');Parameters
languageCode (
String): The language code (e.g.,'en','es') to set as the user's preferred language.
Return
User?: The updated
userinstance representing the current user.
This method sets the preferred language for Firebase Authentication operations for the current user.
Last updated