Check documentation for the latest version of dhtmlxSuite lang DHTMLX Docs

lang

define default language for all calendar instances

string lang;

Example

// 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