Calendar and Scheduler

Do you have an example to use Calendar and Scheduler in “Italian (Italy)” (it-IT) culture?

Thanks a lot.

3 Replies

SN Sevvandhi Nagulan Syncfusion Team May 12, 2020 11:11 AM UTC

Hi Marco, 

Greetings from Syncfusion support. 

We prepared the sample with mentioned culture in the Calendar and Schedule component. Kindly refer the below code, 
function loadCultureFiles(name) { 
        var files = ['ca-gregorian.json', 'numbers.json', 'timeZoneNames.json']; 
        if (name === 'ar') { 
            files.push('numberingSystems.json'); 
        } 
        var loader = ej.base.loadCldr; 
        var loadCulture = function (prop) { 
            var val, ajax; 
            if (name === 'ar' && prop === files.length - 1) { 
                ajax = new ej.base.Ajax(location.origin + location.pathname + '/../../scripts/cldr-data/supplemental/' + files[prop], 'GET', false); 
            } else { 
                ajax = new ej.base.Ajax(location.origin + location.pathname + '/../../scripts/cldr-data/main/' + name + '/' + files[prop], 'GET', false); 
            } 
            ajax.onSuccess = function (value) { 
                val = value; 
            }; 
            ajax.send(); 
            loader(JSON.parse(val)); 
        }; 
        for (var prop = 0; prop < files.length; prop++) { 
            loadCulture(prop); 
        } 
    } 





Regards, 
Sevvandhi N 



MA Marco May 12, 2020 12:45 PM UTC

Thanks for your answer.

All is fine.

Best regards,
Marco


SN Sevvandhi Nagulan Syncfusion Team May 12, 2020 12:52 PM UTC

Hello Marco, 

Thanks for the update. Please let us know if you need any further assistance. 

Regards, 
Sevvandhi N 


Loader.
Up arrow icon