Skip to content

Commit eb08970

Browse files
committed
feat(localization): add resend verification code button text
- Add Arabic and English translations for the resend verification code button text during cooldown period - Include placeholders for seconds countdown in both languages
1 parent 678c6ab commit eb08970

File tree

5 files changed

+36
-0
lines changed

5 files changed

+36
-0
lines changed

lib/l10n/app_localizations.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1412,6 +1412,12 @@ abstract class AppLocalizations {
14121412
/// **'Send Code'**
14131413
String get requestCodeSendCodeButton;
14141414

1415+
/// Button text shown during the cooldown period for resending a code
1416+
///
1417+
/// In en, this message translates to:
1418+
/// **'Resend in {seconds}s'**
1419+
String requestCodeResendButtonCooldown(int seconds);
1420+
14151421
/// Title for category entity type
14161422
///
14171423
/// In en, this message translates to:

lib/l10n/app_localizations_ar.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,11 @@ class AppLocalizationsAr extends AppLocalizations {
725725
@override
726726
String get requestCodeSendCodeButton => 'إرسال الرمز';
727727

728+
@override
729+
String requestCodeResendButtonCooldown(int seconds) {
730+
return 'إعادة الإرسال في $seconds ثانية';
731+
}
732+
728733
@override
729734
String get entityDetailsCategoryTitle => 'الفئة';
730735

lib/l10n/app_localizations_en.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,11 @@ class AppLocalizationsEn extends AppLocalizations {
725725
@override
726726
String get requestCodeSendCodeButton => 'Send Code';
727727

728+
@override
729+
String requestCodeResendButtonCooldown(int seconds) {
730+
return 'Resend in ${seconds}s';
731+
}
732+
728733
@override
729734
String get entityDetailsCategoryTitle => 'Category';
730735

lib/l10n/arb/app_ar.arb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -942,6 +942,16 @@
942942
"@requestCodeSendCodeButton": {
943943
"description": "Button text to send the verification code"
944944
},
945+
"requestCodeResendButtonCooldown": "إعادة الإرسال في {seconds} ثانية",
946+
"@requestCodeResendButtonCooldown": {
947+
"description": "Button text shown during the cooldown period for resending a code",
948+
"placeholders": {
949+
"seconds": {
950+
"type": "int",
951+
"example": "60"
952+
}
953+
}
954+
},
945955
"entityDetailsCategoryTitle": "الفئة",
946956
"@entityDetailsCategoryTitle": {
947957
"description": "Title for category entity type"

lib/l10n/arb/app_en.arb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -944,6 +944,16 @@
944944
"@requestCodeSendCodeButton": {
945945
"description": "Button text to send the verification code"
946946
},
947+
"requestCodeResendButtonCooldown": "Resend in {seconds}s",
948+
"@requestCodeResendButtonCooldown": {
949+
"description": "Button text shown during the cooldown period for resending a code",
950+
"placeholders": {
951+
"seconds": {
952+
"type": "int",
953+
"example": "60"
954+
}
955+
}
956+
},
947957
"entityDetailsCategoryTitle": "Category",
948958
"@entityDetailsCategoryTitle": {
949959
"description": "Title for category entity type"

0 commit comments

Comments
 (0)