Skip to content

Translations

You can customize the translations of the Featurebuddy UI by providing a translations object to the Features component.

import { Features } from "@featurebuddy/react-native";
const apiKey = "you-api-key";
const translations = {
title: "Feature Requests",
approvedStatus: "Approved",
inProgressStatus: "In Progress",
doneStatus: "Done",
emptyRequestsText: "No requests",
emptyCommentsText: "No comments",
commentsTitle: "Comments",
addCommentPlaceholder: "Write a comment",
addCommentSubmit: "Send",
addCommentError: "Comment must be at least 8 characters",
createRequestScreenTitle: "Create Request",
createRequestTitle: "Title",
createRequestTitlePlaceholder: "What would you like to improve?",
createRequestDescription: "Description",
createRequestDescriptionPlaceholder:
"Please provide some description for your request",
createRequestEmail: "Email (optional)",
createRequestEmailPlaceholder: "Email address",
createRequestSubmit: "Submit",
createRequestToastSuccess:
"Thank you! Your suggestion was succesfully submited!",
};
export const FeedbackScreen = () => {
return <Features apiKey={apiKey} translations={translations} />;
};