You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When my app's locale is set to Arabic (e.g. Locale('ar', 'MA')), the SfCalendar widget displays all numbers (dates, times, week numbers) using Arabic-Indic digits (e.g. ١,٢,٣).
I want to display all numbers in Western (English) digits (0-9) only in the calendar, while keeping the rest of my app in Arabic.
Steps to reproduce
1- Set your app's locale to Arabic (e.g. Locale('ar', 'MA')).
2- Wrap SfCalendar with Localizations.override(locale: Locale('ar', 'MA')).
3- Observe that all numbers in the calendar are still Arabic-Indic digits.
You can refer to our Knowledge Base (KB) article that explains how to override the localizations in SfCalendar to display the digits instead of Arabic words for numbers in the calendar UI. We have shared the KB documentation for your reference.
Thank you for your reply @Mugunthan-Ramalingam but in CalendarView.week and CalendarView.day, the hour/time labels still display Arabic-Indic digits (١٢) instead of Western digits (12).
could you guide me on how to enforce Western digits (1, 2, 3) in these views?
Uh oh!
There was an error while loading. Please reload this page.
Bug description
When my app's locale is set to Arabic (e.g. Locale('ar', 'MA')), the SfCalendar widget displays all numbers (dates, times, week numbers) using Arabic-Indic digits (e.g. ١,٢,٣).
I want to display all numbers in Western (English) digits (0-9) only in the calendar, while keeping the rest of my app in Arabic.
Steps to reproduce
1- Set your app's locale to Arabic (e.g. Locale('ar', 'MA')).
2- Wrap SfCalendar with Localizations.override(locale: Locale('ar', 'MA')).
3- Observe that all numbers in the calendar are still Arabic-Indic digits.
Code sample
MaterialApp(
locale: Locale('ar', 'MA'),
home: Scaffold(
body: Localizations.override(
context: context,
locale: Locale('ar','MA'),
child: SfCalendar(
view: CalendarView.week,
timeSlotViewSettings: TimeSlotViewSettings(
timeFormat: 'HH:mm',
),
),
),
),
);
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
The text was updated successfully, but these errors were encountered: