How to localize the scheduler element in .NET MAUI Scheduler (SfScheduler)?
The .NET MAUI Scheduler allows localization of the calendar days and months into different languages by utilizing the CurrentUICulture property. Additionally, the default strings of the Scheduler can be localized by adding a Resource (.resx) file with the corresponding locale texts for the calendar views.
XAML
<Grid> <scheduler:SfScheduler x:Name="Scheduler" AllowedViews="Day,Week,WorkWeek,TimelineDay,TimelineWeek,TimelineWorkWeek,TimelineMonth"/> </Grid>
App.Xaml.cs
using Syncfusion.Maui.Scheduler; using System.Globalization; using System.Resources; namespace Localization; public partial class App : Application { public App() { InitializeComponent(); CultureInfo.CurrentUICulture = new CultureInfo("fr-FR"); SfSchedulerResources.ResourceManager = new ResourceManager("Localization.Resources.SfScheduler", Application.Current.GetType().Assembly); MainPage = new MainPage(); } }
Output
Download the complete sample on GitHub
Conclusion
I hope you enjoyed learning how to localize the scheduler element in .NET MAUI Scheduler.
Refer to our .NET MAUI Scheduler feature tour page to learn about its other groundbreaking feature representations. You can explore our .NET MAUI Scheduler documentation to understand how to present and manipulate data.
For current customers, check out our .NET MAUI components from the License and Downloads page. If you are new to Syncfusion®, try our 30-day free trial to check out our .NET MAUI Scheduler and other .NET MAUI components.
Please let us know in the following comments section if you have any queries or require clarifications. Contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!