werner-scholtz / kalender

An elegantly crafted Flutter calendar UI package.
MIT License
107 stars 29 forks source link

missing language localizzation for days of the week in header and showDayHeader don't work #60

Closed GSFdev24 closed 7 months ago

GSFdev24 commented 7 months ago

Hello team,

i see that in components DayHeaderStyle and MonthHeaderStyle there is the possibility to change the date format of day of the week, but i don't see the possibility to change the language localization and the days of the week are only in english.

In the next release will there be the possibility to change the language? Or it's already there and I didn't notice it, in which case I apologize for opening a useless issue.

in add i notice that the showDayHeader that which it replaced showHeader in CustomMultiDayConfiguration doesn't work

Best Regards and thank for your work.

werner-scholtz commented 7 months ago

Hi yeah sure I see intl package has a way to set the locale it is just not exposed, I'll change it in the next version for now you can use the monthHeaderBuilder and dayHeaderBuilder to customize the langauge used.

GSFdev24 commented 7 months ago

monthHeaderBuilder

ok thank you i will wait your next release and instead why showDayHeader doesn't work such as showHeader ? Am I doing something wrong?

werner-scholtz commented 7 months ago

I think I understand you mean, the monthViewConfiguration showHeader hides the entire calendar header, that is a bug will fix.

werner-scholtz commented 7 months ago

Hello team,

i see that in components DayHeaderStyle and MonthHeaderStyle there is the possibility to change the date format of day of the week, but i don't see the possibility to change the language localization and the days of the week are only in english.

In the next release will there be the possibility to change the language? Or it's already there and I didn't notice it, in which case I apologize for opening a useless issue.

in add i notice that the showDayHeader that which it replaced showHeader in CustomMultiDayConfiguration doesn't work

Best Regards and thank for your work.

I also had another look at the localisation what I'm going to do is remove the intl package from the calendar package and just have a string builder in the style classes that way you can configure and use the intl package in your app.