tamble / jquery-ui-daterangepicker

A JQuery UI based date range picker.
MIT License
184 stars 110 forks source link

dayNamesMin - doesn't work #20

Closed Bear4 closed 9 years ago

Bear4 commented 9 years ago

I wanted to change the names of days into another language. I tried this: $("#dayA").daterangepicker({ dayNamesMin: ["Nd", "Pn", "Wt", "Śr", "Cz", "Pt", "So"], ... });

The change names aren't display. I have still old names day. When I change the jQuery-UI library then changes are visible.

Gratulations for good plugin. I like it very much (:

op16 commented 9 years ago

You need to include the options for the standard datepicker plugin inside datepickerOptions.

$("#dayA").daterangepicker({
  datepickerOptions: {
    dayNamesMin: ["Nd", "Pn", "Wt", "Śr", "Cz", "Pt", "So"]
  },
...
});
Bear4 commented 9 years ago

Thanks for prompt. One detail, the datepickerOptions{} works only on the end code inside daterangepicker({}). When I set on start, new names aren't visible. And when I move datepickerOptions{} on the end it works: $("#dayA").daterangepicker({ various options, ... datepickerOptions: { dayNamesMin: ["Nd", "Pn", "Wt", "Śr", "Cz", "Pt", "So"] } });