firebase / FirebaseUI-Flutter

Apache License 2.0
99 stars 86 forks source link

Missing password field's error translation "Password should be at least 6 characters" #17

Closed Sitiapp closed 10 months ago

Sitiapp commented 1 year ago

Bug report

Missing password field's error translation "Password should be at least 6 characters" Currently on firebase auth ui is not possible to override the value of "Password should be at least 6 characters" in order to translate it to another language.

Steps to reproduce

Steps to reproduce the behavior:

  1. Go to Registration screen
  2. On password and confirm password fields enter a value shorter than 6 characters
  3. Press Sign up button
  4. See error message "Password should be at least 6 characters"

Expected behavior

It has to be possible to override the value "Password should be at least 6 characters" for example:

// label_overrides.dart

  const LabelOverrides(this.appLocalizations);

  @override
  String get passwordMinCharactersErrorText => appLocalizations.passwordMinCharactersErrorText;

Flutter dependencies

firebase_ui_auth: ^1.4.0

IMG_20230525_092626

danagbemava-nc commented 1 year ago

Thanks for reporting this.

The localizations file does not seem to contain a message for the weak password message. https://github.com/firebase/flutterfire/blob/master/packages/firebase_ui_localizations/lib/src/default_localizations.dart

https://github.com/firebase/flutterfire/blob/master/packages/firebase_ui_localizations/lib/src/lang/en.dart

Labeling for teams attention