Support » Plugin: WooCommerce » WooCommerce field type date in French

  • Resolved benbois


    I added a birthday’s field (type: date) in the billing form of WooCommerce.
    Everything works fine except that the date picker is in English and the website is in French.

    See here:

    Do you know how to force the French language for the date picker?


Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support MayKato woo-hc



    You can change text by using a free translation plugin like Loco Translate. This will allow you to find that phrase and change it to be what you’d like.

    I hope it helps.

    Thread Starter benbois


    Thanks @maykato.
    Do you know if this plugin manage to bypass text inside a JS code.
    Apparently, the date picker text is implemented inside a JS file!
    So I believe that is not the right way to get the text in French.

    Is there a way (implemented option) in woocommerce_form_field() function like array( ‘data-language’ => ‘fr’ )?

    I didn’t found anything about that!


    Plugin Support MayKato woo-hc



    Are you using a plugin to add the date picker? Loco Translate can change texts that are defined in PO files. You can read more about the Loco Translate here:

    If you can’t change the text you need, then I’d recommend reaching out to the date picker plugin developer directly for further assistance.

    Thread Starter benbois


    Hi @maykato ,
    I don’t not usesd a languages plugin, even for the date picker.
    I use the one implemented in WooCommerce, by using the woocommerce_billing_fields filter and type=’date’ as option.
    Of course, I checked before to ask here, the PO files and co, the data of dates are translated but seems not used by the date picker of WooC.

    Strange to have hard coded this in JS, isn’t it (or it is a mistake from me)?!

    Thread Starter benbois


    Ok, my mistake!
    In fact, I got confused with the embedded date picker of Firefox.
    So I have to add a JS date picker instead of using the Ffx one.
    Sorry for the noise.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WooCommerce field type date in French’ is closed to new replies.