Hi Erick,
Thanks for the update.
We have validated the reported scenario in Spanish culture but it could be working fine at our end. And the same we have shared the sample for your reference.
[app.component.ts]
Define custom fields in Spanish culture like the below in eventSettings model.
export class AppComponent {
@ViewChild('scheduleObj')
public scheduleObj: ScheduleComponent;
public data: Object[] = <Object[]>extend([], scheduleData, null, true);
public selectedDate: Date = new Date(2020, 1, 15);
public eventSettings: EventSettingsModel = {
dataSource: this.data,
fields: {
subject: { title: 'Subject', name: 'Tarea' },
location: { title: 'Location', name: 'Ubicación' },
description: { title: 'Descrtiption', name: 'Descripción' },
startTime: { title: 'Start Time', name: 'FechaInicio' },
endTime: { title: 'End Time', name: 'FechaFin' }
}
};
}
[data.ts]
Map the custom event fields to the scheduler data source like the below.
export let scheduleData: Object[] = [
{
Id: 1,
Tarea: 'Explosion of Betelgeuse Star',
FechaInicio: new Date(2020, 0, 6, 9, 30),
FechaFin: new Date(2020, 0, 6, 11, 0),
Ubicación: 'Spain'
}
];
Kindly try the above sample and get back to us If you would need any further assistance.
Regards,
Ravikumar Venkatesan