Question
How do language translations work in the Classic SDK user interface and HelpCenterActivity
?
Answer
By default, Classic SDKs support a defined set of languages. Add your own variant or language to the SDK by creating your own string file for a specific locale. Another option is to overwrite the existing string in your own string.xml
file and replace a particular language for iOS or Android.
When using SDK, the locale of the interface is based on your device locale. No function in the SDK can change your interface locale. Programmatically, changing the app locale will not reflect on the UI. The only way to change the UI elements translation is to change the device locale and restart the app.
What about the HelpCenterActivity?
When you use setHelpCenterLocaleOverride
for iOS or Android, tell the help center which locale the articles should come from. This doesn't have any impact on the UI. By default, the help center refers to the device, like the rest of the app. For example, if your device locale is en-us
, then the UI, as well as AnswerBot and the article locale will use en-us
.
For example, if you use setHelpCenterLocaleOverride
to set the locale of your help center to fr-fr
, the UI and AnswerBot interactions will remain in en-us
, but all the suggested articles will be offered in fr-fr
.