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"}. Here is the relevant area in the form:
Section::make('Details')
    ->relationship('meta')
    ->schema([
        TextInput::make('title')
    ]);
Was this page helpful?