Locale

This section covers how to change the language of the SDK as well as the content of all the messages that your users will see.

Language

The SDK will automatically use the device's current locale, however, you can override it with the following method.

[Instabug setLocale:IBGLocaleFrench];
Instabug.setLocale(.french)

Here are the possible locale values.

IBGLocaleArabic    
IBGLocaleChineseSimplified    
IBGLocaleChineseTaiwan
IBGLocaleChineseTraditional
IBGLocaleCzech
IBGLocaleDanish
IBGLocaleDutch
IBGLocaleEnglish
IBGLocaleFrench
IBGLocaleGerman
IBGLocaleItalian
IBGLocaleJapanese
IBGLocaleKorean
IBGLocaleNorwegian
IBGLocalePolish
IBGLocalePortugese
IBGLocalePortugueseBrazil
IBGLocaleRussian
IBGLocaleSlovak
IBGLocaleSpanish
IBGLocaleSwedish
IBGLocaleTurkish
arabic    
chinese     
chinese 
czech
danish
english
french
german
italian
japanese
korean
polish
portugese
portugueseBrazil
russian
slovak
spanish
swedish
turkish

Strings Values

You can also override each string shown in the SDK individually to provide your own localization.

[Instabug setValue:@"Please enter a correct email address" forStringWithKey:kIBGInvalidEmailTitleStringName];
Instabug.setValue("Please enter a correct email address", forStringWithKey: kIBGInvalidEmailTitleStringName)

Here are the possible keys

kIBGStartAlertTextStringName
kIBGShakeStartAlertTextStringName
kIBGTwoFingerSwipeStartAlertTextStringName
kIBGEdgeSwipeStartAlertTextStringName
kIBGScreenshotStartAlertTextStringName
kIBGInvalidEmailMessageStringName
kIBGInvalidEmailTitleStringName
kIBGInvalidCommentMessageStringName
kIBGInvalidCommentTitleStringName
kIBGInvocationTitleStringName
kIBGTalkToUsStringName
kIBGReportBugStringName
kIBGReportFeedbackStringName
kIBGEmailFieldPlaceholderStringName
kIBGCommentFieldPlaceholderForBugReportStringName
kIBGCommentFieldPlaceholderForFeedbackStringName
kIBGChatReplyFieldPlaceholderStringName
kIBGAddScreenRecordingMessageStringName
kIBGAddVoiceMessageStringName
kIBGAddImageFromGalleryStringName
kIBGAddExtraScreenshotStringName
kIBGAudioRecordingPermissionDeniedTitleStringName
kIBGAudioRecordingPermissionDeniedMessageStringName
kIBGScreenRecordingPermissionDeniedMessageStringName
kIBGMicrophonePermissionAlertSettingsButtonTitleStringName
kIBGMicrophonePermissionAlertLaterButtonTitleStringName
kIBGChatsTitleStringName
kIBGTeamStringName
kIBGRecordingMessageToHoldTextStringName
kIBGRecordingMessageToReleaseTextStringName
kIBGMessagesNotificationTitleSingleMessageStringName
kIBGMessagesNotificationTitleMultipleMessagesStringName
kIBGScreenshotTitleStringName
kIBGOkButtonTitleStringName
kIBGSendButtonTitleStringName
kIBGCancelButtonTitleStringName
kIBGThankYouAlertTitleStringName
kIBGThankYouAlertMessageStringName
kIBGAudioStringName
kIBGScreenRecordingStringName
kIBGImageStringName
kIBGReachedMaximimNumberOfAttachmentsTitleStringName
kIBGReachedMaximimNumberOfAttachmentsMessageStringName
kIBGVideoRecordingFailureMessageStringName
kIBGSurveyEnterYourAnswerTextPlaceholder
kIBGSurveyNoAnswerTitle
kIBGSurveyNoAnswerMessage
kIBGVideoPressRecordTitle
kIBGCollectingDataText
kIBGLowDiskStorageTitle
kIBGLowDiskStorageMessage
kIBGInboundByLineMessage
kIBGExtraFieldIsRequiredText
kIBGExtraFieldMissingDataText
kIBGSurveyIntroTitleText
kIBGSurveyIntroDescriptionText
kIBGSurveyIntroTakeSurveyButtonText
kIBGSurveyIntroDismissButtonText
kIBGSurveyThankYouTitleText
kIBGSurveyThankYouDescriptionText
kIBGSurveysNPSLeastLikelyStringName
kIBGSurveysNPSMostLikelyStringName
kIBGSurveyNextButtonTitle
kIBGSurveySubmitButtonTitle
kIBGSurveyAppStoreThankYouTitle
kIBGSurveyAppStoreButtonTitle
kIBGExpectedResultsStringName
kIBGActualResultsStringName
kIBGStepsToReproduceStringName
kIBGReplyButtonTitleStringName
kIBGFeatureRequestsTitle 
kIBGFeatureDetailsTitle 
kIBGStringFeatureRequestsRefreshText 
kIBGFeatureRequestSortingByRecentlyUpdatedText 
kIBGFeatureRequestSortingByTopVotesText 
kIBGFeatureRequestErrorStateTitleLabel 
kIBGFeatureRequestErrorStateDescriptionLabel 
kIBGBetaWelcomeMessageWelcomeStepTitle;
kIBGBetaWelcomeMessageWelcomeStepContent;
kIBGBetaWelcomeMessageHowToReportStepTitle;
kIBGBetaWelcomeMessageHowToReportStepContent;
kIBGBetaWelcomeMessageFinishStepTitle;
kIBGBetaWelcomeMessageFinishStepContent;
kIBGBetaWelcomeDoneButtonTitle;
kIBGLiveWelcomeMessageTitle;
kIBGLiveWelcomeMessageContent;