Skip to content

Commit e8a85a9

Browse files
committed
feat(l10n): add localization strings for content limit bottom sheets
- Add Arabic and English translations for bottom sheet content when users hit content limits - Include titles, body text, and button labels for anonymous, standard, and premium user scenarios
1 parent 914f333 commit e8a85a9

File tree

5 files changed

+186
-0
lines changed

5 files changed

+186
-0
lines changed

lib/l10n/app_localizations.dart

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1723,6 +1723,60 @@ abstract class AppLocalizations {
17231723
/// In en, this message translates to:
17241724
/// **'Required version: {version}'**
17251725
String latestRequiredVersionLabel(String version);
1726+
1727+
/// Title for the bottom sheet when an anonymous user hits a content limit.
1728+
///
1729+
/// In en, this message translates to:
1730+
/// **'Sign in to Save More'**
1731+
String get anonymousLimitTitle;
1732+
1733+
/// Body text for the bottom sheet when an anonymous user hits a content limit.
1734+
///
1735+
/// In en, this message translates to:
1736+
/// **'Create a free account to save and follow unlimited topics, sources, and countries.'**
1737+
String get anonymousLimitBody;
1738+
1739+
/// Button text for the bottom sheet when an anonymous user hits a content limit.
1740+
///
1741+
/// In en, this message translates to:
1742+
/// **'Sign In & Link Account'**
1743+
String get anonymousLimitButton;
1744+
1745+
/// Title for the bottom sheet when a standard user hits a content limit.
1746+
///
1747+
/// In en, this message translates to:
1748+
/// **'Unlock Unlimited Access'**
1749+
String get standardLimitTitle;
1750+
1751+
/// Body text for the bottom sheet when a standard user hits a content limit.
1752+
///
1753+
/// In en, this message translates to:
1754+
/// **'You\'ve reached your limit for the free plan. Upgrade to save and follow more.'**
1755+
String get standardLimitBody;
1756+
1757+
/// Button text for the bottom sheet when a standard user hits a content limit.
1758+
///
1759+
/// In en, this message translates to:
1760+
/// **'Upgrade to Premium'**
1761+
String get standardLimitButton;
1762+
1763+
/// Title for the bottom sheet when a premium user hits a content limit.
1764+
///
1765+
/// In en, this message translates to:
1766+
/// **'You\'ve Reached the Limit'**
1767+
String get premiumLimitTitle;
1768+
1769+
/// Body text for the bottom sheet when a premium user hits a content limit.
1770+
///
1771+
/// In en, this message translates to:
1772+
/// **'To add new items, please review and manage your existing saved and followed content.'**
1773+
String get premiumLimitBody;
1774+
1775+
/// Button text for the bottom sheet when a premium user hits a content limit.
1776+
///
1777+
/// In en, this message translates to:
1778+
/// **'Manage My Content'**
1779+
String get premiumLimitButton;
17261780
}
17271781

17281782
class _AppLocalizationsDelegate

lib/l10n/app_localizations_ar.dart

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -904,4 +904,34 @@ class AppLocalizationsAr extends AppLocalizations {
904904
String latestRequiredVersionLabel(String version) {
905905
return 'الإصدار المطلوب: $version';
906906
}
907+
908+
@override
909+
String get anonymousLimitTitle => 'سجّل الدخول لحفظ المزيد';
910+
911+
@override
912+
String get anonymousLimitBody =>
913+
'أنشئ حسابًا مجانيًا لحفظ ومتابعة عدد غير محدود من المواضيع والمصادر والدول.';
914+
915+
@override
916+
String get anonymousLimitButton => 'تسجيل الدخول وربط الحساب';
917+
918+
@override
919+
String get standardLimitTitle => 'افتح الوصول غير المحدود';
920+
921+
@override
922+
String get standardLimitBody =>
923+
'لقد وصلت إلى الحد الأقصى للباقة المجانية. قم بالترقية لحفظ ومتابعة المزيد.';
924+
925+
@override
926+
String get standardLimitButton => 'الترقية إلى بريميوم';
927+
928+
@override
929+
String get premiumLimitTitle => 'لقد وصلت إلى الحد الأقصى';
930+
931+
@override
932+
String get premiumLimitBody =>
933+
'لإضافة عناصر جديدة، يرجى مراجعة وإدارة المحتوى المحفوظ والمتابع الحالي.';
934+
935+
@override
936+
String get premiumLimitButton => 'إدارة المحتوى الخاص بي';
907937
}

lib/l10n/app_localizations_en.dart

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -905,4 +905,34 @@ class AppLocalizationsEn extends AppLocalizations {
905905
String latestRequiredVersionLabel(String version) {
906906
return 'Required version: $version';
907907
}
908+
909+
@override
910+
String get anonymousLimitTitle => 'Sign in to Save More';
911+
912+
@override
913+
String get anonymousLimitBody =>
914+
'Create a free account to save and follow unlimited topics, sources, and countries.';
915+
916+
@override
917+
String get anonymousLimitButton => 'Sign In & Link Account';
918+
919+
@override
920+
String get standardLimitTitle => 'Unlock Unlimited Access';
921+
922+
@override
923+
String get standardLimitBody =>
924+
'You\'ve reached your limit for the free plan. Upgrade to save and follow more.';
925+
926+
@override
927+
String get standardLimitButton => 'Upgrade to Premium';
928+
929+
@override
930+
String get premiumLimitTitle => 'You\'ve Reached the Limit';
931+
932+
@override
933+
String get premiumLimitBody =>
934+
'To add new items, please review and manage your existing saved and followed content.';
935+
936+
@override
937+
String get premiumLimitButton => 'Manage My Content';
908938
}

