© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•16mo ago•
2 replies
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' => 'мл',
                    ]),
                Select::make('unit')
                    ->options([
                        'gr' => 'g',
                        'ml' => 'ml',
                      //  'gr' => 'гр',
                     //   'ml' => 'мл',
                    ]),

Depending on language saved valued should be translated.
How I can achieve that?
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

How to Translate enum values
FilamentFFilament / ❓┊help
3y ago
how to translate the option in a Select?
FilamentFFilament / ❓┊help
3y ago
How to translate buttons?
FilamentFFilament / ❓┊help
4mo ago
How to translate slug
FilamentFFilament / ❓┊help
14mo ago