Going International
Note
All the public APIs in the SDK should be called after initializing the SDK via Helpshift installWithPlatformId API
Helpshift SDK currently supports 48 languages out-of-the-box (with English as the default).
Supported languages
Language | Code |
---|---|
English | en |
German | de |
Spanish | es |
French | fr |
Italian | it |
Russian | ru |
Simplified-Chinese | zh-Hans |
Traditional-Chinese | zh-Hant |
Hong Kong-Chinese | zh-HK |
Singapore-Chinese | zh-SG |
Portuguese | pt |
Brazilian-Portuguese | pt-br |
Korean | ko |
Japanese | ja |
Turkish | tr |
Dutch | nl |
Czech | cs |
Hungarian | hu |
Indonesian | id |
Thai | th |
Slovenian | sl |
Vietnamese | vi |
Arabic | ar |
Polish | pl |
Norwegian | no |
Swedish | sv |
Finnish | fi |
Romanian | ro |
Greek | el |
Danish | da |
Malay | ms |
Hebrew | iw |
Slovak | sk |
Ukrainian | uk |
Catalan | ca |
Croatian | hr |
Bengali | bn |
Bulgarian | bg |
Gujarati | gu |
Hindi | hi |
Kannada | kn |
Latvian | lv |
Malayalam | ml |
Marathi | mr |
Punjabi | pa |
Persian | fa |
Tamil | ta |
Telugu | te |
Setting a Language
You can set the SDK language using this API. By default, the device's preferred language is used by the SDK.
The call will fail in the following cases:
- If a Helpshift session is already active at the time of invocation
- Language code is incorrect
For example :
- Objective-C Example
- Swift Example
Definition | setLanguage: |
Example Code | [Helpshift setLanguage:"fr"]; where @"fr" is the language code. You can also pass a language code and a country code like: [Helpshift setLanguage:@"zh-SG"]; |
Definition | setLanguage() |
Example Code | Helpshift.setLanguage("fr") where "fr" is the language code. You can also pass a language code and a country code like: Helpshift.setLanguage("zh-SG"); |
Here's a screenshot of how SDK will look after setting the language to French.
Note
- The default language is set to English (
en
) i.e. if you don't set any language using thesetLanguage:
API, SDK will use English language. - All language codes are case-sensitive.