lib/l10n/arb/app_ar.arb

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,5 +1189,41 @@
11891189
"example": "1.1.0"
11901190
}
11911191
}
1192+
},
1193+
"anonymousLimitTitle": "سجّل الدخول لحفظ المزيد",
1194+
"@anonymousLimitTitle": {
1195+
"description": "Title for the bottom sheet when an anonymous user hits a content limit."
1196+
},
1197+
"anonymousLimitBody": "أنشئ حسابًا مجانيًا لحفظ ومتابعة عدد غير محدود من المواضيع والمصادر والدول.",
1198+
"@anonymousLimitBody": {
1199+
"description": "Body text for the bottom sheet when an anonymous user hits a content limit."
1200+
},
1201+
"anonymousLimitButton": "تسجيل الدخول وربط الحساب",
1202+
"@anonymousLimitButton": {
1203+
"description": "Button text for the bottom sheet when an anonymous user hits a content limit."
1204+
},
1205+
"standardLimitTitle": "افتح الوصول غير المحدود",
1206+
"@standardLimitTitle": {
1207+
"description": "Title for the bottom sheet when a standard user hits a content limit."
1208+
},
1209+
"standardLimitBody": "لقد وصلت إلى الحد الأقصى للباقة المجانية. قم بالترقية لحفظ ومتابعة المزيد.",
1210+
"@standardLimitBody": {
1211+
"description": "Body text for the bottom sheet when a standard user hits a content limit."
1212+
},
1213+
"standardLimitButton": "الترقية إلى بريميوم",
1214+
"@standardLimitButton": {
1215+
"description": "Button text for the bottom sheet when a standard user hits a content limit."
1216+
},
1217+
"premiumLimitTitle": "لقد وصلت إلى الحد الأقصى",
1218+
"@premiumLimitTitle": {
1219+
"description": "Title for the bottom sheet when a premium user hits a content limit."
1220+
},
1221+
"premiumLimitBody": "لإضافة عناصر جديدة، يرجى مراجعة وإدارة المحتوى المحفوظ والمتابع الحالي.",
1222+
"@premiumLimitBody": {
1223+
"description": "Body text for the bottom sheet when a premium user hits a content limit."
1224+
},
1225+
"premiumLimitButton": "إدارة المحتوى الخاص بي",
1226+
"@premiumLimitButton": {
1227+
"description": "Button text for the bottom sheet when a premium user hits a content limit."
11921228
}
11931229
}

lib/l10n/arb/app_en.arb

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,5 +1189,41 @@
11891189
"example": "1.1.0"
11901190
}
11911191
}
1192+
},
1193+
"anonymousLimitTitle": "Sign in to Save More",
1194+
"@anonymousLimitTitle": {
1195+
"description": "Title for the bottom sheet when an anonymous user hits a content limit."
1196+
},
1197+
"anonymousLimitBody": "Create a free account to save and follow unlimited topics, sources, and countries.",
1198+
"@anonymousLimitBody": {
1199+
"description": "Body text for the bottom sheet when an anonymous user hits a content limit."
1200+
},
1201+
"anonymousLimitButton": "Sign In & Link Account",
1202+
"@anonymousLimitButton": {
1203+
"description": "Button text for the bottom sheet when an anonymous user hits a content limit."
1204+
},
1205+
"standardLimitTitle": "Unlock Unlimited Access",
1206+
"@standardLimitTitle": {
1207+
"description": "Title for the bottom sheet when a standard user hits a content limit."
1208+
},
1209+
"standardLimitBody": "You've reached your limit for the free plan. Upgrade to save and follow more.",
1210+
"@standardLimitBody": {
1211+
"description": "Body text for the bottom sheet when a standard user hits a content limit."
1212+
},
1213+
"standardLimitButton": "Upgrade to Premium",
1214+
"@standardLimitButton": {
1215+
"description": "Button text for the bottom sheet when a standard user hits a content limit."
1216+
},
1217+
"premiumLimitTitle": "You've Reached the Limit",
1218+
"@premiumLimitTitle": {
1219+
"description": "Title for the bottom sheet when a premium user hits a content limit."
1220+
},
1221+
"premiumLimitBody": "To add new items, please review and manage your existing saved and followed content.",
1222+
"@premiumLimitBody": {
1223+
"description": "Body text for the bottom sheet when a premium user hits a content limit."
1224+
},
1225+
"premiumLimitButton": "Manage My Content",
1226+
"@premiumLimitButton": {
1227+
"description": "Button text for the bottom sheet when a premium user hits a content limit."
11921228
}
11931229
}

0 commit comments

Comments
 (0)