define default language for all calendar instances
// way 1
// add settings for custom language
dhtmlXCalendarObject.prototype.langData["de"] = {
...
];
// init calendar
var myCalendar = new dhtmlXCalendar(...);
// apply language settings
myCalendar.loadUserLanguage("de");
// way 2
// to set default language for all calendar instances
// you can simply change lang prop once, before init
// i.e.
// add settings for custom language
dhtmlXCalendarObject.prototype.langData["de"] = {
...
};
// make custom language default
dhtmlXCalendarObject.prototype.lang = "de";
// init calendar
var myCalendar = new dhtmlXCalendar(...); // this instance will inited with "de" language
Back to top