HomeDocumentationAPI Reference
Getting StartedAPI ReferenceBug ReportingCrash ReportingAPMHelp Center
These docs are for v8.2. Click to read the latest docs for v12.0.0.

SDK Locale

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

Setting the Locale

The SDK will automatically use the current locale of your user's device, 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

📘

Dashboard Language

At the moment, the Instabug dashboard only supports English. Changing the SDK locale will not change the language of your dashboard.

Overriding String Values

You can also override each string shown to your users individually using the following method.

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

What’s Next

The locale is reflected in all aspects of the Instabug SDK that your users see in your app, including the Welcome Message, bug reporting flow, and Prompt Options.