You are viewing limited content. For full access, please sign in.

Question

Question

How to change the date picker to french?

asked on February 24, 2021

Hi all,

Some times, my date picker is in english and sometimes in french.

In my mind, it's because about the web browser?

How can I change it to french?

 

Thanks in advance.

Regards

1 0

Answer

SELECTED ANSWER
replied on February 24, 2021 Show version history

If you want to force it to be in French despite possible browser settings saying to be in English, you can do that with Javascript.

If you check on the server where LFForms is running, you should be able to find the datepicker language scripts.

Then use Javascript such as this: 

$(document).ready(function () {
  $.getScript('http://SERVERNAME/forms/lib/jquery/i18n/jquery.ui.datepicker-fr.js', function () {      
  	$('#q1 input').datepicker( $.datepicker.regional[ "fr" ] );
  });
});

Now I see the datepicker showing in French, even though my browser is definitely set to US English.

2 0
replied on February 24, 2021

Hi Matthew,

Thanks for your help.

It's working!

Regards

1 0
replied on February 24, 2021

Glad to hear it!

0 0

Replies

replied on February 25, 2021

The language of the date picker will follow the browser's language settings.

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.