Generate datepicker() locale automatically