Custom Fields
Re-Envisioned
Support General Date field localization

  • Creator
    Topic
  • #6502
    ludovic.meyer
    Participant

    Hello,

    The date field is in english and a didn’t find a way to translate it.
    Can you tell me the right way to do ?

    Regards,

Viewing 6 replies - 1 through 6 (of 6 total)
  • Author
    Replies
  • #6509
    Truong Giang
    Participant

    Hi,

    Date format can be changed by adding dateFormat to js_options array (See here). You can create a function to check the language of website then return the date format.

    #6516
    ludovic.meyer
    Participant

    Hi,

    I already used dateFormat option.
    I want to localize everything in the js calendar (pointed in red in the image below)

    View post on imgur.com

    Regards

    #6535
    Truong Giang
    Participant

    Hi,

    The language of date picker calendar is based on the language of your website in Settings > General > Site Language.

    Thank you.

    #6542
    ludovic.meyer
    Participant

    Hello,

    The website is already in French in Settings > General > Site Language.

    I checked and i can say that the localization does not work with MB Frontend Submission (it works only in admin).

    Can you fix it please ?

    Regards,

    #6558
    Truong Giang
    Participant

    Hi,

    Sorry, I found the problem. The function wp_localize_jquery_ui_datepicker() has not been called when jquery-ui-datepicker is enqueued. Please update MB Frontend Submission to the latest version.

    Thank you.

    #6601
    ludovic.meyer
    Participant

    It works now

    Awesome support !

    Thank you !!!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Date field localization’ is closed to new replies.