HomeDocumentationAPI Reference
Getting StartedAPI ReferenceBug ReportingCrash ReportingAPMHelp Center
These docs are for v9.0. 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(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.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.