Supported languages


For the team member interface we currently support the following languages.


Code

Language

Code

Language

en-us

English

it

Italian

de

German

nl

Dutch

es-mx

Spanish (Mexico)

no

Norwegian

es

Spanish (Spain)

pl

Polish

fr

French

pt-br

Portugese

id

Indonesian

ru

Russian

ja

Japanese

sv

Swedish

ko

Korean

fi

Finnish

zh-tw

Chinese (Traditional)

vi

Vietnamese

zh-cn

Chinese (Simplified)

th

Thai



How to localize the messenger UI 


You can localize the Freshchat messenger UI based on your user’s browser locale(language) and app/device language settings. For this you need to change the javascript code snippet that connects your website/app with the Freshchat messenger.


Use the following code snippet to do this.

<!--Body-->
<script>
  function initFreshChat() {
    window.fcWidget.init({
      token: "WEB_CHAT_TOKEN", //Replace with your Freshchat Token by going to Settings > Web Messenger
      host: "https://wchat.freshchat.com",
      locale: "fr"
    });
  }
  function initialize(i,t){var e;i.getElementById(t)?initFreshChat():((e=i.createElement("script")).id=t,e.async=!0,e.src="https://wchat.freshchat.com/js/widget.js",e.onload=initFreshChat,i.head.appendChild(e))}function initiateCall(){initialize(document,"freshchat-js-sdk")}window.addEventListener?window.addEventListener("load",initiateCall,!1):window.attachEvent("load",initiateCall,!1);
</script>
<!--Body-->


You can also localize the messenger UI based on user selection such as a language drop-down option on your website. You have to use window.fcWidget.user.setLocale(selectedLanguage) to specify the language in this case. 


Use the below code snippet on your website to do this.

<!--Body-->
<script>
  function initFreshChat() {
    window.fcWidget.init({
      token: "WEB_CHAT_TOKEN", //Replace with your Freshchat Token by going to Settings > Web Messenger
      host: "https://wchat.freshchat.com"
      //Widget initialized without locale
    });
  }
  function initialize(i,t){var e;i.getElementById(t)?initFreshChat():((e=i.createElement("script")).id=t,e.async=!0,e.src="https://wchat.freshchat.com/js/widget.js",e.onload=initFreshChat,i.head.appendChild(e))}function initiateCall(){initialize(document,"freshchat-js-sdk")}window.addEventListener?window.addEventListener("load",initiateCall,!1):window.attachEvent("load",initiateCall,!1);
</script>
<script>
  //Consider a dropdown with id #lang-btn to select the language
  $('#lang-btn').on('change',function() {
    var selectedLanguage = jQuery(this).val();
    //Setting the Widget Locale
    window.fcWidget.user.setLocale(selectedLanguage);//Replace selectedLanguage with preferred language such as ‘fr’
  });
</script>
<!--Body-->


Note

If there is more than one browser locale is enabled, Freshchat will always consider the default (primary)language.