By default, the date time picker within projects is rendered in English language. Here is a sample screenshot on this:

In order to translate it, you will need to now add the code below within the functions.php file of your child theme:

   * Carry out the datepicker translation by overriding the English one
 function woffice_calendar_translation() {
    $data = '
         * Calendar translation
    wp_add_inline_script( 'woffice-projects', $data,'before');

 add_action('wp_enqueue_scripts', 'woffice_calendar_translation',100);

As seen in line 9 above, we have the locale set to “de” within the code which is the German translation. You can alter this to your locale. Here is a list of the supported languages: DateTimePicker .

Below is a sample output of the above code translation:

Leave a Reply

Your email address will not be published. Required fields are marked *