Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issues with localization #2

Open
abdoh476 opened this issue Nov 4, 2018 · 7 comments
Open

issues with localization #2

abdoh476 opened this issue Nov 4, 2018 · 7 comments

Comments

@abdoh476
Copy link

abdoh476 commented Nov 4, 2018

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 ?

@Husseinhj
Copy link
Owner

Is this happen in sample project?

@abdoh476
Copy link
Author

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

@Husseinhj
Copy link
Owner

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.

@abdoh476
Copy link
Author

Thanks for your response and I'm waiting

@Husseinhj
Copy link
Owner

Husseinhj commented Nov 25, 2018

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

Use this code for change the correct format:

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

@tbsiosdev
Copy link

tbsiosdev commented Feb 15, 2019

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

@Husseinhj
Copy link
Owner

Husseinhj commented Feb 16, 2019

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()
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants