Use Device Language
Use the useDeviceLanguage
method to manually set the Firebase Authentication language to a specific language provided by the developer.
Method
Parameters
userId (
String
): The unique user ID for which the language setting is to be applied.languageCode (
String
): The language code (e.g.,'en'
,'fr'
) to set as the Firebase Authentication language.
Return
String?: Returns the language code that was set.
This method allows developers to explicitly set the language used by Firebase Authentication for operations such as email templates and SMS messages.
Last updated