lilcodelab / Xamarin.Plugin.Calendar

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

[Feature Request] Arabic culture is not supported - CultureInfo("ar") #68

Closed MajdAlbaho closed 3 years ago

MajdAlbaho commented 3 years ago

When binding the culture of calendar to Ar culture, no UI appears

I tried Fr, En and other cultures, and it all works, but may we can add Arabic names of months and days :)

MajdAlbaho commented 3 years ago

When debugging, it throws this error "Index and length must refer to a location within the string. Parameter name: length"

I set it in code behind instead of Binding from UI to catch the error,

try { CalendarControl.Culture = new CultureInfo("ar"); } catch (Exception e) { Console.WriteLine(e); }

MajdAlbaho commented 3 years ago

It should be ar-SY to avoid throw the error