firebase / firebase/FirebaseUI-Android

[Auth-UI][v10.0.0-beta04] Phone auth error dialog ignores AuthUIStringProvider — messages always come back in English

オープン
#2,506 コメント 2 件 リアクション 0 件 担当者 1 名 @demolaf が担当を希望しています GitHub で見る
auth reproduced type: bug
主要言語
Kotlin
スター
4.8k
フォーク
1.9k
平均マージ
2日 9時間
マージ済み PR(30日)
42

説明

Steps to reproduce:
1. Host PhoneAuthScreen and provide a locale-aware provider via both LocalAuthUIStringProvider and LocalTopLevelDialogController, exactly as documented in the Localization README:
DefaultAuthUIStringProvider(context, Locale.JAPAN)
2. On the enter-phone-number step, enter a malformed number and tap the send/next button.
3. Observe the ErrorRecoveryDialog shown by `dialogController.CurrentDialog()`

Image

- `error.message` over resources for `InvalidCredentialsException, UnknownException, PhoneVerificationCooldownException, EmailAlreadyInUseException and AccountLinkingRequiredException`
it builds DefaultAuthUIStringProvider(context) with no locale, so it uses the device locale

- `values-zh-rTW` ships `fui_error_dialog_title = "Authentication Error"` and `fui_error_retry_action = "Try again"` untranslated, while `fui_email_link_dismiss_button = 「關閉」` is translated. On a zh-TW device the dialog is mixed-language even when the provider works correctly. `values-ja and values-ko` have all three.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。