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 for React Native apps.
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.
import Instabug, { Locale } from 'instabug-reactnative';
Instabug.setLocale(Locale.french);
Here are the possible locale values.
Locale.arabic
Locale.azerbaijani
Locale.chineseSimplified
Locale.chineseTraditional
Locale.czech
Locale.danish
Locale.dutch
Locale.english
Locale.french
Locale.german
Locale.italian
Locale.japanese
Locale.polish
Locale.portugueseBrazil
Locale.romanian
Locale.russian
Locale.spanish
Locale.swedish
Locale.turkish
Locale.korean
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.setString("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.thankYouAlertText
Instabug.strings.invocationHeader
Instabug.strings.reportQuestion
Instabug.strings.reportBug
Instabug.strings.reportFeedback
Instabug.strings.reportBugDescription
Instabug.strings.reportFeedbackDescription
Instabug.strings.reportQuestionDescription
Instabug.strings.requestFeatureDescription
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.doneButtonText
Instabug.strings.okButtonText
Instabug.strings.cancelButtonText
Instabug.strings.thankYouText
Instabug.strings.welcomeMessagebetaWelcomeStepTitle
Instabug.strings.welcomeMessagebetaWelcomeStepContent
Instabug.strings.welcomeMessagebetaHowToReportStepTitle
Instabug.strings.welcomeMessagebetaHowToReportStepContent
Instabug.strings.welcomeMessagebetaFinishStepTitle
Instabug.strings.welcomeMessagebetaFinishStepContent
Instabug.strings.audio
Instabug.strings.image
Instabug.strings.team
Instabug.strings.messageNotification
Instabug.strings.messagesNotificationAndOthers
Instabug.strings.insufficientContentTitle
Instabug.strings.insufficientContentMessage
// iOS only
Instabug.strings.collectingDataText
Updated 13 days ago
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.