- Home
- Forum
- Xamarin.Forms
- Locale MVVM binding doesnt work
Locale MVVM binding doesnt work
never version 16.1.0.24 doesnt work for locale Binding like below. Before versions were working.

Locale="{Binding SfScheduleLocale}" FirstDayOfWeek="2" VerticalOptions="FillAndExpand" DataSource="{Binding WorkoutSchedules}">
In the view Model
public string SfScheduleLocale { get; set; }
SfScheduleLocale = "es";
RaisePropertyChanged("SfScheduleLocale");
I already have folders In Android project. Please use following;
- Latest XF nuget version
- net Standard 2.0 (not PCL)
SIGN IN To post a reply.
3 Replies
SG
Swathi Gopal
Syncfusion Team
February 23, 2018 11:15 AM UTC
Hi Emil,
Thank you for contacting Syncfusion support.
We have checked the reported issue in Xamarin.Forms Android and Locale binding works properly in the latest version 16.1. Currently in schedule, View header and Header only will be updated based on Locale. From the provided screenshot, we suspect that your requirement is to localize custom strings based on locale. But currently, it will be localized based on device language only. We have already updated the same in our online user guide documentation.
We have attached a simple sample for locale binding in Xamarin forms. Kindly find the sample below,
Sample: LocaleSample_Forms
However, this behavior is same in both the 15.4 and 16.1 versions. If the provided solution doesn’t meet your requirement, please revert us back with more information regarding your query. It will be helpful for us to analyze and provide you better solution.
Regards,
Swathi G
EM
Emil
February 23, 2018 02:03 PM UTC
Hi Swathi,
yes I would like make string multi-lingual based on the provided locale. I have my app supports multi-lingual and if users uses phone in english and selects app language as spanish, it should display spanish text as "Sin evento" instead of " No appointment". yes i have tested with 15.4 .20 version and it also doesnt work but I believe this was working in earlier versions. I didnt recognize this in previous 3 versions probably and i cant remember which version was last working version maybe.
Do you know if there is anyway around, i can get this text multi lingual independent from Phone language?
thanks,
Emil
SG
Swathi Gopal
Syncfusion Team
February 26, 2018 01:10 PM UTC
Hi Emil,
We have checked with your requirement of making inline strings multi lingual based on the provided locale. As of now, only setting Locale property and without setting the device language doesn’t change the inline strings (No Events and All Day) in schedule Xamarin Forms. This is the expected behavior in our control even in our previous versions also. We have mentioned the behavior in our online documentation too.
However, your requirement of changing the locale of strings whitout changing the device language can be achieved in sample level. Kindly find the corresponding sample below. In the sample, we have set Locale as “fr” and respective strings values under Android and iOS projects.
Sample: LocaleSample_Forms
Please let us know for further assistance.
Regards,
Swathi G
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
EM Emil
- Feb 22, 2018 10:00 PM UTC
- Feb 26, 2018 01:10 PM UTC