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:

1
GetSocial.setLanguage(LanguageCodes.DUTCH);
1
GetSocial.setLanguage(LanguageCodes.DUTCH)

iOS

Language constants start with GetSocial_Languages_* prefix and are defined in GetSocialConstants.h file. To change language:

1
[GetSocial setLanguage:GetSocial_Languages_Dutch];
1
GetSocial.setLanguage(GetSocial_Languages_Dutch)

Unity

Language constants are defined in GetSocialSdk.Core.LanguageCodes class. To change language, call on the app start:

1
GetSocial.SetLanguage (LanguageCodes.Dutch);

React Native

To change language to Dutch, for example, call on the app start:

1
2
3
4
5
GetSocial.setLanguage('nl').then(() => {
    console.log('Language', 'Language has been changed to [nl]');
}, (error) => {
    console.log('Error', error.message);
});

Give us your feedback! Was this article helpful?

😀 🙁