PHP code example of iabduul7 / filament-auto-transliterate

1. Go to this page and download the library: Download iabduul7/filament-auto-transliterate 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/ */

    

iabduul7 / filament-auto-transliterate example snippets


use Iabduul7\FilamentAutoTransliterate\FilamentAutoTransliteratePlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        ->plugin(FilamentAutoTransliteratePlugin::make());
}

use Filament\Forms\Components\TextInput;

TextInput::make('receiver_name')
    ->translatable();                 // uses the default mode

TextInput::make('description')
    ->translatable(mode: 'translate'); // convert by meaning instead

'dictionary_path' => resource_path('dictionaries/en-{target}.json'),
bash
php artisan vendor:publish --tag="filament-auto-transliterate-migrations"
php artisan migrate
bash
php artisan vendor:publish --tag="filament-auto-transliterate-config"