Set Locale

The locale of the SDK can be changed by passing the required locale enum to this method.

Method

Instabug.setLocale(.french)
[Instabug setLocale:IBGLocaleFrench];
Instabug.setLocale(new Locale("de"));
Instabug.setLocale(Locale("de"))
import Instabug, { Locale } from 'instabug-reactnative';

Instabug.setLocale(Locale.french);
Instabug.setLocale(IBGLocale.french);
Instabug.setLocale('french');
//iOS
Instabug.SetLocale(IBGLocale.English);

//Android
new Instabug.Builder(this, "YOUR_ANDROID_TOKEN")
            .SetInvocationEvent(InstabugInvocationEvent.Shake)
            .SetLocale(Locale.French)
                        .Build();
Locale Parameters:

.arabic
.azerbaijani
.catalan
.catalanSpain
.chineseSimplified
.chineseTaiwan
.chineseTraditional
.czech
.danish
.dutch
.english
.french
.german
.italian
.japanese
.korean
.norwegian
.polish
.portuguese
.portugueseBrazil
.russian
.slovak
.spanish
.swedish
.turkish
.hungarian
.finnish
IBGLocaleArabic    
IBGLocaleChineseSimplified    
IBGLocaleChineseTaiwan
IBGLocaleChineseTraditional
IBGLocaleCzech
IBGLocaleDanish
IBGLocaleDutch
IBGLocaleEnglish
IBGLocaleFrench
IBGLocaleGerman
IBGLocaleItalian
IBGLocaleJapanese
IBGLocaleKorean
IBGLocaleNorwegian
IBGLocalePolish
IBGLocalePortugese
IBGLocalePortugueseBrazil
IBGLocaleRussian
IBGLocaleSlovak
IBGLocaleSpanish
IBGLocaleSwedish
IBGLocaleTurkish
Locale("en")
Locale("ar")
Locale("az")
Locale("ca")
Locale("ca","ES")
Locale("cs")
Locale("da")
Locale("de")
Locale("es")
Locale("fa")
Locale("fi")
Locale("fr")
Locale("hu")
Locale("in")
Locale("it")
Locale("ja")
Locale("ko")
Locale("nl")
Locale("pl")
Locale("pt","BR")
Locale("pt","PT")
Locale("ru")
Locale("sk")
Locale("sv")
Locale("tr")
Locale("zh","CN")
Locale("zh","TW")
Locale("en")
Locale("ar")
Locale("az")
Locale("ca")
Locale("ca","ES")
Locale("cs")
Locale("da")
Locale("de")
Locale("es")
Locale("fa")
Locale("fi")
Locale("fr")
Locale("hu")
Locale("in")
Locale("it")
Locale("ja")
Locale("ko")
Locale("nl")
Locale("pl")
Locale("pt","BR")
Locale("pt","PT")
Locale("ru")
Locale("sk")
Locale("sv")
Locale("tr")
Locale("zh","CN")
Locale("zh","TW")
Locale.arabic
Locale.azerbaijani
Locale.chineseSimplified
Locale.chineseTraditional
Locale.czech
Locale.danish
Locale.dutch
Locale.english
Locale.french
Locale.german
Locale.italian
Locale.japanese
Locale.polish
Locale.portugueseBrazil
Locale.romanian
Locale.russian
Locale.spanish
Locale.swedish
Locale.turkish
Locale.korean
IBGLocale.arabic
IBGLocale.azerbaijani
IBGLocale.chineseSimplified
IBGLocale.chineseTraditional
IBGLocale.czech
IBGLocale.danish
IBGLocale.dutch
IBGLocale.english
IBGLocale.french
IBGLocale.german
IBGLocale.italian
IBGLocale.japanese
IBGLocale.korean
IBGLocale.polish
IBGLocale.portugueseBrazil
IBGLocale.portuguesePortugal
IBGLocale.romanian
IBGLocale.russian
IBGLocale.spanish
IBGLocale.swedish
IBGLocale.turkish
IBGLocale.indonesian
IBGLocale.slovak
IBGLocale.norwegian
'arabic'
'chineseSimplified'
'chineseTraditional'
'english'
'french'
'german'
'italian'
'japanese'
'korean'
'polish'
'portugueseBrazil'
'russian'
'spanish'
'swedish'
'turkish'
'czech'
//iOS
IBGLocale.Arabic,
IBGLocale.ChineseSimplified
IBGLocale.ChineseTaiwan
IBGLocale.ChineseTraditional
IBGLocale.Czech
IBGLocale.Danish
IBGLocale.English
IBGLocale.French
IBGLocale.German
IBGLocale.Italian
IBGLocale.Japanese
IBGLocale.Korean
IBGLocale.Norwegian
IBGLocale.Polish
IBGLocale.Portugese
IBGLocale.PortugueseBrazil
IBGLocale.Russian
IBGLocale.Slovak
IBGLocale.Spanish
IBGLocale.Swedish
IBGLocale.Turkish

//Android
Locale.Arabic
Locale.ChineseSimplified
Locale.ChineseTraditional
Locale.Czech
Locale.Danish
Locale.English
Locale.French
Locale.German
Locale.Italian
Locale.Japanese
Locale.Polish
Locale.PortugueseBrazil
Locale.Russian
Locale.Spanish
Locale.Swedish
Locale.Turkish