Skip to content

Commit 7b77849

Browse files
committed
feat: add internationalization strings
- Added loading states strings - Added table headers strings - Added no data found strings
1 parent aec0347 commit 7b77849

File tree

4 files changed

+273
-1
lines changed

4 files changed

+273
-1
lines changed

lib/l10n/app_localizations.dart

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -979,6 +979,108 @@ abstract class AppLocalizations {
979979
/// In en, this message translates to:
980980
/// **'Adjust the visual characteristics of the Dashboard, including theme, accent colors, and typographic styles.'**
981981
String get appearanceSettingsDescription;
982+
983+
/// Headline for loading state of headlines
984+
///
985+
/// In en, this message translates to:
986+
/// **'Loading Headlines'**
987+
String get loadingHeadlines;
988+
989+
/// Subheadline for loading state
990+
///
991+
/// In en, this message translates to:
992+
/// **'Please wait...'**
993+
String get pleaseWait;
994+
995+
/// Message when no headlines are found
996+
///
997+
/// In en, this message translates to:
998+
/// **'No headlines found.'**
999+
String get noHeadlinesFound;
1000+
1001+
/// Column header for headline title
1002+
///
1003+
/// In en, this message translates to:
1004+
/// **'Title'**
1005+
String get headlineTitle;
1006+
1007+
/// Column header for published date
1008+
///
1009+
/// In en, this message translates to:
1010+
/// **'Published At'**
1011+
String get publishedAt;
1012+
1013+
/// Column header for actions
1014+
///
1015+
/// In en, this message translates to:
1016+
/// **'Actions'**
1017+
String get actions;
1018+
1019+
/// Fallback text for unknown values
1020+
///
1021+
/// In en, this message translates to:
1022+
/// **'Unknown'**
1023+
String get unknown;
1024+
1025+
/// Headline for loading state of categories
1026+
///
1027+
/// In en, this message translates to:
1028+
/// **'Loading Categories'**
1029+
String get loadingCategories;
1030+
1031+
/// Message when no categories are found
1032+
///
1033+
/// In en, this message translates to:
1034+
/// **'No categories found.'**
1035+
String get noCategoriesFound;
1036+
1037+
/// Column header for category name
1038+
///
1039+
/// In en, this message translates to:
1040+
/// **'Name'**
1041+
String get categoryName;
1042+
1043+
/// Column header for description
1044+
///
1045+
/// In en, this message translates to:
1046+
/// **'Description'**
1047+
String get description;
1048+
1049+
/// Short text for 'not available'
1050+
///
1051+
/// In en, this message translates to:
1052+
/// **'N/A'**
1053+
String get notAvailable;
1054+
1055+
/// Headline for loading state of sources
1056+
///
1057+
/// In en, this message translates to:
1058+
/// **'Loading Sources'**
1059+
String get loadingSources;
1060+
1061+
/// Message when no sources are found
1062+
///
1063+
/// In en, this message translates to:
1064+
/// **'No sources found.'**
1065+
String get noSourcesFound;
1066+
1067+
/// Column header for source name
1068+
///
1069+
/// In en, this message translates to:
1070+
/// **'Name'**
1071+
String get sourceName;
1072+
1073+
/// Column header for source type
1074+
///
1075+
/// In en, this message translates to:
1076+
/// **'Type'**
1077+
String get sourceType;
1078+
1079+
/// Column header for language
1080+
///
1081+
/// In en, this message translates to:
1082+
/// **'Language'**
1083+
String get language;
9821084
}
9831085

9841086
class _AppLocalizationsDelegate

lib/l10n/app_localizations_ar.dart

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,4 +515,55 @@ class AppLocalizationsAr extends AppLocalizations {
515515
@override
516516
String get appearanceSettingsDescription =>
517517
'اضبط الخصائص المرئية للوحة القيادة، بما في ذلك السمة وألوان التمييز والأنماط الطباعية.';
518+
519+
@override
520+
String get loadingHeadlines => 'جاري تحميل العناوين الرئيسية';
521+
522+
@override
523+
String get pleaseWait => 'الرجاء الانتظار...';
524+
525+
@override
526+
String get noHeadlinesFound => 'لم يتم العثور على عناوين رئيسية.';
527+
528+
@override
529+
String get headlineTitle => 'العنوان';
530+
531+
@override
532+
String get publishedAt => 'تاريخ النشر';
533+
534+
@override
535+
String get actions => 'الإجراءات';
536+
537+
@override
538+
String get unknown => 'غير معروف';
539+
540+
@override
541+
String get loadingCategories => 'جاري تحميل الفئات';
542+
543+
@override
544+
String get noCategoriesFound => 'لم يتم العثور على فئات.';
545+
546+
@override
547+
String get categoryName => 'الاسم';
548+
549+
@override
550+
String get description => 'الوصف';
551+
552+
@override
553+
String get notAvailable => 'غير متاح';
554+
555+
@override
556+
String get loadingSources => 'جاري تحميل المصادر';
557+
558+
@override
559+
String get noSourcesFound => 'لم يتم العثور على مصادر.';
560+
561+
@override
562+
String get sourceName => 'الاسم';
563+
564+
@override
565+
String get sourceType => 'النوع';
566+
567+
@override
568+
String get language => 'اللغة';
518569
}

