Localizing Datepicker

Support MB Frontend Submission Localizing DatepickerResolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #31336
    pluginovenpluginoven
    Participant

    I was not able to get the datepicker to use the language set in the WordPress General Settings.
    After searching I found this thread, but it did not offer any valid solution as MB Frontend Submission v3.1.4 was installed. I resolved the issue by adding the following to my child-theme:

    add_action( 'wp_print_footer_scripts', 'prefix_localize_jquery_ui_datepicker', 9 );
    function prefix_localize_jquery_ui_datepicker() {
        if ( ! function_exists( 'wp_localize_jquery_ui_datepicker' ) ) {
            return;
        }
        wp_localize_jquery_ui_datepicker();
    }

    Hope this helps someone else having to search for a solution.

    #31345
    Long NguyenLong Nguyen
    Moderator

    Thanks for sharing the solution.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.