javascript - CKFinder standalone .popup() setting language does not work -


good day.

i opened ckfinder standalone following:

function browseserver(inputid) {     var finder = new ckfinder( );     finder.basepath = '/ckfinder/' ;     finder.selectfunction = setfilefield ;     finder.selectfunctiondata = inputid ;     finder.popup() ; } 

i want open new language (based on user language), hard coded passed language setting not work. opening every time in german actually.

i googled , watched ckfinder documentations, dont figured out how let work.

i tried:

delete cache , cookies

 // var finder = new ckfinder( );  finder = new ckfinder( ); 

delete cache , cookies

then between instanciation , .popup() tried constellations of ..

//  finder.defaultlanguage = 'it'; //  finder.language = 'it'; finder.langcode = 'it'; 

.. every time deleting cache , cookies. , , without 'var' before var declaration , instanciation of 'new ckfinder()'.

what doing wrong? tested in ff , chrome.

thaks in advance.

edit:

i tried pass lang config possibilities object new ckfinder({});