SDK Locale for Android
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 Android 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(Locale("de"))
Instabug.setLocale(new Locale("de"));
Here are the possible languages.
Locale("en")
Locale("ar")
Locale("az")
Locale("ca")
Locale("ca","ES")
Locale("cs")
Locale("da")
Locale("de")
Locale("es")
Locale("fa")
Locale("fi")
Locale("fr")
Locale("hu")
Locale("in")
Locale("it")
Locale("ja")
Locale("ko")
Locale("nl")
Locale("pl")
Locale("pt","BR")
Locale("pt","PT")
Locale("ru")
Locale("sk")
Locale("sv")
Locale("tr")
Locale("zh","CN")
Locale("zh","TW")
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 in the SDK individually using the following method.
val placeHolder = InstabugCustomTextPlaceHolder()
placeHolder.set(InstabugCustomTextPlaceHolder.Key.REPORT_FEEDBACK, "Send Feedback")
Instabug.setCustomTextPlaceHolders(placeHolder)
InstabugCustomTextPlaceHolder placeHolder = new InstabugCustomTextPlaceHolder();
placeHolder.set(InstabugCustomTextPlaceHolder.Key.REPORT_FEEDBACK, "Send Feedback");
Instabug.setCustomTextPlaceHolders(placeHolder);
Here are the possible keys.
SHAKE_HINT
SWIPE_HINT
INVALID_EMAIL_MESSAGE
INVALID_COMMENT_MESSAGE
INVOCATION_HEADER
REPORT_BUG
REPORT_FEEDBACK
REPORT_QUESTION
REPORT_BUG_DESCRIPTION
REPORT_FEEDBACK_DESCRIPTION
REPORT_QUESTION_DESCRIPTION
REQUEST_FEATURE_DESCRIPTION
EMAIL_FIELD_HINT
COMMENT_FIELD_HINT_FOR_BUG_REPORT
COMMENT_FIELD_HINT_FOR_FEEDBACK
ADD_VOICE_MESSAGE
ADD_IMAGE_FROM_GALLERY
ADD_EXTRA_SCREENSHOT
CONVERSATIONS_LIST_TITLE
AUDIO_RECORDING_PERMISSION_DENIED
CONVERSATION_TEXT_FIELD_HINT
BUG_REPORT_HEADER
FEEDBACK_REPORT_HEADER
VOICE_MESSAGE_PRESS_AND_HOLD_TO_RECORD
VOICE_MESSAGE_RELEASE_TO_ATTACH
REPORT_SUCCESSFULLY_SENT
SUCCESS_DIALOG_HEADER
ADD_VIDEO
VIDEO_PLAYER_TITLE
FEATURES_REQUEST
FEATURES_REQUEST_ADD_FEATURE_TOAST
FEATURES_REQUEST_ADD_FEATURE_THANKS_MESSAGE
SURVEYS_WELCOME_SCREEN_TITLE
SURVEYS_WELCOME_SCREEN_SUBTITLE
SURVEYS_WELCOME_SCREEN_BUTTON
INSTABUG_CUSTOM_SURVEY_THANKS_TITLE
INSTABUG_CUSTOM_SURVEY_THANKS_SUBTITLE
BETA_WELCOME_MESSAGE_WELCOME_STEP_TITLE
BETA_WELCOME_MESSAGE_WELCOME_STEP_CONTENT
BETA_WELCOME_MESSAGE_HOW_TO_REPORT_STEP_TITLE
BETA_WELCOME_MESSAGE_HOW_TO_REPORT_STEP_CONTENT
BETA_WELCOME_MESSAGE_FINISH_STEP_TITLE
BETA_WELCOME_MESSAGE_FINISH_STEP_CONTENT
LIVE_WELCOME_MESSAGE_TITLE
LIVE_WELCOME_MESSAGE_CONTENT
REPLIES_NOTIFICATION_DISMISS_BUTTON
REPLIES_NOTIFICATION_REPLY_BUTTON
CHATS_TEAM_STRING_NAME
REPORT_REPRO_STEPS_DISCLAIMER_BODY
REPRO_STEPS_PROGRESS_DIALOG_BODY
REPRO_STEPS_LIST_HEADER
REPRO_STEPS_LIST_DESCRIPTION
REPRO_STEPS_LIST_EMPTY_STATE_DESCRIPTION
REPORT_ADD_ATTACHMENT_HEADER
REPORT_DISCARD_DIALOG_TITLE
REPORT_DISCARD_DIALOG_BODY
REPORT_DISCARD_DIALOG_NEGATIVE_ACTION
REPORT_DISCARD_DIALOG_POSITIVE_ACTION
REPORT_REPRO_STEPS_DISCLAIMER_LINK
FRUSTRATING_EXPERIENCE_TITLE
COMMENT_FIELD_HINT_FOR_FRUSTRATING_EXPERIENCE
Updated 3 months 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.