Skip to content

Instantly share code, notes, and snippets.

@ArtCC
Last active October 28, 2025 10:01
Show Gist options
  • Select an option

  • Save ArtCC/10a0eff42f1f62c305b28c15883b9b9f to your computer and use it in GitHub Desktop.

Select an option

Save ArtCC/10a0eff42f1f62c305b28c15883b9b9f to your computer and use it in GitHub Desktop.
If you use an .xcstrings file in your project, you can use this class to translate the Votice SDK into the languages you need. Then use it in the SDK configuration; check the documentation.
// MARK: - VoticeTextsProtocol
struct VoticeTexts: VoticeTextsProtocol {
// MARK: - General
let cancel = String(localized: "Cancel")
let error = String(localized: "Error")
let ok = String(localized: "Ok")
let submit = String(localized: "Submit")
let optional = String(localized: "Optional")
let success = String(localized: "Success")
let warning = String(localized: "Warning")
let info = String(localized: "Information")
let genericError = String(localized: "Something went wrong. Please try again.")
let anonymous = String(localized: "Anonymous")
// MARK: - Suggestion List
let loadingSuggestions = String(localized: "Loading suggestions...")
let noSuggestionsYet = String(localized: "No suggestions yet.")
let beFirstToSuggest = String(localized: "Be the first to suggest something!")
let featureRequests = String(localized: "Suggestions")
let all = String(localized: "All")
let activeTab = String(localized: "Only active")
let completedTab = String(localized: "Only completed")
let pending = String(localized: "Pending")
let accepted = String(localized: "Accepted")
let blocked = String(localized: "Blocked")
let inProgress = String(localized: "In Progress")
let completed = String(localized: "Completed")
let rejected = String(localized: "Rejected")
let tapPlusToGetStarted = String(localized: "Tap + to get started")
let loadingMore = String(localized: "Loading more...")
// MARK: - Suggestion Detail
let suggestionTitle = String(localized: "Suggestion")
let issueTitle = String(localized: "Issue")
let close = String(localized: "Close")
let deleteSuggestionTitle = String(localized: "Delete suggestion")
let deleteSuggestionMessage = String(localized: "Are you sure you want to delete this suggestion?")
let delete = String(localized: "Delete")
let suggestedBy = String(localized: "Suggested by")
let suggestedAnonymously = String(localized: "Suggested anonymously")
let votes = String(localized: "votes")
let comments = String(localized: "comments")
let commentsSection = String(localized: "Comments")
let loadingComments = String(localized: "Loading comments...")
let noComments = String(localized: "No comments yet. Be the first to comment!")
let addComment = String(localized: "Add a comment")
let yourComment = String(localized: "Your comment")
let shareYourThoughts = String(localized: "Share your thoughts...")
let yourNameOptional = String(localized: "Your name (optional)")
let enterYourName = String(localized: "Enter your name")
let newComment = String(localized: "New comment")
let post = String(localized: "Post")
let deleteCommentTitle = String(localized: "Delete comment")
let deleteCommentMessage = String(localized: "Are you sure you want to delete this comment?")
let deleteCommentPrimary = String(localized: "Delete")
// MARK: - Create Suggestion
let newSuggestion = String(localized: "New suggestion")
let shareYourIdea = String(localized: "Share your idea")
let helpUsImprove = String(localized: "Help us improve by suggesting new features or improvements.")
let title = String(localized: "Title (Minimum 3 characters)")
let titlePlaceholder = String(localized: "Enter a brief title for your suggestion")
let keepItShort = String(localized: "Keep it short and descriptive")
let descriptionOptional = String(localized: "Description (optional)")
let descriptionPlaceholder = String(localized: "Describe your suggestion in detail...")
let explainWhyUseful = String(localized: "Explain why this feature would be useful")
let yourNameOptionalCreate = String(localized: "Your name (optional)")
let enterYourNameCreate = String(localized: "Enter your name")
let leaveEmptyAnonymous = String(localized: "Leave empty to submit anonymously")
// MARK: - Create Issue (optional feature)
let reportIssue = String(localized: "Report Issue")
let reportIssueSubtitle = String(localized: "Help us fix it by describing the issue you encountered.")
let titleIssuePlaceholder = String(localized: "Enter a brief title for the issue")
let descriptionIssuePlaceholder = String(localized: "Describe the issue in detail...")
let attachImage = String(localized: "Attach Image")
let titleIssueImage = String(localized: "Issue Image")
let loadingImage = String(localized: "Loading image...")
let dragAndDropImage = String(localized: "Drag image here")
let or = String(localized: "or")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment