translating an ENUM ???
Tables\Columns\TextColumn::make('social_status')
->label(__('filament::forms.social_status')),
i tried chatgpt but its giving me a sloution to use ->value() method but its not exist
4 Replies
Sorry, I have no idea what your issue is. Please put a bit more effort into your question and read #✅┊rules
imagine you have social status in a table with 3 options , when adding to database only one option will be stored and its hard to translte it since we dont know wich field is in the table
Tables\Columns\TextColumn::make('social_status')
->label(__('filament::forms.[option here ???? ]')),
Do the translations on the enum itself. https://filamentphp.com/docs/3.x/support/enums#enum-labels
Cool idea