Localization¶
To provide the best user experience for the users, GetSocial SDK supports multiple languages.
Fully Supported Languages¶
Currently GetSocial fully supports 26 languages. Missing your one? Reach us at support@getsocial.im or via the Intercom.
Language | ISO Code |
---|---|
Chinese Simplified | zh-Hans |
Chinese Traditional | zh-Hant |
Danish | da |
Dutch | nl |
English | en |
French | fr |
German | de |
Gujarati | gu |
Hindi | hi |
Icelandic | is |
Indonesian | id |
Italian | it |
Japanese | ja |
Korean | ko |
Malay | ms |
Norwegian | nb |
Polish | pl |
Portuguese | pt |
Portuguese (Brazil) | pt-br |
Russian | ru |
Spanish | es |
Swedish | sv |
Tagalog | tl |
Turkish | tr |
Ukrainian | uk |
Vietnamese | vi |
Partially Supported Languages¶
The following 10 languages are supported only for Smart Invites content localization. If you set one of these languages, UI elements and other texts will appear in English.
Language | ISO Code |
---|---|
Bengali | bn |
Bhojpuri | bho |
Kannada | kn |
Malayalam | ml |
Marathi | mr |
Punjabi | pa |
Spanish (Latin American) | es-419 |
Tamil | ta |
Telugu | te |
Thai | th |
Changing SDK Language¶
On the application start, GetSocial SDK automatically fetches device language and start using it. If language is not supported SDK falls back to English.
You can set the SDK language manually, see the snippets below for details. Please note, that SDK keeps the language in the session, which means you have to set it on each SDK initialization.
Using GetSocial UI?
To reflect language change in GetSocial UI, views have to be reopened.
Android¶
Language constants are defined in im.getsocial.sdk.consts.LanguageCodes
class. To change language, call on the app start:
GetSocial.setLanguage(LanguageCodes.DUTCH)
iOS¶
Language constants are defined in LanguageCodes
file. To change language:
GetSocial.setLanguage(LanguageCodes.dutch)