Ask your own question.

Someone from our team or the Crisp community will answer publicly.

We will ask your email to let you know when an answer is published.

Thanks! We will let you know when an answer is published.

Tell us why you are not satisfied.

Tell us how we can improve, and what is missing.

We will answer if we need more details, and improve this help section.

Thanks! We will get back to you if we need more information.

How to set the chatbox language dynamically?

By default, Crisp auto sets the chatbox language based on the visitor web browser language. You can even force a global language in the website settings. If, however, your website is localized in multiple languages, and you'd like to force chatbox language based on the current language of your website, you may want to use the Crisp JavaScript API.

How to force locale

This configuration can be forced by adding a locale parameter to the special variable CRISP_RUNTIME_CONFIG, as follows (for French):

CRISP_RUNTIME_CONFIG = {
  locale : "fr"
};

The locale code follows the ISO 639-1 format.

Add this JavaScript code right in the Crisp chatbox HTML code in the <script></script> tag.

Want to know more about the $crisp interface? Read: How to use $crisp Javascript SDK?

Any trouble?

If you cannot get the locale to be forced this way, check that chatbox locales are not restricted. Go to your website configuration:

  • Go to: https://app.crisp.chat
  • Go to your settings: click on the settings icon
  • Click on "Websites"
  • Select your website in the list
  • Look for the locales configuration box and select "Detect from visitor country"
Valerian Saliou
Was this article helpful?YesNo
Thanks! 👍
Don’t find what you are looking for?

Ask your own question.

Ask Now