-
Notifications
You must be signed in to change notification settings - Fork 919
Description
🐞 Issue: SfHijriDateRangePicker does not localize Hijri month names to Arabic
Description
While using SfHijriDateRangePicker in a Flutter app with Arabic locale enabled, Hijri month names are still displayed in English.
This happens even when:
MaterialApp.locale is set to Locale('ar')
SfLocalizations.delegate is added
RTL layout is applied
Expected behavior
When the app locale is Arabic, Hijri month names (e.g. Muharram, Safar, etc.) should be displayed in Arabic inside SfHijriDateRangePicker.
Actual behavior
Hijri month names are always displayed in English inside SfHijriDateRangePicker, regardless of the app locale.
Notes / Findings
Arabic Hijri month names already exist in Syncfusion localization files (e.g. syncfusion_ar.arb)
However, SfHijriDateRangePicker does not appear to consume these localized strings for its month headers
Gregorian month localization works correctly
This suggests that Hijri month rendering in SfHijriDateRangePicker is not currently wired to SfLocalizations
Minimal reproducible example
MaterialApp(
locale: const Locale('ar'),
localizationsDelegates: const [
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
SfLocalizations.delegate,
],
supportedLocales: const [
Locale('en'),
Locale('ar'),
],
home: Scaffold(
body: SfHijriDateRangePicker(
view: HijriDatePickerView.year,
selectionMode: DateRangePickerSelectionMode.single,
),
),
);