SDK Locale for iOS
This section covers how to change the language of the SDK in your app as well as the content of all Luciq messages that your users see for iOS 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.
Luciq.setLocale(.french)
[Luciq setLocale:LCQLocaleFrench];
Here are the possible locale values:
.arabic
.azerbaijani
.catalan
.catalanSpain
.chineseSimplified
.chineseTaiwan
.chineseTraditional
.czech
.danish
.dutch
.english
.french
.german
.italian
.japanese
.korean
.norwegian
.polish
.portuguese
.portugueseBrazil
.russian
.slovak
.spanish
.swedish
.turkish
.hungarian
.finnish
LCQLocaleArabic
LCQLocaleChineseSimplified
LCQLocaleChineseTaiwan
LCQLocaleChineseTraditional
LCQLocaleCzech
LCQLocaleDanish
LCQLocaleDutch
LCQLocaleEnglish
LCQLocaleFrench
LCQLocaleGerman
LCQLocaleItalian
LCQLocaleJapanese
LCQLocaleKorean
LCQLocaleNorwegian
LCQLocalePolish
LCQLocalePortugese
LCQLocalePortugueseBrazil
LCQLocaleRussian
LCQLocaleSlovak
LCQLocaleSpanish
LCQLocaleSwedish
LCQLocaleTurkish
Dashboard Language
At the moment, the Luciq 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.
Luciq.setValue("Please enter a correct email address", forStringWithKey: kLCQInvalidEmailTitleStringName)
[Luciq setValue:@"Please enter a correct email address" forStringWithKey:kLCQInvalidEmailTitleStringName];
Here are the possible keys:
kLCQStartAlertTextStringName
kLCQShakeStartAlertTextStringName
kLCQTwoFingerSwipeStartAlertTextStringName
kLCQEdgeSwipeStartAlertTextStringName
kLCQScreenshotStartAlertTextStringName
kLCQInvalidEmailMessageStringName
kLCQInvalidEmailTitleStringName
kLCQInsufficientContentTitleStringName
kLCQInsufficientContentMessageStringName
kLCQInvocationTitleStringName
kLCQAskAQuestionStringName
kLCQReportBugStringName
kLCQReportFeedbackStringName
kLCQReportBugDescriptionStringName
kLCQReportFeedbackDescriptionStringName
kLCQReportQuestionDescriptionStringName
kLCQRequestFeatureDescriptionStringName
kLCQEmailFieldPlaceholderStringName
kLCQCommentFieldPlaceholderForBugReportStringName
kLCQCommentFieldPlaceholderForFeedbackStringName
kLCQCommentFieldPlaceholderForQuestionStringName
kLCQChatReplyFieldPlaceholderStringName
kLCQAddScreenRecordingMessageStringName
kLCQAddVoiceMessageStringName
kLCQAddImageFromGalleryStringName
kLCQAddExtraScreenshotStringName
kLCQAudioRecordingPermissionDeniedTitleStringName
kLCQAudioRecordingPermissionDeniedMessageStringName
kLCQScreenRecordingPermissionDeniedMessageStringName
kLCQMicrophonePermissionAlertSettingsButtonTitleStringName
kLCQMicrophonePermissionAlertLaterButtonTitleStringName
kLCQChatsTitleStringName
kLCQTeamStringName
kLCQRecordingMessageToHoldTextStringName
kLCQRecordingMessageToReleaseTextStringName
kLCQMessagesNotificationTitleSingleMessageStringName
kLCQMessagesNotificationTitleMultipleMessagesStringName
kLCQScreenshotTitleStringName
kLCQOkButtonTitleStringName
kLCQSendButtonTitleStringName
kLCQCancelButtonTitleStringName
kLCQThankYouAlertTitleStringName
kLCQThankYouAlertMessageStringName
kLCQAudioStringName
kLCQScreenRecordingStringName
kLCQImageStringName
kLCQReachedMaximimNumberOfAttachmentsTitleStringName
kLCQReachedMaximimNumberOfAttachmentsMessageStringName
kLCQVideoRecordingFailureMessageStringName
kLCQSurveyEnterYourAnswerTextPlaceholder
kLCQVideoPressRecordTitle
kLCQCollectingDataText
kLCQLowDiskStorageTitle
kLCQLowDiskStorageMessage
kLCQInboundByLineMessage
kLCQExtraFieldIsRequiredText
kLCQExtraFieldMissingDataText
kLCQSurveyIntroTitleText
kLCQSurveyIntroDescriptionText
kLCQSurveyIntroTakeSurveyButtonText
kLCQStoreRatingThankYouTitleText
kLCQStoreRatingThankYouDescriptionText
kLCQCustomSurveyThankYouTitleText
kLCQCustomSurveyThankYouDescriptionText
kLCQSurveysNPSLeastLikelyStringName
kLCQSurveysNPSMostLikelyStringName
kLCQSurveyNextButtonTitle
kLCQSurveySubmitButtonTitle
kLCQSurveyAppStoreThankYouTitle
kLCQSurveyAppStoreButtonTitle
kLCQExpectedResultsStringName
kLCQActualResultsStringName
kLCQStepsToReproduceStringName
kLCQReplyButtonTitleStringName
kLCQFeatureRequestsTitle
kLCQFeatureDetailsTitle
kLCQStringFeatureRequestsRefreshText
kLCQFeatureRequestSortingByRecentlyUpdatedText
kLCQFeatureRequestSortingByTopVotesText
kLCQFeatureRequestErrorStateTitleLabel
kLCQFeatureRequestErrorStateDescriptionLabel
kLCQBetaWelcomeMessageWelcomeStepTitle;
kLCQBetaWelcomeMessageWelcomeStepContent;
kLCQBetaWelcomeMessageHowToReportStepTitle;
kLCQBetaWelcomeMessageHowToReportStepContent;
kLCQBetaWelcomeMessageFinishStepTitle;
kLCQBetaWelcomeMessageFinishStepContent;
kLCQBetaWelcomeDoneButtonTitle;
kLCQLiveWelcomeMessageTitle;
kLCQLiveWelcomeMessageContent;
kLCQReproStepsListHeader
kLCQReproStepsListEmptyStateLabel
kLCQReproStepsListTitle
kLCQReproStepsListItemName
kLCQReproStepsDisclaimerBody
kLCQReproStepsDisclaimerLink
kLCQDiscardAlertTitle
kLCQDiscardAlertMessage
kLCQFrustratingExperienceStringName
kLCQCommentFieldPlaceholderForFrustratingExperienceStringName
kLCQCommentFieldFrustratingExperienceAccessibilityStringHint
Updated 1 day ago
The locale is reflected in all aspects of the Luciq SDK that your users see in your app, including the Welcome Message, bug reporting flow, and Prompt Options.