Newer Version Available

This content describes an older version of this product. View Latest

Set the Language

This parameter is empty and must be set in your Embedded Service generated code snippet for Chat.

To customize the language for a deployment, including custom labels, set the parameter to a Salesforce supported language. 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 there is no language set in your code snippet or if it’s invalid (due to an empty code string, wrong format, or language not supported), 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.