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(Locale("de"));
Instabug.setLocale(Instabug.locale.french);
cordova.plugins.instabug.setLocale(
'french',
function () {
console.log('Locale changed.');
},
function (error) {
console.log('Failed to fail locale - ' + error);
}
);
//iOS
Instabug.SetLocale(IBGLocale.English);
//Android
new Instabug.Builder(this, "YOUR_ANDROID_TOKEN")
.SetInvocationEvent(InstabugInvocationEvent.Shake)
.SetLocale(Locale.French)
.Build();
Instabug.setLocale(Locale.french);
Locale Parameters:
.arabic
.chinese
.chinese
.czech
.danish
.english
.french
.german
.italian
.japanese
.korean
.polish
.portugese
.portugueseBrazil
.russian
.slovak
.spanish
.swedish
.turkish
IBGLocaleArabic
IBGLocaleChineseSimplified
IBGLocaleChineseTaiwan
IBGLocaleChineseTraditional
IBGLocaleCzech
IBGLocaleDanish
IBGLocaleDutch
IBGLocaleEnglish
IBGLocaleFrench
IBGLocaleGerman
IBGLocaleItalian
IBGLocaleJapanese
IBGLocaleKorean
IBGLocaleNorwegian
IBGLocalePolish
IBGLocalePortugese
IBGLocalePortugueseBrazil
IBGLocaleRussian
IBGLocaleSlovak
IBGLocaleSpanish
IBGLocaleSwedish
IBGLocaleTurkish
new Locale("en");
new Locale("fr");
new Locale("de");
new Locale("it");
new Locale("ja");
new Locale("ko");
new Locale("zh");
new Locale("zh", "CN");
new Locale("zh", "TW");
new Locale("ar");
new Locale("cs");
new Locale("da");
new Locale("es");
new Locale("fa");
new Locale("in");
new Locale("nl");
new Locale("pl");
new Locale("pt");
new Locale("ru");
new Locale("sk");
new Locale("sv");
new Locale("tr");
Instabug.locale.arabic
Instabug.locale.chineseSimplified
Instabug.locale.chineseTraditional
Instabug.locale.czech
Instabug.locale.danish
Instabug.locale.english
Instabug.locale.french
Instabug.locale.german
Instabug.locale.italian
Instabug.locale.japanese
Instabug.locale.polish
Instabug.locale.portugueseBrazil
Instabug.locale.russian
Instabug.locale.spanish
Instabug.locale.swedish
Instabug.locale.turkish
'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
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