Skip to main content

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

LanguageCode
Englishen
Germande
Spanishes
Frenchfr
Italianit
Russianru
Simplified-Chinesezh-Hans
Traditional-Chinesezh-Hant
Hong Kong-Chinesezh-HK
Singapore-Chinesezh-SG
Portuguesept
Brazilian-Portuguesept-br
Koreanko
Japaneseja
Turkishtr
Dutchnl
Czechcs
Hungarianhu
Indonesianid
Thaith
Sloveniansl
Vietnamesevi
Arabicar
Polishpl
Norwegianno
Swedishsv
Finnishfi
Romanianro
Greekel
Danishda
Malayms
Hebrewiw
Slovaksk
Ukrainianuk
Catalanca
Croatianhr
Bengalibn
Bulgarianbg
Gujaratigu
Hindihi
Kannadakn
Latvianlv
Malayalamml
Marathimr
Punjabipa
Persianfa
Tamilta
Telugute

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.