Skip to main content

Localizing Messages

The SDK's embedded messaging component includes built-in localization support. Text elements such as filter labels, empty states, and error messages are localized based on the user's language setting.

Default Language Used

The user's default language is determined based on the target platform:

  • Android - Device language is determined using Locale.getDefault().
  • iOS - Device preferred languages are determined using Locale.preferredLanguages. The first language in the list is used.
  • Web - Browser language is determined using navigator.language.

Manually Setting the Language

Set the user's preferred language using the setLanguage API . Changes are reflected immediately.

Fallback Behavior

If the user's language is not supported, the SDK defaults to English.

Category Translations

Category names displayed in the filter list can be configured with translations in SAP Engagement Cloud. The SDK automatically displays the appropriate translation based on the user's language.