Skip to content

Commit a8da82e

Browse files
committed
feat(l10n): add demo email suggestion message in Arabic and English
- Add new localization key 'demoEmailSuggestionMessage' for demo mode email suggestion - Implement message in both Arabic and English localization files - Maintain existing translations and add appropriate descriptions for new messages
1 parent 04004b1 commit a8da82e

File tree

5 files changed

+38
-4
lines changed

5 files changed

+38
-4
lines changed

lib/l10n/app_localizations.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1550,6 +1550,12 @@ abstract class AppLocalizations {
15501550
/// **'Demo Mode: Use code {code}'**
15511551
String demoVerificationCodeMessage(String code);
15521552

1553+
/// Message shown in demo mode to suggest an email for sign-in
1554+
///
1555+
/// In en, this message translates to:
1556+
/// **'Demo Mode: Use email {email}'**
1557+
String demoEmailSuggestionMessage(String email);
1558+
15531559
/// Label for Headline content type
15541560
///
15551561
/// 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
@@ -804,6 +804,11 @@ class AppLocalizationsAr extends AppLocalizations {
804804
return 'وضع العرض التوضيحي: استخدم الرمز $code';
805805
}
806806

807+
@override
808+
String demoEmailSuggestionMessage(String email) {
809+
return 'وضع العرض التوضيحي: استخدم البريد الإلكتروني $email';
810+
}
811+
807812
@override
808813
String get contentTypeHeadline => 'العناوين الرئيسية';
809814

lib/l10n/app_localizations_en.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -807,6 +807,11 @@ class AppLocalizationsEn extends AppLocalizations {
807807
return 'Demo Mode: Use code $code';
808808
}
809809

810+
@override
811+
String demoEmailSuggestionMessage(String email) {
812+
return 'Demo Mode: Use email $email';
813+
}
814+
810815
@override
811816
String get contentTypeHeadline => 'Headlines';
812817

lib/l10n/arb/app_ar.arb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,6 +1046,16 @@
10461046
}
10471047
}
10481048
},
1049+
"demoEmailSuggestionMessage": "وضع العرض التوضيحي: استخدم البريد الإلكتروني {email}",
1050+
"@demoEmailSuggestionMessage": {
1051+
"description": "رسالة تظهر في وضع العرض التوضيحي لاقتراح بريد إلكتروني لتسجيل الدخول",
1052+
"placeholders": {
1053+
"email": {
1054+
"type": "String",
1055+
"example": "demo@example.com"
1056+
}
1057+
}
1058+
},
10491059
"contentTypeHeadline": "العناوين الرئيسية",
10501060
"@contentTypeHeadline": {
10511061
"description": "Label for Headline content type"

lib/l10n/arb/app_en.arb

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,6 @@
602602
"@headlinesFeedFilterNoSourcesMatch": {
603603
"description": "Message shown when no sources match the selected filters"
604604
},
605-
606605
"searchModelTypeHeadline": "Headlines",
607606
"@searchModelTypeHeadline": {
608607
"description": "Dropdown display name for Headline search type"
@@ -639,7 +638,6 @@
639638
"@searchHintTextCountry": {
640639
"description": "Hint text for searching countries"
641640
},
642-
643641
"searchPageInitialHeadline": "Start Your Search",
644642
"@searchPageInitialHeadline": {
645643
"description": "Generic headline for the initial state of the search page"
@@ -1038,7 +1036,7 @@
10381036
"@followedCategoriesEmptySubheadline": {
10391037
"description": "Subheadline for empty state on followed categories page"
10401038
},
1041-
"demoVerificationCodeMessage": "Demo Mode: Use code {code}",
1039+
"demoVerificationCodeMessage": "Demo Mode: Use code {code}",
10421040
"@demoVerificationCodeMessage": {
10431041
"description": "Message shown in demo mode to provide the verification code",
10441042
"placeholders": {
@@ -1048,6 +1046,16 @@
10481046
}
10491047
}
10501048
},
1049+
"demoEmailSuggestionMessage": "Demo Mode: Use email {email}",
1050+
"@demoEmailSuggestionMessage": {
1051+
"description": "Message shown in demo mode to suggest an email for sign-in",
1052+
"placeholders": {
1053+
"email": {
1054+
"type": "String",
1055+
"example": "demo@example.com"
1056+
}
1057+
}
1058+
},
10511059
"contentTypeHeadline": "Headlines",
10521060
"@contentTypeHeadline": {
10531061
"description": "Label for Headline content type"
@@ -1117,4 +1125,4 @@
11171125
"@unfollowButtonText": {
11181126
"description": "Text for the unfollow button on suggestion items"
11191127
}
1120-
}
1128+
}

0 commit comments

Comments
 (0)