kongulov / nova-tab-translatable

This package contains a NovaTabTranslatable class you can use to make any Nova field type translatable with tabs.
MIT License
79 stars 17 forks source link

Show only english on resource index page instead of all translations #37

Open FlintMayers opened 1 year ago

FlintMayers commented 1 year ago

Is it possible to configure this package in a way that there are tabs on the resource view page, but on the index page, it shows the default language only? TranslatableTabToRowTrait seems to hide fields in both view and index.

FlintMayers commented 1 year ago

Overriding this method in TranslatableTabToRowTrait protected function doesRouteRequireChildFields(): bool { return Str::endsWith(Route::currentRouteAction(), [ 'ResourceIndexController', ]); }

solved it but would be nice to configure it without that