ognev-zair / Kotlin-AgendaCalendarView

Android calendar library provides easy to use widget with events
Apache License 2.0
96 stars 21 forks source link

Change Language #11

Open buckneer opened 4 years ago

buckneer commented 4 years ago

I am using this widget, but I came across the problem, I don't know how to change language, I need Serbian.

ognev-zair commented 4 years ago

Hi there, I beleive assigning Serbian locale should work as expected:

   contentManager = CalendarContentManager(this, agenda_calendar_view, SampleEventAgendaAdapter(applicationContext))

   contentManager.locale = Locale.Builder().setLanguage("sr").setRegion("RS").setScript("Latn").build()
buckneer commented 4 years ago

Thank you, Sir!

On Wed, 25 Dec 2019, 22:14 Ognev Zair, notifications@github.com wrote:

Hi there, I beleive assigning Serbian locale should work as expected:

contentManager = CalendarContentManager(this, agenda_calendar_view, SampleEventAgendaAdapter(applicationContext))

contentManager.locale = Locale.Builder().setLanguage("sr").setRegion("RS").setScript("Latn").build()

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ognev-zair/Kotlin-AgendaCalendarView/issues/11?email_source=notifications&email_token=AKDNM7DKDYMC2J44NKG74NDQ2PELPA5CNFSM4JZFKTQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHUTOLQ#issuecomment-568932142, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKDNM7E6RV4BO742YZTMAJLQ2PELPANCNFSM4JZFKTQA .