FSCalendar icon indicating copy to clipboard operation
FSCalendar copied to clipboard

issues with localization

Open abdoh476 opened this issue 6 years ago • 7 comments

when I use your calendar and after I make a localization in English version the months names comes right but in arabic it comes wrong "رمضان ٢٠٩٧" so what is the problem ?

abdoh476 avatar Nov 04 '18 22:11 abdoh476

Is this happen in sample project?

Husseinhj avatar Nov 12 '18 19:11 Husseinhj

Yes the problem was when I force the alignment to be right to left and toogle that The solution that worked with me to not make force content mode in this screen

abdoh476 avatar Nov 12 '18 20:11 abdoh476

The solution that worked with me to not make force content mode in this screen

Yes, I should fix this for supporting RTL with the new way. I'll work on this.

Husseinhj avatar Nov 12 '18 20:11 Husseinhj

Thanks for your response and I'm waiting

abdoh476 avatar Nov 12 '18 21:11 abdoh476

but in Arabic it comes wrong "رمضان ٢٠٩٧"

Use this code for change the correct format:

self.calendar.appearance.headerDateFormat = @"yyyy MMMM";

Husseinhj avatar Nov 25 '18 13:11 Husseinhj

How to clear selection date? set as default calendar in above snapshot?

tbsiosdev avatar Feb 15 '19 12:02 tbsiosdev

At RangePicker sample just use clearDateSelections code:

func clearDateSelections() {
    date1 = nil
    date2 = nil
    let selectedDates = self.calendar?.selectedDates

    if ((selectedDates?.count) != nil) {
        selectedDates?.forEach({ (date) in
            self.calendar?.deselect(date)
        })
    }

    configureVisibleCells()
}

Husseinhj avatar Feb 16 '19 06:02 Husseinhj