orazz / CalendarPopUp

CalendarPopUp - JTAppleCalendar library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to localize calendar language?

hemangshah opened this issue · comments

Hi @orazz , in our app requirements I want to display the calendar popup in Arabic language. However, I am setting locale in your source code it's not showing the Arabic version of calendar, can you please help? I have used JTAppleCalendar directly in my code and when I set local it just work for me. But in your code it's not working for me.

commented

In extension.swift file set your lang.
and in CalendarPopUp.swift setDate() function for example

    let monthName = GetHumanDate(month: month)
    let week = GetTurkmenWeek(weekDay: weekday)

i added a little class in my fork that has this feature.
Best regards

   let monthName = GetHumanDate(month: month, language: .spanish) 
   let week = GetTurkmenWeek(weekDay: weekday, language: .english)