How can use Select with translation by lang file on select Options
How can use Select with translation by lang file on select Options
use Translatable;
use Filament\Resources\Concerns\Translatable;
Select::make('option')
->options(fn () => [
'monthly' => __('content.priceing.monthly_label'),
'one-time' => __('content.priceing.one_time_label'),
])
->live()
->nullable()->columnSpan(6)
https://prnt.sc/fx6ctwHPv5052 Replies
when using
__()
it will only read the app locale
you may do something like:
Hey the definition is
So you should be able to use