We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to set localization for SfDateTimeRangeNavigator?

Platform: Xamarin.Forms |
Control: SfDateTimeRangeNavigator

You can set localization for RangeNavigator in all the platforms by adding a .resx file in a .NET Standard project alone. The following steps describe how to set localization for SfDateTimeRangeNavigator in a project.

  1. Add a new folder in the .NET Standard project named Resources.
  2. Add resource files for the languages you wish to support and set their Build Action to EmbeddedResource. The name of the resource file should be $name of the Syncfusion component$+$language code$+.resx. For example, if you add a resource file for French culture. Then, add the Syncfusion.SfChart.XForms.fr-FR.resx file to Resources folder as illustrated in the following screenshot.


















  1. Provide French values for each key in the respective .resx files. Here, “Quarter” and “Week” are the keys, and “Trimestre” and “La semaine” are their respective French values.



Note: Here, resources have been already created for some cultures and shared them on the Syncfusion GitHub for your convenience.


  1. Set the resource manager to ‘RangeNavigatorResourceManager.Manager’ to get the resource manager from the user as illustrated in the following code sample. For more details, please click here.





RangeNavigatorResourceManager.Manager = new ResourceManager("GettingStarted.Resources.Syncfusion.SfChart.XForms", Application.Current.GetType().Assembly);



2X faster development

The ultimate Xamarin UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile