spatie/nova-translatable
Make any Laravel Nova field translatable with a simple Translatable wrapper. Works with spatie/laravel-translatable to store per-locale values in a JSON column, rendering locale tabs for editing. Requires Nova 4/5 and MySQL 5.7.8+.
title, description) rather than full-model translation, reducing complexity for multi-language apps where only specific fields need localization.Translatable::make() wrapper allows grouping fields logically, aligning with Nova’s declarative field definition pattern.Translatable::make() in Nova resources. No model or database schema modifications unless using Spatie’s Translatable trait (optional).laravel-translatable package (if needed for model-level translation). Assumes existing Nova setup.laravel-translatable).laravel-translatable) mitigates this but adds complexity.laravel-translatable)?laravel-translatable: For model-level translation if needed (e.g., full resource localization).nova-media-library) or third-party field types.Post) to test the Translatable wrapper.laravel-translatable setup (migrations, model traits) for better performance/scalability.Translatable::make() or globally.Text, Trix, BelongsTo). Custom fields may need adaptation.composer require spatie/nova-translatable.fields() methods to wrap translatable fields in Translatable::make().Translatable::make([
Text::make('title')->rules('required'),
Trix::make('content'),
], locale: 'en', fallbackLocale: 'en_US'),
rules() in Translatable::make()).nova:serve for local testing; package logs for errors.Translatable::make() syntax, storage backends, fallback locales.How can I help you explore Laravel packages today?