Skip to content

Commit

Permalink
#4408 Flatpickr isn't using custom languages
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTr committed Jul 24, 2023
1 parent 547ab02 commit 8fd1686
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions inc/js/jquery.webForms.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@
if (this.getAttribute("type") == "date" || this.getAttribute("type") == "date_calendar" || this.getAttribute("type") == "datepicker") { // Date picker

flatpickr(this, {
locale: sLang,
disableMobile: true,
altInput: true,
altFormat: this.getAttribute("data-frmt-date") ? this.getAttribute("data-frmt-date") : "F j, Y",
Expand All @@ -315,6 +316,7 @@
} else if(this.getAttribute("type") == "datetime" || this.getAttribute("type") == "date_time") { // DateTime picker

var oPickerOptions = {
locale: sLang,
disableMobile: true,
enableTime: true,
altInput: true,
Expand Down

0 comments on commit 8fd1686

Please sign in to comment.