lib/l10n/app_localizations_en.dart

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,4 +513,55 @@ class AppLocalizationsEn extends AppLocalizations {
513513
@override
514514
String get appearanceSettingsDescription =>
515515
'Adjust the visual characteristics of the Dashboard, including theme, accent colors, and typographic styles.';
516+
517+
@override
518+
String get loadingHeadlines => 'Loading Headlines';
519+
520+
@override
521+
String get pleaseWait => 'Please wait...';
522+
523+
@override
524+
String get noHeadlinesFound => 'No headlines found.';
525+
526+
@override
527+
String get headlineTitle => 'Title';
528+
529+
@override
530+
String get publishedAt => 'Published At';
531+
532+
@override
533+
String get actions => 'Actions';
534+
535+
@override
536+
String get unknown => 'Unknown';
537+
538+
@override
539+
String get loadingCategories => 'Loading Categories';
540+
541+
@override
542+
String get noCategoriesFound => 'No categories found.';
543+
544+
@override
545+
String get categoryName => 'Name';
546+
547+
@override
548+
String get description => 'Description';
549+
550+
@override
551+
String get notAvailable => 'N/A';
552+
553+
@override
554+
String get loadingSources => 'Loading Sources';
555+
556+
@override
557+
String get noSourcesFound => 'No sources found.';
558+
559+
@override
560+
String get sourceName => 'Name';
561+
562+
@override
563+
String get sourceType => 'Type';
564+
565+
@override
566+
String get language => 'Language';
516567
}

lib/l10n/arb/app_en.arb

Lines changed: 69 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,5 +608,73 @@
608608
"@settingsPageDescription": {
609609
"description": "Description for the main settings page"
610610
},
611-
"appearanceSettingsDescription": "Adjust the visual characteristics of the Dashboard, including theme, accent colors, and typographic styles."
611+
"appearanceSettingsDescription": "Adjust the visual characteristics of the Dashboard, including theme, accent colors, and typographic styles.",
612+
"loadingHeadlines": "Loading Headlines",
613+
"@loadingHeadlines": {
614+
"description": "Headline for loading state of headlines"
615+
},
616+
"pleaseWait": "Please wait...",
617+
"@pleaseWait": {
618+
"description": "Subheadline for loading state"
619+
},
620+
"noHeadlinesFound": "No headlines found.",
621+
"@noHeadlinesFound": {
622+
"description": "Message when no headlines are found"
623+
},
624+
"headlineTitle": "Title",
625+
"@headlineTitle": {
626+
"description": "Column header for headline title"
627+
},
628+
"publishedAt": "Published At",
629+
"@publishedAt": {
630+
"description": "Column header for published date"
631+
},
632+
"actions": "Actions",
633+
"@actions": {
634+
"description": "Column header for actions"
635+
},
636+
"unknown": "Unknown",
637+
"@unknown": {
638+
"description": "Fallback text for unknown values"
639+
},
640+
"loadingCategories": "Loading Categories",
641+
"@loadingCategories": {
642+
"description": "Headline for loading state of categories"
643+
},
644+
"noCategoriesFound": "No categories found.",
645+
"@noCategoriesFound": {
646+
"description": "Message when no categories are found"
647+
},
648+
"categoryName": "Name",
649+
"@categoryName": {
650+
"description": "Column header for category name"
651+
},
652+
"description": "Description",
653+
"@description": {
654+
"description": "Column header for description"
655+
},
656+
"notAvailable": "N/A",
657+
"@notAvailable": {
658+
"description": "Short text for 'not available'"
659+
},
660+
"loadingSources": "Loading Sources",
661+
"@loadingSources": {
662+
"description": "Headline for loading state of sources"
663+
},
664+
"noSourcesFound": "No sources found.",
665+
"@noSourcesFound": {
666+
"description": "Message when no sources are found"
667+
},
668+
"sourceName": "Name",
669+
"@sourceName": {
670+
"description": "Column header for source name"
671+
},
672+
"sourceType": "Type",
673+
"@sourceType": {
674+
"description": "Column header for source type"
675+
},
676+
"language": "Language",
677+
"@language": {
678+
"description": "Column header for language"
679+
}
612680
}

0 commit comments

Comments
 (0)