Articles in this section
Category / Section

How to set localization for Xamarin.Forms SfDateTimeRangeNavigator?

1 min read

Using Xamarin.forms Date 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.

 

 

C#:

 

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

 

 

Conclusion

I hope you enjoyed learning about how to set localization for Xamarin.Forms SfDate TimeRangeNavigator.

You can refer to our Xamarin.forms Date feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our Xamarin.Forms Date Example to understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied