3 Sep 20201 minute to read
SfCalendar control is available with complete localization support. Localization can be specified by setting the Locale property of the control using the format of Language code followed by Country code.
Change default control language
Based on the Locale specified, the strings in the control are localized accordingly.
SfCalendarcontrol is available with en-US locale.
calendar.Locale = new NSLocale("fr-FR");
Change custom texts in the calendar control
You can localize custom text available in the control by adding equivalent localized string in the Localizable.strings file, refer here.
If an application requires multiple languages you can follow the below steps:
- Translate the Localizable.Strings file to each language.
- Create new
<Language>.lprojfolders under resource as
- Place the
Localizable.Stringsfile in the respective
You can download the entire source code of this demo for Xamarin.iOS from
<Language>.lprojfolder loads only depends on the device configuration and locale.