HI,
i created a file 'scheduler.locale.Fr.js' in my static resource.
I don't know how to use localManager.
My code :
Promise.all([
loadScript(this, SCHEDULER + '/scheduler.lwc.module.js'),
loadStyle(this, SCHEDULER + '/scheduler.stockholm.css'),
loadStyle(this, SCHEDULER + '/locales/scheduler.locale.Fr.js')
])
.then(() => {
this.DH = bryntum.scheduler.DateHelper;
this.today = this.DH.clearTime(new Date());
this.start = this.DH.startOf(this.today, 'week');
this.center = true;
this.animate = 2000;
this.highlight = true;
this.localManager();
this.createScheduler();
this.createSplitter();
this.createGrid(this.ListEventNotPlanned);
this.createDrag();
and my localManager function :
localManager()
{
bryntum.scheduler.LocaleManager.registerLocale('Fr', {
desc : 'French', locale : {
localeName : 'Fr',
localeDesc : 'French',
/* other localization */
}
});
//bryntum.scheduler.LocaleManager.applyLocale('Fr');
}
i have an error = 'undefined'
can you help me, it's the good way to use localeManager ?
Br