We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello. I need to display days in calendar in Russian. How can I do it?
The text was updated successfully, but these errors were encountered:
Находите это место и вставляете строку calendar.locale = Locale(identifier: "ru_RU") let defaultCalendar: Calendar = { var calendar = Calendar.current calendar.firstWeekday = 1 calendar.timeZone = TimeZone(secondsFromGMT: 0)! calendar.locale = Locale(identifier: "ru_RU") return calendar }()
Sorry, something went wrong.
Unfortunately, only weekdays and month header view title change using this method but not the name of the months on the calendar itself.
Actually, I have found the proper solution
Just add these lines of code to the View Controller you are using Calendar in.
func verticalMonthDateFormater() -> DateFormatter { let formatter = DateFormatter() formatter.locale = Locale(identifier: "ru_RU") formatter.dateFormat = "LLLL yyyy" return formatter }
No branches or pull requests
Hello. I need to display days in calendar in Russian. How can I do it?
The text was updated successfully, but these errors were encountered: