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?