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