#135879 Calendar language not applied

Landing Forums JupiterX WordPress Theme Calendar language not applied

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • mickael

    Hi,

    We encouter a bug between WooCommerce Delivery & Pickup Date Time Pro and jupiter xcore

    If jupiter xcore is enabled, the calendar of WooCommerce Delivery & Pickup Date Time Pro stay in english. By deactivating jupiter xcore, the calendar is in French.

    Do you have a workaround to get the calendar in french ?

    Thank you.

     

    Mohsin Al-Rabieai Support Team

    Hi Mickael,

    It’s because the Raven extension inside the Jupiter X Core has another “flatdatepickr” library. By default, it will be used on the Raven forms and it will automatically get the locale from the website and won’t cause issues. But since there is no Raven form being used on your checkout page, it uses the default locale. In order to resolve it, I added this line of code into your child theme’s functions.php file:

    	wp_enqueue_script('raven_flatpickr_localize',
    			trailingslashit( plugin_dir_url( JUPITERX_CORE_RAVEN__FILE__ ) . 'assets/lib/flatpickr-locale/' ) . 'fr' . '.js',
    			[ 'flatpickr' ],
    			'4.1.4',
    			true
    		);

    Please check your checkout page now.

    Hope it helps šŸ™‚

    Bests

    mickael

    Hi,

    the calendar is in french now.

    Thank you.

    Alexander Hutsol Support Team

    Hello,

    You are welcome šŸ™‚

    Feel free to create a new topic if you have any other questions.

     

    Regards.

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