Language Strings
You can update any of the texts displayed to a user in Hosted Experience. You may choose to do this to provide a language specific experience, based on the users browser settings, or simply to customize the text used to fit your brand and user experience.
To do this, the languageStrings property can be defined to update any of the text displayed within the Hosted Experience interface. Language strings object should contain values corresponding to ISO-639-1 languages, e.g. en, es, ja, etc. Within each language code value, provide an object containing the key of the value you want to update. Additionally a specific locale/region may be provided for more precise language targetting, e.g. en-US, en-GB, de-DE, pt-BR.
When a user loads the digital human experience their browser will provide a list of their preferred languages (an array in preference order). Hosted Experience will iteratively search the list of languageStrings you provide to find a match for the key based on the users preferred languages set in their browser. More information on how the browser detects the preferred language can be found here.
If a language code is not provided then the 'default' value will be used. If no 'default' configuration is specified by you, then the Hosted Experience base values will be used.
The below code block displays the complete list of languageString keys that may be used to replace a UI text within Hosted Experience - along with the base values.
You can provide your own strings to be used for each hosted experience language you define.
For example, you can replace the 'es' language callToActionText like this:
Multiple language replacement: