rebeccaXam / XamForms.Controls.Calendar

Custom calendar control for Xamarin.Forms. Customizable border thickness, color, background colors and formats. Version 1.0.8 or lower Built against: 2.1.0.6521 Version 1.1.0 or above Built against: 2.3.4.231
MIT License
132 stars 69 forks source link

Convert to other language #71

Closed Hupperichs closed 6 years ago

Hupperichs commented 6 years ago

Hello,

I need to convert the weekdays / month to another language. The name of the month has the possibility to change the text value (TitleLabel.Text) and replace it with a language file value:

string[] months =  { "Jan", "Feb", "Mar", "Apr", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" };

            string keyResult = months.FirstOrDefault(s => value.Contains(s));

            switch (keyResult) {
                case "Jan": value = value.Replace("Jan", Language.JANUARY); break;
                case "Feb": value = value.Replace("Feb", Language.FEBRUARY); break;
               ...........
            }
            return value;

Is it possible to do this with the days of the week to?

58