© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•8mo ago•
1 reply
lbar

Translatable language switcher reactive status

On a field I like to have the actual language set via language switcher, something like:
Forms\Components\TextInput::make('sharing_link')
                                            ->hiddenLabel()
                                            ->live()
                                            ->formatStateUsing(function ($record, $livewire) {
                                                return $record->id . ' ' . $livewire->activeLocale;
                                            }),
Forms\Components\TextInput::make('sharing_link')
                                            ->hiddenLabel()
                                            ->live()
                                            ->formatStateUsing(function ($record, $livewire) {
                                                return $record->id . ' ' . $livewire->activeLocale;
                                            }),

but in that way the $livewire->activeLocale; is not updated when the language change on the switcher. What am I doing wrong here?
ty
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

Translatable plugin locale switcher not working
FilamentFFilament / ❓┊help
2y ago
Spatie translatable: Switcher not showing in simple resource
FilamentFFilament / ❓┊help
9mo ago
Spatie Translatable + #[Reactive] RelationManager + Lazy loading bug?
FilamentFFilament / ❓┊help
14mo ago
How to place language switcher outside of panel
FilamentFFilament / ❓┊help
2y ago