So in my app, I don't want any localization from happening.
But I cannot set the NSLocale in FSCalendar. Using NSDateFormatter.dateFormatFromTemplate to set the headerDateFormat does not work.
How did set it and what do you mean by don't want any localization
This is the screenshot when the phone's language is set to English:

This is the screenshot when the phone's language is set to French:

I want to make it fixed to English, so even when iOS language is set to French, the header text and day name is still English
This is the way I use it:
_calendar.appearance.headerDateFormat = [NSDateFormatter dateFormatFromTemplate:@"MMMM yy" options:0 locale:[NSLocale localeWithLocaleIdentifier:@"zh-CN"]];

And you might try:
_calendar.appearance.headerDateFormat = [NSDateFormatter dateFormatFromTemplate:@"MMMM yy" options:0 locale:[NSLocale localeWithLocaleIdentifier:@"en-US"]];
BTW: green colors looks good~
I'm using swift with this code
self.calendar.appearance.headerDateFormat = NSDateFormatter.dateFormatFromTemplate("MMMM yyyy", options: 0, locale: NSLocale(localeIdentifier: "en-US"))
and the text is still not in English when the phone's language is not set to English. The zh-CN works at any language though..
Yes. Maybe a locale property is better, coz the weekday labels have locale names too.
But I still think that locale follow the iPhone system is a better performance --
locale property has been added, thanks~
TRY THIS THIS WILL WORK
calendar.calendarHeaderView.collectionViewLayout.collectionView?.semanticContentAttribute = .forceLeftToRight
Most helpful comment
I'm using swift with this code
and the text is still not in English when the phone's language is not set to English. The zh-CN works at any language though..