Translate simple resource using Spatie translate throws method not found
Trying to follow Spatie Translatable instruction to translate a simple resource got Trying to follow Spatie Translatable instruction to translate a simple resource got getDefaultTransl any help
2 Replies
Could you please explain what is the issue?
After adding use ManageRecords\Concerns\Translatable;
protected function getHeaderActions(): array
{
return [
Actions\LocaleSwitcher::make(),
// ...
];
}
and setup the model its fire an exception
Method App\Filament\Resources\Service Block Resource::getDefault Translatable Locale does not exist.
There is no setup mentiond to resource file its only for MangeRecord file its trying to get locals form resource while resource dose not aware of translation, how to make a simple resource Translatable using spatia