lilcodelab / Xamarin.Plugin.Calendar

Calendar plugin for Xamarin.Forms
MIT License
260 stars 60 forks source link

Change Localization language #97

Closed JanDa-ma closed 3 years ago

JanDa-ma commented 3 years ago

Hi there,

In the description is given that we can change the Localization with System.Globalization.CultureInfo but I can't see how.

Can you give me the information to change the localization(Automatic or via code change)?

bbazina commented 3 years ago

You can change it with this property. https://github.com/lilcodelab/Xamarin.Plugin.Calendar/blob/7da7d1d81527032b5a0251bd8d5e5770817697fe/src/Calendar.Plugin.Sample/SampleApp/Views/AdvancedPage.xaml#L25

bbazina commented 3 years ago

You can change it in code behind like this: calendar.Culture = new CultureInfo("hr-HR"); and in xaml you add: x:Name="calendar"