FilamentF
Filament15mo ago
tuseto

How to translate select values

I am using filament spatie translatable plugin. I have a simple select:
                Select::make('unit')
                    ->options([
                        'gr' => 'g',
                        'ml' => 'ml',
                      //  'gr' => 'гр',
                     //   'ml' => 'мл',
                    ]),

Depending on language saved valued should be translated.
How I can achieve that?
Was this page helpful?