Skip to content

Commit 526c622

Browse files
committed
feat: add create headline localization keys
- Added createHeadline key - Added success message key - Added loading data key
1 parent 7afb88f commit 526c622

File tree

5 files changed

+62
-0
lines changed

5 files changed

+62
-0
lines changed

lib/l10n/app_localizations.dart

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1243,6 +1243,24 @@ abstract class AppLocalizations {
12431243
/// In en, this message translates to:
12441244
/// **'Cannot update: Original headline data not loaded.'**
12451245
String get cannotUpdateHeadlineError;
1246+
1247+
/// Title for the Create Headline page
1248+
///
1249+
/// In en, this message translates to:
1250+
/// **'Create Headline'**
1251+
String get createHeadline;
1252+
1253+
/// Message displayed when a headline is created successfully
1254+
///
1255+
/// In en, this message translates to:
1256+
/// **'Headline created successfully.'**
1257+
String get headlineCreatedSuccessfully;
1258+
1259+
/// Generic message displayed while loading data for a form
1260+
///
1261+
/// In en, this message translates to:
1262+
/// **'Loading data...'**
1263+
String get loadingData;
12461264
}
12471265

12481266
class _AppLocalizationsDelegate

lib/l10n/app_localizations_ar.dart

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,4 +650,13 @@ class AppLocalizationsAr extends AppLocalizations {
650650
@override
651651
String get cannotUpdateHeadlineError =>
652652
'لا يمكن التحديث: لم يتم تحميل بيانات العنوان الأصلية.';
653+
654+
@override
655+
String get createHeadline => 'إنشاء عنوان';
656+
657+
@override
658+
String get headlineCreatedSuccessfully => 'تم إنشاء العنوان بنجاح.';
659+
660+
@override
661+
String get loadingData => 'جاري تحميل البيانات...';
653662
}

lib/l10n/app_localizations_en.dart

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,4 +648,13 @@ class AppLocalizationsEn extends AppLocalizations {
648648
@override
649649
String get cannotUpdateHeadlineError =>
650650
'Cannot update: Original headline data not loaded.';
651+
652+
@override
653+
String get createHeadline => 'Create Headline';
654+
655+
@override
656+
String get headlineCreatedSuccessfully => 'Headline created successfully.';
657+
658+
@override
659+
String get loadingData => 'Loading data...';
651660
}

lib/l10n/arb/app_ar.arb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -788,4 +788,17 @@
788788
"@cannotUpdateHeadlineError": {
789789
"description": "رسالة خطأ عند فشل تحديث العنوان بسبب عدم تحميل البيانات الأصلية"
790790
}
791+
,
792+
"createHeadline": "إنشاء عنوان",
793+
"@createHeadline": {
794+
"description": "عنوان صفحة إنشاء عنوان"
795+
},
796+
"headlineCreatedSuccessfully": "تم إنشاء العنوان بنجاح.",
797+
"@headlineCreatedSuccessfully": {
798+
"description": "رسالة تُعرض عند إنشاء العنوان بنجاح"
799+
},
800+
"loadingData": "جاري تحميل البيانات...",
801+
"@loadingData": {
802+
"description": "رسالة عامة تُعرض أثناء تحميل البيانات لنموذج"
803+
}
791804
}

lib/l10n/arb/app_en.arb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -790,4 +790,17 @@
790790
"@cannotUpdateHeadlineError": {
791791
"description": "Error message when updating a headline fails because the original data wasn't loaded"
792792
}
793+
,
794+
"createHeadline": "Create Headline",
795+
"@createHeadline": {
796+
"description": "Title for the Create Headline page"
797+
},
798+
"headlineCreatedSuccessfully": "Headline created successfully.",
799+
"@headlineCreatedSuccessfully": {
800+
"description": "Message displayed when a headline is created successfully"
801+
},
802+
"loadingData": "Loading data...",
803+
"@loadingData": {
804+
"description": "Generic message displayed while loading data for a form"
805+
}
793806
}

0 commit comments

Comments
 (0)