HomeDocumentationAPI Reference
Getting StartedAPI ReferenceBug ReportingCrash ReportingAPMHelp Center
These docs are for v8.6. Click to read the latest docs for v13.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(Locale.french);

Here are the possible locale values.

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

📘

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.setStringForKey("Please enter a correct email address", IBGCustomTextPlaceHolderKey.invalidEmailMessage);

Here are the possible key values.

IBGCustomTextPlaceHolderKey.shakeHint
IBGCustomTextPlaceHolderKey.swipeHint
IBGCustomTextPlaceHolderKey.invalidEmailMessage
IBGCustomTextPlaceHolderKey.invalidCommentMessage
IBGCustomTextPlaceHolderKey.invocationHeader
IBGCustomTextPlaceHolderKey.startChats
IBGCustomTextPlaceHolderKey.reportBug
IBGCustomTextPlaceHolderKey.reportFeedback
IBGCustomTextPlaceHolderKey.emailFieldHint
IBGCustomTextPlaceHolderKey.commentFieldHintForBugReport
IBGCustomTextPlaceHolderKey.commentFieldHintForFeedback
IBGCustomTextPlaceHolderKey.addVoiceMessage
IBGCustomTextPlaceHolderKey.addImageFromGallery
IBGCustomTextPlaceHolderKey.addExtraScreenshot
IBGCustomTextPlaceHolderKey.conversationsListTitle
IBGCustomTextPlaceHolderKey.audioRecordingPermissionDenied
IBGCustomTextPlaceHolderKey.conversationTextFieldHint
IBGCustomTextPlaceHolderKey.bugReportHeader
IBGCustomTextPlaceHolderKey.feedbackReportHeader
IBGCustomTextPlaceHolderKey.voiceMessagePressAndHoldToRecord
IBGCustomTextPlaceHolderKey.voiceMessageReleaseToAttach
IBGCustomTextPlaceHolderKey.reportSuccessfullySent
IBGCustomTextPlaceHolderKey.successDialogHeader
IBGCustomTextPlaceHolderKey.addVideo
IBGCustomTextPlaceHolderKey.betaWelcomeMessageWelcomeStepTitle
IBGCustomTextPlaceHolderKey.betaWelcomeMessageWelcomeStepContent
IBGCustomTextPlaceHolderKey.betaWelcomeMessageHowToReportStepTitle
IBGCustomTextPlaceHolderKey.betaWelcomeMessageHowToReportStepContent
IBGCustomTextPlaceHolderKey.betaWelcomeMessageFinishStepTitle
IBGCustomTextPlaceHolderKey.betaWelcomeMessageFinishStepContent
IBGCustomTextPlaceHolderKey.liveWelcomeMessageTitle
IBGCustomTextPlaceHolderKey.liveWelcomeMessageContent

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.