Hello,
in my project I want to use the culture de-AT which I set/load with following code:
setCulture('de-AT');
setCurrencyCode('EUR');
loadCldr(
require('cldr-data/main/de-AT/ca-gregorian.json'),
require('cldr-data/main/de-AT/timeZoneNames.json'),
require('cldr-data/main/de-AT/numbers.json'),
require('cldr-data/main/de-AT/currencies.json'),
require('cldr-data/supplemental/numberingSystems.json'),
require('cldr-data/supplemental/weekData.json')
);
So far everything works fine except the first day of week in DateTimePicker. It should be Monday, but defaults to Sunday.
I debugged the code responsible for getting the first day of week from culture data and it seems it should only read weekData with country, but it's reading with the whole culture (see screenshot). For english based cultures there is an "if" to slice the language part and only keep the country. I think this should be done for all cultures, not only english based ones.
Best Regards,
Marcel
|
<ejs-datetimepicker [firstDayOfWeek]="firstDayOfWeek"></ejs-datetimepicker> |
|
export class AppComponent {
public date: Object = new Date();
public firstDayOfWeek: number = 1;
constructor() {
}
} |
Hello Deepak!
Thanks for your reply!
I don‘t want to set the first day of week on every picker I use, as this seems like a workaround to me.
I want it to correctly load the first day of week from the culture data which I provide to the syncfusion components with weekData.json.
So this should be seen as a bug report, rather than a knowledge-gap on the usage!
The screenshot from above is syncfusion code which I think doesn‘t work as expected.
Thanks in advance!
Hi Deepak,
thanks a lot for the fast reply to this issue. Appreciate it!
Best Regards,
Marcel
Hi Deepak,
could you please add your linked feedback to my account, as I'm currently not able to access it.
Thanks in advance,
Marcel