Going International
Note
All the public APIs in the SDK should be called after initializing the SDK via HelpshiftCocosBridge.install() API
Helpshift SDK X 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 :
Setting SDK language for the given locale with only language code.
HelpshiftCocos2dx::setLanguage("fr");
Setting the SDK language for the given locale with both language code and country code.
HelpshiftCocos2dx::setLanguage("zh-SG");
Note
The default language is set to English (en
) i.e. if you don't set any language using the setLanguage()
API, SDK will use English language.