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.
For example, enter 'en' or 'en-US' for English.
embedded_svc.settings.language = en_US
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.