I've got a multi-lingual Drupal 6 installation. The multi-language is provided by the i18n module.
I'm displaying some date pickers using jquery ui's datepicker. I'd like to localize those datepickers too (so when the page being shown is English, they show 'mon tue wed ...' but when the page is in Spanish they show 'lun mar mi ...').
My problem is: I don't know how to send the currently selected locale to javascript.
The closest thing I could find was the javascript Drupal.locale object. However that object doesn't seem to have a 'locale name'.