SDK Locale for Flutter
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 Flutter 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.
Instabug.setLocale(IBGLocale.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.romanian
IBGLocale.russian
IBGLocale.spanish
IBGLocale.swedish
IBGLocale.turkish
IBGLocale.indonesian
IBGLocale.slovak
IBGLocale.norwegian
IBGLocale.hungarian
IBGLocale.finnish
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.invocationHeader
CustomTextPlaceHolderKey.reportQuestion
CustomTextPlaceHolderKey.reportBug
CustomTextPlaceHolderKey.reportFeedback
CustomTextPlaceHolderKey.emailFieldHint
CustomTextPlaceHolderKey.commentFieldHintForBugReport
CustomTextPlaceHolderKey.commentFieldHintForFeedback
CustomTextPlaceHolderKey.commentFieldHintForQuestion
CustomTextPlaceHolderKey.addImageFromGallery
CustomTextPlaceHolderKey.addExtraScreenshot
CustomTextPlaceHolderKey.conversationsListTitle
CustomTextPlaceHolderKey.audioRecordingPermissionDenied
CustomTextPlaceHolderKey.conversationTextFieldHint
CustomTextPlaceHolderKey.voiceMessagePressAndHoldToRecord
CustomTextPlaceHolderKey.voiceMessageReleaseToAttach
CustomTextPlaceHolderKey.reportSuccessfullySent
CustomTextPlaceHolderKey.successDialogHeader
CustomTextPlaceHolderKey.addVideo
CustomTextPlaceHolderKey.videoPressRecord
CustomTextPlaceHolderKey.betaWelcomeMessageWelcomeStepTitle
CustomTextPlaceHolderKey.betaWelcomeMessageWelcomeStepContent
CustomTextPlaceHolderKey.betaWelcomeMessageHowToReportStepTitle
CustomTextPlaceHolderKey.betaWelcomeMessageHowToReportStepContent
CustomTextPlaceHolderKey.betaWelcomeMessageFinishStepTitle
CustomTextPlaceHolderKey.betaWelcomeMessageFinishStepContent
CustomTextPlaceHolderKey.liveWelcomeMessageTitle
CustomTextPlaceHolderKey.liveWelcomeMessageContent
CustomTextPlaceHolderKey.surveysStoreRatingThanksTitle
CustomTextPlaceHolderKey.surveysStoreRatingThanksSubtitle
CustomTextPlaceHolderKey.reportBugDescription
CustomTextPlaceHolderKey.reportFeedbackDescription
CustomTextPlaceHolderKey.reportQuestionDescription
CustomTextPlaceHolderKey.requestFeatureDescription
CustomTextPlaceHolderKey.discardAlertTitle
CustomTextPlaceHolderKey.discardAlertMessage
CustomTextPlaceHolderKey.discardAlertCancel
CustomTextPlaceHolderKey.discardAlertAction
CustomTextPlaceHolderKey.addAttachmentButtonTitleStringName
CustomTextPlaceHolderKey.reportReproStepsDisclaimerBody
CustomTextPlaceHolderKey.reportReproStepsDisclaimerLink
CustomTextPlaceHolderKey.reproStepsProgressDialogBody
CustomTextPlaceHolderKey.reproStepsListHeader
CustomTextPlaceHolderKey.reproStepsListDescription
CustomTextPlaceHolderKey.reproStepsListEmptyStateDescription
CustomTextPlaceHolderKey.reproStepsListItemTitle
CustomTextPlaceHolderKey.okButtonText
CustomTextPlaceHolderKey.audio
CustomTextPlaceHolderKey.image
CustomTextPlaceHolderKey.screenRecording
CustomTextPlaceHolderKey.messagesNotificationAndOthers
CustomTextPlaceHolderKey.insufficientContentTitle
CustomTextPlaceHolderKey.insufficientContentMessage
Updated about 1 year 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.