HomeDocumentationAPI Reference
Getting StartedAPI ReferenceHelp CenterVideo Tours

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.

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.russian
IBGLocale.spanish
IBGLocale.swedish
IBGLocale.turkish
IBGLocale.indonesian
IBGLocale.slovak
IBGLocale.norwegian

📘

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

Here are the possible key values.

CustomTextPlaceHolderKey.shakeHint
CustomTextPlaceHolderKey.swipeHint
CustomTextPlaceHolderKey.invalidEmailMessage
CustomTextPlaceHolderKey.invalidCommentMessage
CustomTextPlaceHolderKey.invocationHeader
CustomTextPlaceHolderKey.reportQuestion
CustomTextPlaceHolderKey.reportBug
CustomTextPlaceHolderKey.reportFeedback
CustomTextPlaceHolderKey.emailFieldHint
CustomTextPlaceHolderKey.commentFieldHintForBugReport
CustomTextPlaceHolderKey.commentFieldHintForFeedback
CustomTextPlaceHolderKey.addImageFromGallery
CustomTextPlaceHolderKey.addExtraScreenshot
CustomTextPlaceHolderKey.conversationsListTitle
CustomTextPlaceHolderKey.audioRecordingPermissionDenied
CustomTextPlaceHolderKey.conversationTextFieldHint
CustomTextPlaceHolderKey.bugReportHeader
CustomTextPlaceHolderKey.feedbackReportHeader
CustomTextPlaceHolderKey.voiceMessagePressAndHoldToRecord
CustomTextPlaceHolderKey.voiceMessageReleaseToAttach
CustomTextPlaceHolderKey.reportSuccessfullySent
CustomTextPlaceHolderKey.successDialogHeader
CustomTextPlaceHolderKey.addVideo
CustomTextPlaceHolderKey.betaWelcomeMessageWelcomeStepTitle
CustomTextPlaceHolderKey.betaWelcomeMessageWelcomeStepContent
CustomTextPlaceHolderKey.betaWelcomeMessageHowToReportStepTitle
CustomTextPlaceHolderKey.betaWelcomeMessageHowToReportStepContent
CustomTextPlaceHolderKey.betaWelcomeMessageFinishStepTitle
CustomTextPlaceHolderKey.betaWelcomeMessageFinishStepContent
CustomTextPlaceHolderKey.liveWelcomeMessageTitle
CustomTextPlaceHolderKey.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.