Set the Language

To customize the language for a deployment, including custom labels, set the parameter to a Salesforce supported language. This parameter is empty and must be set in your Embedded Service code snippet for chat.

The legacy chat product is in maintenance-only mode, and we won't continue to build new features. You can continue to use it, but we no longer recommend that you implement new chat channels. Instead, you can modernize your customer communication with Messaging for In-App and Web. Messaging offers many of the chat features that you love plus asynchronous conversations that can be picked back up at any time.

Important

For example, enter 'en' or 'en-US' for English. embedded_svc.settings.language = en_US

Use only the http locale format (like en-US or en).

Note

Important considerations for language translations:
  • If no language is set in the code snippet or is invalid (empty code string, wrong format, or unsupported), the Site Guest User language for the site associated with your Embedded Service deployment is used.
  • When Translation Workbench is disabled, the language set for the Site Guest User of the Site associated with your Embedded Service deployment is used.
  • The language on a label is set only with the embedded_svc.settings.language parameter or the Site Guest User language, and not the chat button.