Skip to content

Hijri Arabic Month #2488

@ahmedemam22

Description

@ahmedemam22

🐞 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,
),
),
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions