© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
6 replies
Shroomteller

Translatable plugin locale switcher not working

I have installed the Spatie Translatable plugin v3.2, followed the instructions in the Filament and Spatie documentation, and set up my resource to translate columns on a relationship called "meta." I'm also using Spatie's Sluggable package and have set slugs up for translation per the documentation. Before using the translation plugin, slugs were working fine. I have two problems at the moment:

1. The locale switcher defaults to English, whereas my current app locale is actually Spanish. How do I get the locale switcher to sync with what my current locale is?
2. When I switch locales, the translatable fields all go blank. Looking in the database, the data is there, exactly like the English data (added via a Seeder). E.g. for my title column:
{"en": "Course", "es": "Curso"}
{"en": "Course", "es": "Curso"}
. Here is the relevant area in the form:

Section::make('Details')
    ->relationship('meta')
    ->schema([
        TextInput::make('title')
    ]);
Section::make('Details')
    ->relationship('meta')
    ->schema([
        TextInput::make('title')
    ]);
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 selector
FilamentFFilament / ❓┊help
3y ago
Translatable language switcher reactive status
FilamentFFilament / ❓┊help
8mo ago
Spatie Translatable relation manager locale
FilamentFFilament / ❓┊help
3y ago
Spatie translatable: Switcher not showing in simple resource
FilamentFFilament / ❓┊help
9mo ago