(function ($) { zE(function() { zE.setLocale('fr'); }); zE('webWidget:on', 'open', function() { console.log('The widget has been opened!'); }); })(jQuery);