Approvals

Hy, did anyone has ever used this add-on : https://filamentphp.com/plugins/eightynine-approvals I having some trobles for translate here, cause has no Multi language support, but i really apreciate the plugin, So if anyone nows anything about, please let me know.
Filament
Approvals by Eighty Nine - Filament
This package allows you to easily implement approval flows in your Laravel Filament application.
9 Replies
Dennis Koch
Dennis Koch2w ago
It uses Laravels lang method so you can translate it yourself. Start with the file in resources/lang and place it in resources/lang/vendor/filament-approvals/your_locale/… and start translating
GUSTAVO2755
GUSTAVO27552w ago
i tried, but instead of working the label keep like the image attached i even tried to put on base path and change on my serviceProvider as : public function boot(): void { Lang::addNamespace('filament-approvals', base_path('lang/pt_BR/filament-approvals')); }
No description
LeandroFerreira
create this file in your project lang/vendor/filament-approvals/pt_BR/approvals.php
return [
...
'actions' => [
'create_flow' => 'New Label',
]
...
];
return [
...
'actions' => [
'create_flow' => 'New Label',
]
...
];
Dennis Koch
Dennis Koch2w ago
What’s the path to the file?
toeknee
toeknee2w ago
I startedt o add translations to the plugin. What translations are you trying to replace/
GUSTAVO2755
GUSTAVO27552w ago
hy, thaks a lot leandro and dennis, i did it . But @toeknee have you translated the other parts, like the ones that are not seeking for lang ? like on the image attacheted cause if it was my own resource should be easy, but this part is on vendor and are not seeking for lang
No description
No description
toeknee
toeknee2w ago
No I haven't I was just doing it as I was using the package. You can feel free to submit a PR adding the required translations 🙂
GUSTAVO2755
GUSTAVO27552w ago
@toeknee could u Just show me how to do it ? So i can translate all to pt_BR and send the file here Cause as the plug is on vender i cannot use translate method as on my own resources
Dennis Koch
Dennis Koch2w ago
What’s not working? You didn’t show any code? Leandro and me told you how to do it. Anything I’m missing?