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 by the following method to instabug builder:

Instabug.setLocale(new Locale("de"));

Here are the possible languages.

new Locale("en");
new Locale("fr");
new Locale("de");
new Locale("it");
new Locale("ja");
new Locale("ko");
new Locale("zh");
new Locale("zh", "CN");
new Locale("zh", "TW");
new Locale("ar");
new Locale("cs");
new Locale("da");
new Locale("es");
new Locale("fa");
new Locale("in");
new Locale("nl");
new Locale("pl");
new Locale("pt");
new Locale("ru");
new Locale("sk");
new Locale("sv");
new Locale("tr");

String Values

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

InstabugCustomTextPlaceHolder placeHolder = new InstabugCustomTextPlaceHolder();
placeHolder.set(REPORT_FEEDBACK, "Send Feedback");
Instabug.setCustomTextPlaceHolders(placeHolder);

Here are the possible keys.

SHAKE_HINT
SWIPE_HINT
INVALID_EMAIL_MESSAGE
INVALID_COMMENT_MESSAGE
INVOCATION_HEADER
START_CHATS
REPORT_BUG
REPORT_FEEDBACK
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