Skip to content

Commit

Permalink
fix(ui_auth, ui_localizations): add invalid verification SMS code err…
Browse files Browse the repository at this point in the history
…or label (#102)
  • Loading branch information
lesnitsky authored Sep 6, 2023
1 parent 88c31a3 commit 8adc39b
Show file tree
Hide file tree
Showing 46 changed files with 224 additions and 24 deletions.
3 changes: 1 addition & 2 deletions packages/firebase_ui_auth/lib/src/widgets/error_text.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ String? localizedErrorText(
case 'credential-already-in-use':
return labels.credentialAlreadyInUseErrorText;
case 'invalid-verification-code':
// TODO(@lesnitsky): localization
return 'The code you entered is invalid. Please try again.';
return labels.invalidVerificationCodeErrorText;

default:
return null;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"@@locale": "ar",
"@@last_modified": "2023-09-01T13:12:06.522803",
"@@last_modified": "2023-09-06T14:33:29.121119",
"accessDisabledErrorText": "تم إيقاف إذن الوصول إلى هذا الحساب مؤقتًا.",
"@accessDisabledErrorText": {
"description": "Used as an error message when account is blocked and user tries to perform some actions with the account (e.g. unlinking a credential).",
Expand Down Expand Up @@ -483,5 +483,10 @@
"@doneButtonLabel": {
"description": "Done button label",
"placeholders": {}
},
"invalidVerificationCodeErrorText": "The code you entered is invalid. Please try again.",
"@invalidVerificationCodeErrorText": {
"description": "Error text indicating that entered SMS code is invalid",
"placeholders": {}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"@@locale": "de",
"@@last_modified": "2023-09-01T13:12:06.516313",
"@@last_modified": "2023-09-06T14:33:29.117252",
"accessDisabledErrorText": "Der Zugriff auf dieses Konto wurde vorübergehend gesperrt",
"@accessDisabledErrorText": {
"description": "Used as an error message when account is blocked and user tries to perform some actions with the account (e.g. unlinking a credential).",
Expand Down Expand Up @@ -483,5 +483,10 @@
"@doneButtonLabel": {
"description": "Done button label",
"placeholders": {}
},
"invalidVerificationCodeErrorText": "The code you entered is invalid. Please try again.",
"@invalidVerificationCodeErrorText": {
"description": "Error text indicating that entered SMS code is invalid",
"placeholders": {}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"@@locale": "en",
"@@last_modified": "2023-09-01T13:12:06.523448",
"@@last_modified": "2023-09-06T14:33:29.127088",
"accessDisabledErrorText": "Access to this account has been temporarily disabled",
"@accessDisabledErrorText": {
"description": "Used as an error message when account is blocked and user tries to perform some actions with the account (e.g. unlinking a credential).",
Expand Down Expand Up @@ -483,5 +483,10 @@
"@doneButtonLabel": {
"description": "Done button label",
"placeholders": {}
},
"invalidVerificationCodeErrorText": "The code you entered is invalid. Please try again.",
"@invalidVerificationCodeErrorText": {
"description": "Error text indicating that entered SMS code is invalid",
"placeholders": {}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"@@locale": "es",
"@@last_modified": "2023-09-01T13:12:06.492378",
"@@last_modified": "2023-09-06T14:33:29.096563",
"accessDisabledErrorText": "Se ha inhabilitado temporalmente al acceso a esta cuenta",
"@accessDisabledErrorText": {
"description": "Used as an error message when account is blocked and user tries to perform some actions with the account (e.g. unlinking a credential).",
Expand Down Expand Up @@ -483,5 +483,10 @@
"@doneButtonLabel": {
"description": "Done button label",
"placeholders": {}
},
"invalidVerificationCodeErrorText": "The code you entered is invalid. Please try again.",
"@invalidVerificationCodeErrorText": {
"description": "Error text indicating that entered SMS code is invalid",
"placeholders": {}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"@@locale": "es_419",
"@@last_modified": "2023-09-01T13:12:06.522080",
"@@last_modified": "2023-09-06T14:33:29.119589",
"accessDisabledErrorText": "Se inhabilitó temporalmente el acceso a la cuenta",
"@accessDisabledErrorText": {
"description": "Used as an error message when account is blocked and user tries to perform some actions with the account (e.g. unlinking a credential).",
Expand Down Expand Up @@ -483,5 +483,10 @@
"@doneButtonLabel": {
"description": "Done button label",
"placeholders": {}
},
"invalidVerificationCodeErrorText": "The code you entered is invalid. Please try again.",
"@invalidVerificationCodeErrorText": {
"description": "Error text indicating that entered SMS code is invalid",
"placeholders": {}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"@@locale": "fr",
"@@last_modified": "2023-09-01T13:12:06.525671",
"@@last_modified": "2023-09-06T14:33:29.125523",
"accessDisabledErrorText": "L'accès à ce compte a été temporairement désactivé",
"@accessDisabledErrorText": {
"description": "Used as an error message when account is blocked and user tries to perform some actions with the account (e.g. unlinking a credential).",
Expand Down Expand Up @@ -483,5 +483,10 @@
"@doneButtonLabel": {
"description": "Done button label",
"placeholders": {}
},
"invalidVerificationCodeErrorText": "The code you entered is invalid. Please try again.",
"@invalidVerificationCodeErrorText": {
"description": "Error text indicating that entered SMS code is invalid",
"placeholders": {}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"@@locale": "he",
"@@last_modified": "2023-09-01T13:12:06.520582",
"@@last_modified": "2023-09-06T14:33:29.118845",
"accessDisabledErrorText": "הגישה לחשבון זה הושבתה באופן זמני",
"@accessDisabledErrorText": {
"description": "Used as an error message when account is blocked and user tries to perform some actions with the account (e.g. unlinking a credential).",
Expand Down Expand Up @@ -483,5 +483,10 @@
"@doneButtonLabel": {
"description": "Done button label",
"placeholders": {}
},
"invalidVerificationCodeErrorText": "The code you entered is invalid. Please try again.",
"@invalidVerificationCodeErrorText": {
"description": "Error text indicating that entered SMS code is invalid",
"placeholders": {}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"@@locale": "hi",
"@@last_modified": "2023-09-01T13:12:06.526288",
"@@last_modified": "2023-09-06T14:33:29.126505",
"accessDisabledErrorText": "इस खाते के ऐक्सेस पर, कुछ समय के लिए रोक लगा दी गई है",
"@accessDisabledErrorText": {
"description": "Used as an error message when account is blocked and user tries to perform some actions with the account (e.g. unlinking a credential).",
Expand Down Expand Up @@ -483,5 +483,10 @@
"@doneButtonLabel": {
"description": "Done button label",
"placeholders": {}
},
"invalidVerificationCodeErrorText": "The code you entered is invalid. Please try again.",
"@invalidVerificationCodeErrorText": {
"description": "Error text indicating that entered SMS code is invalid",
"placeholders": {}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"@@locale": "hu",
"@@last_modified": "2023-09-01T13:12:06.501369",
"@@last_modified": "2023-09-06T14:33:29.105442",
"accessDisabledErrorText": "A fiók átmenetileg le van tiltva",
"@accessDisabledErrorText": {
"description": "Used as an error message when account is blocked and user tries to perform some actions with the account (e.g. unlinking a credential).",
Expand Down Expand Up @@ -483,5 +483,10 @@
"@doneButtonLabel": {
"description": "Done button label",
"placeholders": {}
},
"invalidVerificationCodeErrorText": "The code you entered is invalid. Please try again.",
"@invalidVerificationCodeErrorText": {
"description": "Error text indicating that entered SMS code is invalid",
"placeholders": {}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"@@locale": "id",
"@@last_modified": "2023-09-01T13:12:06.512030",
"@@last_modified": "2023-09-06T14:33:29.113412",
"accessDisabledErrorText": "Akses ke akun ini telah dinonaktifkan untuk sementara waktu",
"@accessDisabledErrorText": {
"description": "Used as an error message when account is blocked and user tries to perform some actions with the account (e.g. unlinking a credential).",
Expand Down Expand Up @@ -483,5 +483,10 @@
"@doneButtonLabel": {
"description": "Done button label",
"placeholders": {}
},
"invalidVerificationCodeErrorText": "The code you entered is invalid. Please try again.",
"@invalidVerificationCodeErrorText": {
"description": "Error text indicating that entered SMS code is invalid",
"placeholders": {}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"@@locale": "it",
"@@last_modified": "2023-09-01T13:12:06.506104",
"@@last_modified": "2023-09-06T14:33:29.114337",
"accessDisabledErrorText": "L'accesso a questo account è stato temporaneamente disabilitato",
"@accessDisabledErrorText": {
"description": "Used as an error message when account is blocked and user tries to perform some actions with the account (e.g. unlinking a credential).",
Expand Down Expand Up @@ -483,5 +483,10 @@
"@doneButtonLabel": {
"description": "Done button label",
"placeholders": {}
},
"invalidVerificationCodeErrorText": "The code you entered is invalid. Please try again.",
"@invalidVerificationCodeErrorText": {
"description": "Error text indicating that entered SMS code is invalid",
"placeholders": {}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"@@locale": "ja",
"@@last_modified": "2023-09-01T13:12:06.524530",
"@@last_modified": "2023-09-06T14:33:29.124970",
"accessDisabledErrorText": "このアカウントへのアクセスが一時的に無効になっています",
"@accessDisabledErrorText": {
"description": "Used as an error message when account is blocked and user tries to perform some actions with the account (e.g. unlinking a credential).",
Expand Down Expand Up @@ -483,5 +483,10 @@
"@doneButtonLabel": {
"description": "Done button label",
"placeholders": {}
},
"invalidVerificationCodeErrorText": "The code you entered is invalid. Please try again.",
"@invalidVerificationCodeErrorText": {
"description": "Error text indicating that entered SMS code is invalid",
"placeholders": {}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"@@locale": "ko",
"@@last_modified": "2023-09-01T13:12:06.509561",
"@@last_modified": "2023-09-06T14:33:29.109589",
"accessDisabledErrorText": "이 계정의 액세스가 일시적으로 중지되었습니다.",
"@accessDisabledErrorText": {
"description": "Used as an error message when account is blocked and user tries to perform some actions with the account (e.g. unlinking a credential).",
Expand Down Expand Up @@ -483,5 +483,10 @@
"@doneButtonLabel": {
"description": "Done button label",
"placeholders": {}
},
"invalidVerificationCodeErrorText": "The code you entered is invalid. Please try again.",
"@invalidVerificationCodeErrorText": {
"description": "Error text indicating that entered SMS code is invalid",
"placeholders": {}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"@@locale": "nl",
"@@last_modified": "2023-09-01T13:12:06.518202",
"@@last_modified": "2023-09-06T14:33:29.123028",
"accessDisabledErrorText": "De toegang tot dit account is tijdelijk uitgezet",
"@accessDisabledErrorText": {
"description": "Used as an error message when account is blocked and user tries to perform some actions with the account (e.g. unlinking a credential).",
Expand Down Expand Up @@ -483,5 +483,10 @@
"@doneButtonLabel": {
"description": "Done button label",
"placeholders": {}
},
"invalidVerificationCodeErrorText": "The code you entered is invalid. Please try again.",
"@invalidVerificationCodeErrorText": {
"description": "Error text indicating that entered SMS code is invalid",
"placeholders": {}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"@@locale": "pl",
"@@last_modified": "2023-09-01T13:12:06.521431",
"@@last_modified": "2023-09-06T14:33:29.124271",
"accessDisabledErrorText": "Dostęp do tego konta został tymczasowo wyłączony",
"@accessDisabledErrorText": {
"description": "Used as an error message when account is blocked and user tries to perform some actions with the account (e.g. unlinking a credential).",
Expand Down Expand Up @@ -483,5 +483,10 @@
"@doneButtonLabel": {
"description": "Done button label",
"placeholders": {}
},
"invalidVerificationCodeErrorText": "The code you entered is invalid. Please try again.",
"@invalidVerificationCodeErrorText": {
"description": "Error text indicating that entered SMS code is invalid",
"placeholders": {}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"@@locale": "pt",
"@@last_modified": "2023-09-01T13:12:06.514305",
"@@last_modified": "2023-09-06T14:33:29.112429",
"accessDisabledErrorText": "O acesso a esta conta foi desativado temporariamente",
"@accessDisabledErrorText": {
"description": "Used as an error message when account is blocked and user tries to perform some actions with the account (e.g. unlinking a credential).",
Expand Down Expand Up @@ -483,5 +483,10 @@
"@doneButtonLabel": {
"description": "Done button label",
"placeholders": {}
},
"invalidVerificationCodeErrorText": "The code you entered is invalid. Please try again.",
"@invalidVerificationCodeErrorText": {
"description": "Error text indicating that entered SMS code is invalid",
"placeholders": {}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"@@locale": "ru",
"@@last_modified": "2023-09-01T13:12:06.525039",
"@@last_modified": "2023-09-06T14:33:29.126015",
"accessDisabledErrorText": "Доступ к этому аккаунту временно заблокирован.",
"@accessDisabledErrorText": {
"description": "Used as an error message when account is blocked and user tries to perform some actions with the account (e.g. unlinking a credential).",
Expand Down Expand Up @@ -483,5 +483,10 @@
"@doneButtonLabel": {
"description": "Done button label",
"placeholders": {}
},
"invalidVerificationCodeErrorText": "The code you entered is invalid. Please try again.",
"@invalidVerificationCodeErrorText": {
"description": "Error text indicating that entered SMS code is invalid",
"placeholders": {}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"@@locale": "th",
"@@last_modified": "2023-09-01T13:12:06.510999",
"@@last_modified": "2023-09-06T14:33:29.122025",
"accessDisabledErrorText": "มีการปิดใช้สิทธิ์เข้าถึงบัญชีนี้ชั่วคราว",
"@accessDisabledErrorText": {
"description": "Used as an error message when account is blocked and user tries to perform some actions with the account (e.g. unlinking a credential).",
Expand Down Expand Up @@ -483,5 +483,10 @@
"@doneButtonLabel": {
"description": "Done button label",
"placeholders": {}
},
"invalidVerificationCodeErrorText": "The code you entered is invalid. Please try again.",
"@invalidVerificationCodeErrorText": {
"description": "Error text indicating that entered SMS code is invalid",
"placeholders": {}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"@@locale": "tr",
"@@last_modified": "2023-09-01T13:12:06.517141",
"@@last_modified": "2023-09-06T14:33:29.120257",
"accessDisabledErrorText": "Bu hesaba erişim geçici olarak devre dışı bırakıldı",
"@accessDisabledErrorText": {
"description": "Used as an error message when account is blocked and user tries to perform some actions with the account (e.g. unlinking a credential).",
Expand Down Expand Up @@ -483,5 +483,10 @@
"@doneButtonLabel": {
"description": "Done button label",
"placeholders": {}
},
"invalidVerificationCodeErrorText": "The code you entered is invalid. Please try again.",
"@invalidVerificationCodeErrorText": {
"description": "Error text indicating that entered SMS code is invalid",
"placeholders": {}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"@@locale": "uk",
"@@last_modified": "2023-09-01T13:12:06.513079",
"@@last_modified": "2023-09-06T14:33:29.116420",
"accessDisabledErrorText": "Доступ до цього облікового запису тимчасово вимкнено",
"@accessDisabledErrorText": {
"description": "Used as an error message when account is blocked and user tries to perform some actions with the account (e.g. unlinking a credential).",
Expand Down Expand Up @@ -483,5 +483,10 @@
"@doneButtonLabel": {
"description": "Done button label",
"placeholders": {}
},
"invalidVerificationCodeErrorText": "The code you entered is invalid. Please try again.",
"@invalidVerificationCodeErrorText": {
"description": "Error text indicating that entered SMS code is invalid",
"placeholders": {}
}
}
Loading

0 comments on commit 8adc39b

Please sign in to comment.