Skip to content

Commit 1f86a0d

Browse files
committed
feat: Add localization for edit headline feature
- Added new strings to localizations - Supports 'Edit Headline' screen - Includes success/error messages
1 parent 254c825 commit 1f86a0d

File tree

3 files changed

+62
-0
lines changed

3 files changed

+62
-0
lines changed

lib/l10n/app_localizations.dart

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,6 +1213,36 @@ abstract class AppLocalizations {
12131213
/// In en, this message translates to:
12141214
/// **'Other'**
12151215
String get sourceTypeOther;
1216+
1217+
/// Title for the Edit Headline page
1218+
///
1219+
/// In en, this message translates to:
1220+
/// **'Edit Headline'**
1221+
String get editHeadline;
1222+
1223+
/// Message displayed when a headline is updated successfully
1224+
///
1225+
/// In en, this message translates to:
1226+
/// **'Headline updated successfully.'**
1227+
String get headlineUpdatedSuccessfully;
1228+
1229+
/// Message displayed while loading headline data
1230+
///
1231+
/// In en, this message translates to:
1232+
/// **'Loading Headline...'**
1233+
String get loadingHeadline;
1234+
1235+
/// Label for an image URL input field
1236+
///
1237+
/// In en, this message translates to:
1238+
/// **'Image URL'**
1239+
String get imageUrl;
1240+
1241+
/// Error message when updating a headline fails because the original data wasn't loaded
1242+
///
1243+
/// In en, this message translates to:
1244+
/// **'Cannot update: Original headline data not loaded.'**
1245+
String get cannotUpdateHeadlineError;
12161246
}
12171247

12181248
class _AppLocalizationsDelegate

lib/l10n/app_localizations_ar.dart

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,4 +634,20 @@ class AppLocalizationsAr extends AppLocalizations {
634634

635635
@override
636636
String get sourceTypeOther => 'أخرى';
637+
638+
@override
639+
String get editHeadline => 'تعديل العنوان';
640+
641+
@override
642+
String get headlineUpdatedSuccessfully => 'تم تحديث العنوان بنجاح.';
643+
644+
@override
645+
String get loadingHeadline => 'جاري تحميل العنوان...';
646+
647+
@override
648+
String get imageUrl => 'رابط الصورة';
649+
650+
@override
651+
String get cannotUpdateHeadlineError =>
652+
'لا يمكن التحديث: لم يتم تحميل بيانات العنوان الأصلية.';
637653
}

lib/l10n/app_localizations_en.dart

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,4 +632,20 @@ class AppLocalizationsEn extends AppLocalizations {
632632

633633
@override
634634
String get sourceTypeOther => 'Other';
635+
636+
@override
637+
String get editHeadline => 'Edit Headline';
638+
639+
@override
640+
String get headlineUpdatedSuccessfully => 'Headline updated successfully.';
641+
642+
@override
643+
String get loadingHeadline => 'Loading Headline...';
644+
645+
@override
646+
String get imageUrl => 'Image URL';
647+
648+
@override
649+
String get cannotUpdateHeadlineError =>
650+
'Cannot update: Original headline data not loaded.';
635651
}

0 commit comments

Comments
 (0)