PHP code example of wotz / filament-translatable-strings

1. Go to this page and download the library: Download wotz/filament-translatable-strings library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

wotz / filament-translatable-strings example snippets


return [
    'trans_functions' => [
        '__',
        'trans',
        'trans_choice',
        'Lang::get',
        'Lang::choice',
        '@lang',
        '@choice',
    ],
    'html_trans_functions' => [
        '__html',
    ],
    'exclude_folders' => [
        'storage',
        'node_modules',
        'database',
        'lang',
        'vendor/symfony',
        'tests',
    ],
    'skip_export_to_lang' => (bool) env('SKIP_EXPORT_TO_LANG', false),
];

public function panel(Panel $panel): Panel
{
    return $panel
        ->plugins([
            \Wotz\TranslatableStrings\TranslatableStringsPlugin::make(),
        ]);
    }
bash
php artisan vendor:publish --tag="filament-translatable-strings-migrations"
php artisan migrate
css
@source '../../../../vendor/wotz/filament-translatable-strings/resources/**/*.blade.php';