translate label needed

what plugin or any method that we can translate whole application ? i'm newbie and may looking for helpful from you guys
4 Replies
pechtelt
pechtelt12mo ago
I just use the Laravel standard, see: https://laravel.com/docs/10.x/localization
Laravel - The PHP Framework For Web Artisans
Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.
Dennis Koch
Dennis Koch12mo ago
Every property like $modelLabel etc has a method modelLabel(). Via the method you can return a translation via the mentioned translation methods:
public function modelLabel() {
return __('your.translation');
}
public function modelLabel() {
return __('your.translation');
}
ironheartkh
ironheartkh12mo ago
can you recommand plugin for translate ?
Dennis Koch
Dennis Koch12mo ago
For the labels it’s just Laravel. For the inputs we offer a spatie translations Integration