Locale

This section covers how to change the language of the SDK as well as the content of all the messages that your users will see.

Language

The SDK will automatically use the device's current locale, however, you can override it with the following method.

Instabug.setLocale(Instabug.locale.french);

Here are the possible locale values.

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

String Values

You can also override each string shown in the SDK individually to provide your own localization.

Instabug.setStringToKey("Please enter a correct email address", Instabug.strings.invalidEmailMessage);

Here are the possible key values.

Instabug.strings.shakeHint
Instabug.strings.swipeHint
Instabug.strings.edgeSwipeStartHint
Instabug.strings.startAlertText
Instabug.strings.invalidEmailMessage
Instabug.strings.invalidEmailTitle
Instabug.strings.invalidCommentMessage
Instabug.strings.invalidCommentTitle
Instabug.strings.invocationHeader
Instabug.strings.talkToUs
Instabug.strings.reportBug
Instabug.strings.reportFeedback
Instabug.strings.emailFieldHint
Instabug.strings.commentFieldHintForBugReport
Instabug.strings.commentFieldHintForFeedback
Instabug.strings.addVideoMessage
Instabug.strings.addVoiceMessage
Instabug.strings.addImageFromGallery
Instabug.strings.addExtraScreenshot
Instabug.strings.audioRecordingPermissionDeniedTitle
Instabug.strings.audioRecordingPermissionDeniedMessage
Instabug.strings.microphonePermissionAlertSettingsButtonText Instabug.microphonePermissionAlertSettingsButtonText,
Instabug.strings.recordingMessageToHoldText
Instabug.strings.recordingMessageToReleaseText
Instabug.strings.conversationsHeaderTitle
Instabug.strings.screenshotHeaderTitle
Instabug.strings.chatsNoConversationsHeadlineText
Instabug.strings.doneButtonText
Instabug.strings.okButtonText
Instabug.strings.cancelButtonText
Instabug.strings.thankYouText
Instabug.strings.audio
Instabug.strings.video
Instabug.strings.image
Instabug.strings.chatsHeaderTitle
Instabug.strings.team
Instabug.strings.messageNotification
Instabug.strings.messagesNotificationAndOthers

// iOS only 
Instabug.strings.collectingDataText