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
Parameters
languageCode (
String
): The language code (e.g.,'en'
,'es'
) to set as the user's preferred language.
Return
User?: The updated
user
instance representing the current user.
This method sets the preferred language for Firebase Authentication operations for the current user.
Last updated