vaadin/vaadin-date-picker

Changing i18n provider multiple times is not reflected in the front end

Closed this issue · 2 comments

There seems to be some caching involved when the calendar is opened. For example, weekday names and first day of week are never refreshed and are displayed with the data that was passed to the component before the calendar was first shown.

Similarly, after changing the i18n provider and opening the calendar, the month names change only after scrolling about three, four months into the future or past.

Here is when the i18n provider was set to English, the calendar was opened, then the change to Chinese happened and I scrolled a few months:

obraz

And here is when the i18n provider was set to Chinese and then the calendar was opened:
obraz

Could you fix this bug please???

Closing in favor of #731 which has some code examples and because both issues are now in the same repository.