Going International
Going International
The Helpshift Android SDK supports 47 languages out of the box with
English as default. The translation strings used by the SDK can be
found in the values-<language-code>/values<language-code>.xml
file, under the following folders in <sdk_download_path>/HelpshiftUnityAndroidResources/helpshift-plugin/src/main/res/ -
Values | Language | Locale |
---|---|---|
values | English | en |
values-de | German | de |
values-es | Spanish | es |
values-fr | French | fr |
values-it | Italian | it |
values-ru | Russian | ru |
values-zh-rCN | Simplified-Chinese | zh_CN |
value-zh-rTW | Traditional-Chinese | zh_TW |
values-pt-rBR | Portuguese | pt_BR |
values-ko | Korean | ko |
values-ja | Japanese | ja |
values-tr | Turkish | tr |
values-nl | Dutch | nl |
values-cs | Czech | cs |
values-hu | Hungarian | hu |
values-in | Indonesian | in |
values-th | Thai | th |
values-sl | Slovenian | sl |
values-vi | Vietnamese | vi |
values-ar | Arabic | ar |
values-pl | Polish | pl |
values-no | Norwegian | no |
values-sv | Swedish | sv |
values-fi | Finnish | fi |
values-ro | Romanian | ro |
values-el | Greek | el |
values-da | Danish | da |
values-ms | Malay | ms |
values-iw | Hebrew | iw |
values-sk | Slovak | sk |
values-uk | Ukrainian | uk |
values-ca | Catalan | ca |
values-hr | Croatian | hr |
values-bn | Bengali | bn |
values-bg | Bulgarian | bg |
values-gu | Gujarati | gu |
values-hi | Hindi | hi |
values-kn | Kannada | kn |
values-lv | Latvian | lv |
values-ml | Malayalam | ml |
values-mr | Marathi | mr |
values-pa | Punjabi | pa |
values-fa | Persian | fa |
values-ta | Tamil | ta |
values-te | Telugu | te |
If the end-user has a language already set for their device, the correct language translations will be used. If the said language is not available, English will be used by default.
Set SDK language
Applicable to SDK v3.9.0 and above
You can set the SDK language for the given locale using this API. Locale can contain two-letter lowercase ISO language codes (such as "en") as defined by ISO 639-1 and in addition contain two-letter uppercase ISO country codes (such as "US")as defined by ISO 3166-1. Language code and country code are separated by an underscore ("_"). Example - "pt_BR", "zh_CN".
For example :
Setting SDK language for the given locale with only language code.
HelpshiftSdk.getInstance().setSDKLanguage("fr");
Setting the SDK language for the given locale with both language code and country code.
HelpshiftSdk.getInstance().setSDKLanguage("zh_CN");