majdghithan / nova-translatable-field
A Laravel Nova field.
Requires
- php: ^7.3|^8.0
- ext-json: *
- astrotomic/laravel-translatable: ^11.1
This package is auto-updated.
Last update: 2025-03-05 14:26:22 UTC
README
Nova Translatable Field and Language Activator
Adds the ability to show and edit translated fields created with astrotomic/laravel-translatable package. This is a fork of soluzione-software/nova-translatable-field. It makes Boolean fields translatable, works on File fields, CKeditor, ... Language switching is synced on all fields by default.
This is a version for Nova 4.x.
For Nova 3.x use nova3
branch.
Installation and usage
composer require kreatorij/nova-translatable-field
use Kreatorij\Nova\Fields\Translatable;
Use it on fieds like:
Translatable::make( Text::make('Name', 'name') ),
Language Activator
This package adds LanguageActivator
field that shows all activated languages on Index and Detail view and changes Boolean field to BooleanGroup for easier (de)activating certain translation. Should work on other fields too, it's just we need this for is_active
to enable certain translation.
LanguageActivator::make( Boolean::make('Is Activated', 'is_active') ),
Credits
Thanks to: