Customize and Localize Strings with the Service Chat SDK
To see the complete list of string resource values, refer to the string resources document for the feature you want to customize.
SDK text is translated into more than 25 different languages. In order for your string customizations to take effect in all languages, provide a translation for each language. To add support for a language, create a resources subdirectory that includes a hyphen and the ISO language code at the end of the directory name. For example, values-es/ is the directory containing string resources for Spanish. Android loads the appropriate resources according to the locale settings of the device at run time. The system falls back on the strings in the default values/ directory if the appropriate locale directory isn't found.
The following languages are currently supported:
Language Code | Language |
---|---|
values-ar | Arabic |
values-cs | Czech |
values-da | Danish |
values-de | German |
values-el | Greek |
values-en | English |
values-es | Spanish |
values-fi | Finnish |
values-fr | French |
values-hu | Hungarian |
values-in | Indonesian |
values-it | Italian |
values-iw | Hebrew |
values-ja | Japanese |
values-ko | Korean |
values-nl | Dutch |
values-no | Norwegian |
values-pl | Polish |
values-pt-rBR | Brazilian Portuguese |
values-ro | Romanian |
values-ru | Russian |
values-sv | Swedish |
values-th | Thai |
values-tr | Turkish |
values-uk | Ukranian |
values-vi | Vietnamese |
values-zh | Chinese |
values-zh-rTW | Traditional Chinese |
Check out Supporting Different Languages in the Android Developer documentation for more info about localization.
Example
To learn how you can change string values, let's go through an example. The image below shows the default connection prompt dialog text in English:

You can change the title and body of this dialog by changing the sos_title and the sos_connect_prompt strings in the strings.xml file in the values folders for your locale (values-en/ for English):
<!-- other string resources omitted -->
<string name="sos_title">Live Help</string>
<string name="sos_connect_prompt">
We can connect you with an agent who can troubleshoot your problems</string>
Now, whenever you start a session you see the updated dialog text:
