You can install the package via composer:

composer require digitalcloud/multilingual-nova

You can publish the config file:

php artisan vendor:publish --provider="Digitalcloud\MultilingualNova\FieldServiceProvider" --tag=config

This is the contents of the file which will be published at `config/multilingual.php`

                
return [

    /*
     * The source of supported locales on the application
     * Available selection "array", "database". Default array
     */
    'source' => 'array',

    /*
    * If you choose array selection, you should add all supported translation on it as "code" => "label"
    */
    'locales' => [
    'en' => 'English',
    'ar' => 'Arabic',
    'de' => 'Deutsch'
    ],

    /*
    * If you choose database selection, you should choose the model responsible for retrieving supported translations
    * And choose the 'code_field' for example "en","ar","ru"...
    * And choose the 'label_field' which will be show for users, for example "English","EN", ....
    */
    'database' => [
    'model' => 'App\\Language',
    'code_field' => 'code',
    'label_field' => 'label'
    ],

    /*
    * The view style you want to show on index & details page
    * Available selection "button", "list", "mix" default button
    */
    'style' => 'button',

    /*
    * If you choose mix selection, you can define after how many languages should button convert to list
    */
    'convert_to_list_after' => 3
];