Skip to content

Commit 9995880

Browse files
committed
feat(l10n): add demo email and code hints for localization
1 parent 2f85ee2 commit 9995880

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

lib/l10n/app_localizations.dart

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1417,6 +1417,18 @@ abstract class AppLocalizations {
14171417
/// In en, this message translates to:
14181418
/// **'Disabled'**
14191419
String get appStatusDisabled;
1420+
1421+
/// Hint text shown in demo environment for the login email.
1422+
///
1423+
/// In en, this message translates to:
1424+
/// **'For demo, use email: {email}'**
1425+
String demoEmailHint(String email);
1426+
1427+
/// Hint text shown in demo environment for the verification code.
1428+
///
1429+
/// In en, this message translates to:
1430+
/// **'For demo, use code: {code}'**
1431+
String demoCodeHint(String code);
14201432
}
14211433

14221434
class _AppLocalizationsDelegate

lib/l10n/app_localizations_ar.dart

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -737,4 +737,14 @@ class AppLocalizationsAr extends AppLocalizations {
737737

738738
@override
739739
String get appStatusDisabled => 'معطل';
740+
741+
@override
742+
String demoEmailHint(String email) {
743+
return 'للعرض التجريبي، استخدم البريد الإلكتروني: $email';
744+
}
745+
746+
@override
747+
String demoCodeHint(String code) {
748+
return 'للعرض التجريبي، استخدم الرمز: $code';
749+
}
740750
}

lib/l10n/app_localizations_en.dart

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -735,4 +735,14 @@ class AppLocalizationsEn extends AppLocalizations {
735735

736736
@override
737737
String get appStatusDisabled => 'Disabled';
738+
739+
@override
740+
String demoEmailHint(String email) {
741+
return 'For demo, use email: $email';
742+
}
743+
744+
@override
745+
String demoCodeHint(String code) {
746+
return 'For demo, use code: $code';
747+
}
738748
}

0 commit comments

Comments
 (0)