-
-
Notifications
You must be signed in to change notification settings - Fork 706
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
multilingual? #30
Comments
Not out the box. But here's an idea: instead of logging the descriptions of the events, you could store a key that points to a translation you keep in a db or file. |
You can make a service provider and translate those 3 hard coded descriptions (updated, created, deleted) there in a boot() method. for example using language file and trans()
|
And if you do it on the model customise the description for an event, you can use this one: ...on Model public function getDescriptionForEvent(string $eventName): string
{
return "Se ha " .trans('logs.'.$eventName) . " la exportación #:subject.id";
} Happy coding! |
hello
it is possible to use multilingual so that users see the activities in their own language?
best regards Martin
The text was updated successfully, but these errors were encountered: