DatePicker Locale

I am trying to set the i18n localization to norwegian, but I’m struggeling with the dateFormat. This is my code:

DatePicker.DatePickerI18n i18n = new DatePicker.DatePickerI18n();
        i18n.setFirstDayOfWeek(1);
        i18n.setWeekdays(Arrays.asList("søndag", "mandag","tirsdag","onsdag", "torsdag", "fredag", "lørdag"));
        i18n.setWeekdaysShort(Arrays.asList("sø.", "ma.","ti.","on.", "to.", "fr.", "lø."));
        i18n.setMonthNames(Arrays.asList("januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"));


        i18n.setDateFormat("MMMM yyyy");
        setI18n(i18n);

If I click the DatePicker and get the popup the correct month name is shown in accordance to the i18n settings, but in the field itself its still showing the english translation “October 2024”

Any hints to how I can fix this?

What locale is used in your virtual machine and browser?

The pattern MMMM is not supported at the moment. If you check the documentation, it explicitly lists the pattern that you may use: Date Formats | Date Picker | Components | Vaadin Docs

Basically, anything that would display a readable name of a week day or month is not supported at the moment. It will always output the English name. There’s an issue for improving that here: DatePicker does not respect Locale for formatting · Issue #2665 · vaadin/flow-components · GitHub