Skip to content

Translations

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

import 'package:featurebuddy/featurebuddy.dart';
void main() {
FeatureBuddyConfig.configure(apiKey: 'YOUR_API_KEY_GOES_HERE');
runApp(const MyApp());
}
class FeaturesScreen extends StatelessWidget {
const FeaturesScreen({super.key});
static const localization = Localization(
approvedStatus: 'Approved',
inProgressStatus: 'In Progress',
doneStatus: 'Done',
emptyRequestsText: 'No requests',
emptyCommentsText: 'No comments',
commentsTitle: 'Comments',
developersNote: 'Developer\'s note',
addCommentPlaceholder: 'Write a comment',
createRequestScreenTitle: 'Create Request',
createRequestTitle: 'Title',
createRequestTitlePlaceholder: 'Add a title for your request',
createRequestDescription: 'Description',
createRequestDescriptionPlaceholder: 'Please provide detailed description for your request',
createRequestSubmit: 'Submit',
createRequestToastSuccess: 'Thank you! Your suggestion was succesfully submited!',
createRequestEmailPlaceholder: 'Enter your email',
createRequestEmail: 'Email (optional)',
);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Features'),
),
body: const FeatureBuddy(localization: localization),
);
}
}