Skip to content

Commit 1ec9079

Browse files
committed
feat(localization): add Arabic and English translations for filter UI elements
- Add Arabic translations for "resetFiltersButtonText" and "noResultsWithCurrentFilters" in app_ar.arb - Add English translations for "resetFiltersButtonText" and "noResultsWithCurrentFilters" in app_en.arb - Improve hint text for selecting headquarters in both language files
1 parent 2b0535e commit 1ec9079

File tree

5 files changed

+44
-2
lines changed

5 files changed

+44
-2
lines changed

lib/l10n/app_localizations.dart

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2701,6 +2701,18 @@ abstract class AppLocalizations {
27012701
/// In en, this message translates to:
27022702
/// **'Select Headquarters'**
27032703
String get selectHeadquarters;
2704+
2705+
/// Text for the button to reset filters to their default state.
2706+
///
2707+
/// In en, this message translates to:
2708+
/// **'Reset Filters'**
2709+
String get resetFiltersButtonText;
2710+
2711+
/// Message displayed when no results are found due to active filters, prompting the user to reset them.
2712+
///
2713+
/// In en, this message translates to:
2714+
/// **'No results found with current filters. Try resetting them.'**
2715+
String get noResultsWithCurrentFilters;
27042716
}
27052717

27062718
class _AppLocalizationsDelegate

lib/l10n/app_localizations_ar.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1441,4 +1441,11 @@ class AppLocalizationsAr extends AppLocalizations {
14411441

14421442
@override
14431443
String get selectHeadquarters => 'اختر المقر الرئيسي';
1444+
1445+
@override
1446+
String get resetFiltersButtonText => 'إعادة تعيين الفلاتر';
1447+
1448+
@override
1449+
String get noResultsWithCurrentFilters =>
1450+
'لم يتم العثور على نتائج باستخدام الفلاتر الحالية. حاول إعادة تعيينها.';
14441451
}

lib/l10n/app_localizations_en.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1446,4 +1446,11 @@ class AppLocalizationsEn extends AppLocalizations {
14461446

14471447
@override
14481448
String get selectHeadquarters => 'Select Headquarters';
1449+
1450+
@override
1451+
String get resetFiltersButtonText => 'Reset Filters';
1452+
1453+
@override
1454+
String get noResultsWithCurrentFilters =>
1455+
'No results found with current filters. Try resetting them.';
14491456
}

lib/l10n/arb/app_ar.arb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1827,5 +1827,13 @@
18271827
"edit": "تعديل",
18281828
"@edit": {
18291829
"description": "Tooltip for the edit button"
1830+
},
1831+
"resetFiltersButtonText": "إعادة تعيين الفلاتر",
1832+
"@resetFiltersButtonText": {
1833+
"description": "Text for the button to reset filters to their default state."
1834+
},
1835+
"noResultsWithCurrentFilters": "لم يتم العثور على نتائج باستخدام الفلاتر الحالية. حاول إعادة تعيينها.",
1836+
"@noResultsWithCurrentFilters": {
1837+
"description": "Message displayed when no results are found due to active filters, prompting the user to reset them."
18301838
}
1831-
}
1839+
}

lib/l10n/arb/app_en.arb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1823,5 +1823,13 @@
18231823
"selectHeadquarters": "Select Headquarters",
18241824
"@selectHeadquarters": {
18251825
"description": "Hint text for selecting headquarters in a filter dialog."
1826+
},
1827+
"resetFiltersButtonText": "Reset Filters",
1828+
"@resetFiltersButtonText": {
1829+
"description": "Text for the button to reset filters to their default state."
1830+
},
1831+
"noResultsWithCurrentFilters": "No results found with current filters. Try resetting them.",
1832+
"@noResultsWithCurrentFilters": {
1833+
"description": "Message displayed when no results are found due to active filters, prompting the user to reset them."
18261834
}
1827-
}
1835+
}

0 commit comments

Comments
 (0)