Skip to content

Commit 0ecbf73

Browse files
committed
feat(localization): add translations for in-article ads settings
- Add Arabic and English translations for new checkbox label related to in-article ads - Introduce placeholder for user role in both Arabic and English versions
1 parent f0893b0 commit 0ecbf73

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
@@ -2587,6 +2587,12 @@ abstract class AppLocalizations {
25872587
/// In en, this message translates to:
25882588
/// **'Publish Source'**
25892589
String get publishSource;
2590+
2591+
/// Label for a checkbox to enable/disable in-article ads for a specific user role.
2592+
///
2593+
/// In en, this message translates to:
2594+
/// **'Enable In-Article Ads for {role}'**
2595+
String enableInArticleAdsForRoleLabel(String role);
25902596
}
25912597

25922598
class _AppLocalizationsDelegate

lib/l10n/app_localizations_ar.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,4 +1382,9 @@ class AppLocalizationsAr extends AppLocalizations {
13821382

13831383
@override
13841384
String get publishSource => 'نشر المصدر';
1385+
1386+
@override
1387+
String enableInArticleAdsForRoleLabel(String role) {
1388+
return 'تمكين الإعلانات داخل المقال لـ $role';
1389+
}
13851390
}

lib/l10n/app_localizations_en.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1387,4 +1387,9 @@ class AppLocalizationsEn extends AppLocalizations {
13871387

13881388
@override
13891389
String get publishSource => 'Publish Source';
1390+
1391+
@override
1392+
String enableInArticleAdsForRoleLabel(String role) {
1393+
return 'Enable In-Article Ads for $role';
1394+
}
13901395
}

lib/l10n/arb/app_ar.arb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1745,5 +1745,15 @@
17451745
"publishSource": "نشر المصدر",
17461746
"@publishSource": {
17471747
"description": "تلميح زر نشر المصدر."
1748+
},
1749+
"enableInArticleAdsForRoleLabel": "تمكين الإعلانات داخل المقال لـ {role}",
1750+
"@enableInArticleAdsForRoleLabel": {
1751+
"description": "Label for a checkbox to enable/disable in-article ads for a specific user role.",
1752+
"placeholders": {
1753+
"role": {
1754+
"type": "String",
1755+
"example": "مستخدم ضيف"
1756+
}
1757+
}
17481758
}
17491759
}

lib/l10n/arb/app_en.arb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1741,5 +1741,15 @@
17411741
"publishSource": "Publish Source",
17421742
"@publishSource": {
17431743
"description": "Tooltip for the publish source button."
1744+
},
1745+
"enableInArticleAdsForRoleLabel": "Enable In-Article Ads for {role}",
1746+
"@enableInArticleAdsForRoleLabel": {
1747+
"description": "Label for a checkbox to enable/disable in-article ads for a specific user role.",
1748+
"placeholders": {
1749+
"role": {
1750+
"type": "String",
1751+
"example": "Guest User"
1752+
}
1753+
}
17441754
}
17451755
}

0 commit comments

Comments
 (0)