Skip to content

Commit 199b79e

Browse files
committed
feat(l10n): add searchingFor string for Arabic and English
- Add new string for loading state on search page - Include string in both Arabic (app_ar.arb) and English (app_en.arb) localization files - Use placeholder for content type
1 parent c247b5b commit 199b79e

File tree

5 files changed

+34
-0
lines changed

5 files changed

+34
-0
lines changed

lib/l10n/app_localizations.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,6 +1519,12 @@ abstract class AppLocalizations {
15191519
/// In en, this message translates to:
15201520
/// **'Countries'**
15211521
String get contentTypeCountry;
1522+
1523+
/// Subheadline for loading state on search page
1524+
///
1525+
/// In en, this message translates to:
1526+
/// **'Searching for {contentType}...'**
1527+
String searchingFor(String contentType);
15221528
}
15231529

15241530
class _AppLocalizationsDelegate

lib/l10n/app_localizations_ar.dart

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

786786
@override
787787
String get contentTypeCountry => 'الدول';
788+
789+
@override
790+
String searchingFor(String contentType) {
791+
return 'جار البحث عن $contentType...';
792+
}
788793
}

lib/l10n/app_localizations_en.dart

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

786786
@override
787787
String get contentTypeCountry => 'Countries';
788+
789+
@override
790+
String searchingFor(String contentType) {
791+
return 'Searching for $contentType...';
792+
}
788793
}

lib/l10n/arb/app_ar.arb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,5 +1005,14 @@
10051005
"contentTypeCountry": "الدول",
10061006
"@contentTypeCountry": {
10071007
"description": "Label for Country content type"
1008+
},
1009+
"searchingFor": "جار البحث عن {contentType}...",
1010+
"@searchingFor": {
1011+
"description": "Subheadline for loading state on search page",
1012+
"placeholders": {
1013+
"contentType": {
1014+
"type": "String"
1015+
}
1016+
}
10081017
}
10091018
}

lib/l10n/arb/app_en.arb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,5 +1021,14 @@
10211021
"contentTypeCountry": "Countries",
10221022
"@contentTypeCountry": {
10231023
"description": "Label for Country content type"
1024+
},
1025+
"searchingFor": "Searching for {contentType}...",
1026+
"@searchingFor": {
1027+
"description": "Subheadline for loading state on search page",
1028+
"placeholders": {
1029+
"contentType": {
1030+
"type": "String"
1031+
}
1032+
}
10241033
}
10251034
}

0 commit comments

Comments
 (0)