mydnic / laravel-feedback-component

Customizable Feedback Component for Laravel
MIT License
274 stars 25 forks source link

Feature Request: Translation for text #3

Closed stephanrueschenbaum closed 5 years ago

stephanrueschenbaum commented 5 years ago

It would be great, if we can define a localization string in the config file instead of passing the localized text directly. E.g. "feedback.successMessage" instead of "Thank you for your feedback!" and pass that string to the Translation helper function.

stephanrueschenbaum commented 5 years ago

And please provide translation options for all texts, like "Give feedback", "Type your Feedback here..." or "Send feedback".

mydnic commented 5 years ago

I've begin some work about this feature. I've isolated the component texts in translation files. I'll think about how to translate the feedback questions

mydnic commented 5 years ago

Feature added in v1.0 This is a breaking change so you will have to reinstall the package