File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,10 @@ + (nullable FUIAuth *)authUIWithAuth:(FIRAuth *)auth {
92
92
if ([auth respondsToSelector: @selector (setAdditionalFrameworkMarker: )]) {
93
93
auth.additionalFrameworkMarker = kFirebaseAuthUIFrameworkMarker ;
94
94
}
95
+ // Update auth with the actual language used in the app.
96
+ // If localization is not provided by developer, the first localization available,
97
+ // ordered by the user's preferred order, is used.
98
+ auth.languageCode = [NSBundle mainBundle ].preferredLocalizations .firstObject ;
95
99
}
96
100
return authUI;
97
101
}
Original file line number Diff line number Diff line change @@ -60,7 +60,6 @@ To start the authentication flow:
60
60
// Swift
61
61
let phoneProvider = FUIAuth.defaultAuthUI()?.providers.first as! FUIPhoneAuth
62
62
phoneProvider.signIn(withPresenting: currentlyVisibleController, phoneNumber: nil)
63
- }
64
63
```
65
64
66
65
``` objective-c
You can’t perform that action at this time.
0 commit comments