Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Adding support to setLanguageCode to FirebaseAuth #683

Merged
merged 4 commits into from
Jul 24, 2018

Conversation

ffeu
Copy link
Contributor

@ffeu ffeu commented Jul 23, 2018

related issue:
flutter/flutter#19525

@kroikie kroikie self-assigned this Jul 23, 2018
@@ -411,6 +411,15 @@ class FirebaseAuth {
return currentUser;
}

/// Sets the user-facing language code for auth operations that can be
/// internationalized, such as [sendEmailVerification].
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please include the formatting requirements (IETF in BCP47) in this comment.

Eg: as in Android reference docs

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@kroikie
Copy link
Contributor

kroikie commented Jul 23, 2018

@ffeu Thanks for the PR, this looks good. Could you please:

  • update comments on dart side.
  • Bump version number of plugin
  • Update CHANGELOG with change.

@kroikie
Copy link
Contributor

kroikie commented Jul 24, 2018

LGTM

@kroikie kroikie merged commit dd5c6d7 into flutter:master Jul 24, 2018
@ffeu ffeu deleted the firebase_auth_set_language branch July 24, 2018 23:43
@basketball-ico
Copy link

Hello, the email updateEmail sent is in English, after I set different laguage like this

await FirebaseAuth.instance.setLanguageCode('es');
final user = await FirebaseAuth.instance.currentUser();
await user.updateEmail('example@gmail.com');

I am doing correct?
Thanks

@ffeu
Copy link
Contributor Author

ffeu commented Mar 15, 2019

@basketball-ico
Hi, the language code must be in IETF, try setLanguageCode('es-419') (latin america spanish) or setLanguageCode('es-ES')(spain spanish).

PS: the best place for questions like this is stackoverflow.

@basketball-ico
Copy link

@ffeu Hi thanks I try this, but the updateEmail is send in english, the resetPassword and emailVeification email are sent in the language that I set.

julianscheel pushed a commit to jusst-engineering/plugins that referenced this pull request Mar 11, 2020
* Adding support to setLanguageCode to FirebaseAuth
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants